Skip to content

ci: align workflow and job names - #482

Merged
uniqueg merged 6 commits into
devfrom
ci/align-workflow-names
Oct 24, 2026
Merged

uniqueg merged 6 commits into
devfrom
ci/align-workflow-names

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Aligns the workflow and job names with the naming rules of 2026-10-24.

  • checks.yml is renamed to ci.yml (CI). The chart jobs of charts.yml move into it as chart / Chart and chart-install / Chart install, and charts.yml is removed. charts.yml had no paths: filters, so the chart jobs run on every PR and push, as before.

  • The steps of the two chart jobs move unchanged into the composite actions .github/actions/test-chart and .github/actions/install-chart. The only edits are shell: bash and NAMESPACE becoming an input. release-chart.yml used to call charts.yml as a reusable workflow; its new test / Test chart release job runs both actions instead. A single test job, as the spec has it, means a re-run after a flaky kind install also repeats the lint and tests (about 2 minutes). Calling ci.yml from release-chart.yml would have run the dev-image push jobs on the tag push, so it was not an option.

  • Jobs: Lint, Test (Python X, MongoDB Y), Test (Python X, lowest dependencies), Integration test (Python X), Push image (Python X), Scan image (Python X), and publish / Publish image (Python X) (was docker).

  • test-lowest stays a separate job with a name in the same pattern, because it installs with uv lowest-direct and has no coverage step. The docs build stays a step of lint, which now has a comment saying so.

  • Gate: passed / CI passed replaces test-passed, integration-passed and scan-passed.

    • It uses needs: on all 9 other jobs and if: always().
    • It fails on any failed or cancelled job, and on any skipped job except push and publish on pull requests. Empty results also fail it.
    • It is plain bash and jq, with no third-party action.
  • release.yml (Release):

    • build / Build distributions
    • pypi / Publish to PyPI (was publish)
    • push / Push release image (Python X)
    • scan / Scan release image (Python X)
    • publish-image / Publish release image (Python X) (was docker)
    • publish / Publish release (was github-release)

    The file name and the pypi environment stay the same, so PyPI trusted publishing is not affected.

  • scan.yml is now Scan, with the job Scheduled scan (Python X). Code scanning categories and artifact names are unchanged.

  • release-chart.yml (Release chart): test / Test chart release, publish / Publish chart (was release). The file name stays, so the signer identity of the chart does not change.

  • Dependabot now also updates the actions in the two new composite actions.

  • References are updated in the README badge, docs/contributing.md, docs/helm-chart.md, pyproject.toml, requirements/*.txt, the chart CI values, .github/kind/gateway.yaml and the snapshot test message.

  • docs/deployment.md: dev images are now signed by ci.yml. It notes that older dev images were signed by checks.yml.

Ruleset switch needed

This PR does not report the old required checks, so the ruleset has to change before merging.

Remove:

  • Lint, type-check and build
  • Unit tests
  • Integration tests (petstore)
  • Scan images

Add CI passed (source: GitHub Actions). Keep docs/readthedocs.org:foca. The chart checks were not required.

Verification

  • actionlint 1.7.12 with shellcheck: no findings except an info-level SC2102 that was already on dev.
  • pre-commit run --all-files: all hooks pass.
  • pytest charts/foca-common/tests with Helm v3.22.1: 203 passed.
  • I ran the gate script locally against 8 sets of sample job results: all pass on a push, the expected skips on a PR, unexpected skips, a cancelled job, a failed job, a failed push, and no results. Each gave the expected outcome.
  • CI on this PR: all checks pass, CI passed included. Job by job, the PR run matches a recent dev PR run (CI and Charts runs of docs: use Shields.io for the docs badge #479): the same 21 jobs ran, each under its new name, with the same results. Push image and Publish image were skipped on the PR, as before. The three aggregate jobs were replaced by CI passed. The old Charts workflow no longer runs.
  • Not testable before a release: the release.yml and release-chart.yml jobs. release.yml only renames jobs and needs:. The release-chart.yml test job runs the same composite actions that passed here as Chart and Chart install.

Declined review findings

  • Adversarial reviewer (low): split Test chart release into two jobs so that a re-run is faster. Declined because the spec defines one test job, and this only costs time.
  • Quality reviewer (low): test-lowest is not folded into test, and there is no docs job. These are intended, as explained above.

Open questions

None.

Closes #480

🤖 Generated with Claude Code

Summary by Sourcery

Align workflow and job names with the required CI naming conventions while consolidating chart checks and replacing multiple required checks with a single CI gate.

New Features:

  • Centralize chart linting, testing, and installation checks in reusable composite actions and run them as part of the main CI workflow.
  • Add a single CI passed gate that aggregates all CI job results for branch protection.

Enhancements:

  • Standardize workflow and job names across CI, release, chart-release, and scheduled scan workflows.
  • Replace the separate chart workflow with chart jobs in ci.yml and reuse the chart actions during chart releases.
  • Update workflow references, documentation, configuration comments, and status badges to reflect the renamed workflows and jobs.

CI:

  • Rename checks.yml to ci.yml and consolidate the chart checks into the CI workflow.
  • Update Dependabot configuration to track actions used by the new chart composite actions.

Documentation:

  • Document the new CI workflow names and updated image-signing workflow references, including compatibility notes for older development images.

Tests:

  • Preserve chart validation and integration coverage while moving the checks into reusable composite actions.

Chores:

  • Remove the obsolete charts.yml workflow and rename release and scan jobs to the standardized naming scheme.

uniqueg and others added 5 commits October 24, 2026 17:10
Follow the naming rules for workflows and jobs:

- Rename checks.yml to ci.yml and move the chart jobs of charts.yml
  into it (chart, chart-install). Their steps move to the composite
  actions test-chart and install-chart, which release-chart.yml runs
  as well, in its test job, instead of calling charts.yml.
- Rename jobs to sentence case with matrix values in parentheses,
  unique across workflows (e.g. "Test (Python 3.13, MongoDB 7.0)",
  "Push release image (Python 3.13)", "Scheduled scan (Python 3.13)").
- Replace the aggregate jobs test-passed, integration-passed and
  scan-passed with the gate job passed ("CI passed"), which needs every
  other job and allows only the skips of push and publish on pull
  requests.
- release.yml: publish -> pypi, docker -> publish-image,
  github-release -> publish; the file name stays for PyPI trusted
  publishing. scan.yml is now "Scan".
- Let Dependabot update the actions of the new composite actions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Point the README badge, the docs and comments to ci.yml and to the
composite actions with the chart checks, instead of checks.yml and
charts.yml. Images of dev are now signed by ci.yml.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg uniqueg added this to the v0.18.0 milestone Oct 24, 2026
@uniqueg uniqueg added the type: ci / cd Related to continuous integration / delivery label Oct 24, 2026
@sourcery-ai

sourcery-ai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Renames and reorganizes GitHub Actions workflows and jobs to the new naming convention, centralizes chart checks in CI and reusable composite actions, introduces a single jq-based CI gate for branch protection, and updates release workflows and repository references without changing publishing identities or artifacts.

Sequence diagram for the CI passed gate

sequenceDiagram
    participant Jobs as CI jobs
    participant Gate as CI passed
    participant JQ as bash and jq
    Jobs->>Gate: Complete lint, test, chart, image, and publish jobs
    Gate->>JQ: Read toJSON(needs)
    JQ->>JQ: Evaluate job results
    alt All results are success
        JQ-->>Gate: exit 0
    else push and publish skipped on pull request
        JQ-->>Gate: Ignore allowed skips
        JQ-->>Gate: exit 0
    else failure, cancellation, unexpected skip, or no results
        JQ-->>Gate: exit 1
    end
Loading

File-Level Changes

Change Details Files
Consolidate CI and chart validation under the renamed CI workflow, while extracting reusable chart checks into composite actions.
  • Rename checks.yml to ci.yml and update its workflow name.
  • Move chart lint/test and kind-based installation jobs into CI with stable Chart and Chart install names.
  • Extract chart logic into test-chart and install-chart composite actions, including a configurable namespace input.
  • Replace the reusable chart workflow invocation for releases with a single job that runs both composite actions.
  • Remove the obsolete charts.yml workflow and update Dependabot coverage for the new actions.
.github/actions/test-chart/action.yml
.github/actions/install-chart/action.yml
.github/workflows/ci.yml
.github/workflows/charts.yml
.github/workflows/release-chart.yml
.github/dependabot.yml
.github/kind/gateway.yaml
Standardize job names and introduce a single aggregate CI gate for required-check stability.
  • Rename test, integration, image publication, release, and scan jobs to the specified naming patterns.
  • Replace the three CI aggregate checks with passed / CI passed.
  • Make the gate depend on all nine jobs, run unconditionally, and validate success, cancellation, failure, and intentional pull-request skips using bash and jq.
  • Preserve separate lowest-dependency testing and documentation building within lint.
.github/workflows/ci.yml
.github/workflows/release.yml
.github/workflows/scan.yml
Align chart and release workflow naming without changing publishing identities or release behavior.
  • Rename release workflow jobs for distributions, PyPI, release images, and GitHub release publication.
  • Rename the scheduled scan workflow and job.
  • Rename chart release jobs while keeping the workflow filename and chart signer identity unchanged.
  • Preserve the PyPI environment and code-scanning categories and artifact names.
.github/workflows/release.yml
.github/workflows/scan.yml
.github/workflows/release-chart.yml
Update repository documentation, badges, comments, test references, and dependency metadata to match the new workflow and action layout.
  • Point README status badges and documentation references from checks.yml/charts.yml to ci.yml and the composite actions.
  • Update deployment documentation to distinguish current and legacy dev-image signing workflows.
  • Update chart CI comments, snapshot guidance, and Helm references.
  • Refresh pinned requirement entries and related workflow references.
README.md
docs/contributing.md
docs/deployment.md
docs/helm-chart.md
charts/foca-common/tests/test_snapshots.py
examples/petstore/chart/ci/celery-values.yaml
examples/petstore/chart/ci/gateway-values.yaml
pyproject.toml
requirements/lint.txt
requirements/release.txt
requirements/semgrep.txt

Assessment against linked issues

Issue Objective Addressed Explanation
#480 Align workflow and job names with the specified naming rules, consolidate the chart jobs into ci.yml, and update references to the old workflow and job names. ✅
#480 Replace the aggregate CI checks with a single CI passed gate that requires every other ci.yml job to succeed, allowing only the intended pull-request skips. ✅
#480 Update the repository ruleset so CI passed is the required check instead of the old required checks. ❌ The PR says the ruleset switch is needed before merging, but the ruleset change is not included in the PR.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (907c3ee) to head (51796c3).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #482   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines         3444      3444           
=========================================
  Hits          3444      3444           
Flag Coverage Δ
test_unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review October 24, 2026 15:27

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 9232908 into dev Oct 24, 2026
30 checks passed
@uniqueg
uniqueg deleted the ci/align-workflow-names branch October 24, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: ci / cd Related to continuous integration / delivery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: align workflow and job names

1 participant