Skip to content

ci: align workflow and job names - #234

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

uniqueg merged 4 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 for the FOCA apps (cloud-registry is the template; proTES gets the same change):

Workflow Job ID Job name (was)
ci.yml "CI" (was checks.yaml "build app") lint Lint (Static code analysis)
test Test (mongomock), Test (MongoDB 7.0) (Run tests (mongomock), Run tests (MongoDB 7.0); was two jobs)
chart Chart (Check Helm chart)
docs Docs (Build documentation)
readiness Release readiness (Check release readiness)
smoke Smoke test (Run app with Docker Compose)
push Push image (Push app image)
scan Scan image (unchanged)
publish Publish image (Publish app image)
passed CI passed (new gate; replaces tests_passed "Run tests")
release.yml "Release" prepare Prepare release (Check tag and package chart)
push Push release image (Push image)
scan Scan release image (Scan image)
publish Publish release (Publish image and release)
scan.yml "Scan" (was "Scan release image") scan Scheduled scan (Scan release image)
  • The two test jobs are one matrix job; the MongoDB service gets an empty image for the mongomock entry, so it isn't started (documented GitHub behavior). Coverage and Codecov stay with the mongomock entry, fail-fast: false keeps the entries independent.
  • The gate CI passed needs every other job (if: always()) and passes only if all of them passed, or were skipped as intended (push and publish on pull requests). Failed, cancelled or otherwise skipped jobs fail it. It is meant to be the only required check from GitHub Actions.
  • References updated: the release workflow's check for a successful CI run (actions/workflows/ci.yml/runs), README badges, docs (development guide, incl. the ruleset in the maintainers' settings; verification commands in the operations guide), script docstrings, and test_python_version, which globs *.yml now.

Notes:

  • Sigstore/attestation identities contain the workflow file path. Releases up to 0.4.0 are signed by release.yaml, dev images built before this merge by checks.yaml. The operations guide's release commands are for the version in CITATION.cff (0.4.0), so they keep release.yaml, with a note that later releases are signed by release.yml; tests/test_workflows.py fails once the version is bumped and the commands still name release.yaml. The dev-image commands name ci.yml (with a note on older images). The next release notes should mention the new signer identity (it breaks policies that pin release.yaml).
  • New tests/test_workflows.py also checks the workflow files and names, unique job names, and that the gate needs every other job of ci.yml.
  • Unchanged on purpose: environments (dev-images, release), code scanning categories (image, release, release-image) and the artifact name trivy-report-release-image, so alerts and artifacts continue.
  • The release check now looks for runs of ci.yml: commits released later must have a successful ci.yml push run (any commit pushed to dev after this merge).
  • GitHub treats ci.yml as a new workflow; build app and Scan release image disappear from the Actions list after the merge.

Ruleset switch needed before merging: the old required checks (Static code analysis, Run tests, Check Helm chart, Build documentation, Run app with Docker Compose, Scan image) don't all report under these names any more; the dev ruleset should require CI passed (source: GitHub Actions) instead, plus docs/readthedocs.org:cloud-registry.

Verification

  • actionlint 1.7.12 (-shellcheck=): no findings.
  • Gate logic run locally on sample needs results (PR with skipped push/publish: pass; push with skipped push/publish: fail; failure/cancelled/unintended skip: fail).
  • pytest (Python 3.13, fresh venv): 1121 passed, 228 skipped (Helm not installed locally).
  • pre-commit run --all-files: passed.
  • mkdocs build --strict: passed.
  • CI (run 40106709360): all jobs passed, CI passed green; Push image and Publish image skipped as on pull requests before. Same jobs as before (compared with the run of docs: use Shields.io for the docs badge #232): Lint, Test (mongomock), Test (MongoDB 7.0), Chart, Docs, Release readiness, Smoke test, Scan image. The mongomock entry started no service container (no "Initialize containers" step) and uploaded coverage; the MongoDB entry ran the tests against MongoDB. CodeQL and Read the Docs passed.

Declined review findings

  • Quality reviewer (low): add a trailing period to the header comment of ci.yml. Declined: the workflows' comments consistently end without one.
  • Reviewers (low): the ruleset switch is not part of the change. It can't be (rulesets are settings); it is listed above, and the docs now describe the required check.

Open questions

None.

Closes #233

🤖 Generated with Claude Code

Summary by Sourcery

Standardize GitHub Actions workflow and job naming while consolidating CI results behind a single required gate.

New Features:

  • Add a single CI passed gate that consolidates all CI job results into one required status check.
  • Run the mongomock and MongoDB test suites through a matrix job while retaining coverage reporting for mongomock.

Bug Fixes:

  • Update release verification to require a successful run of the renamed CI workflow.

Enhancements:

  • Standardize workflow and job names across CI, release, and scheduled scan workflows.
  • Rename workflow files to ci.yml, release.yml, and scan.yml and update their references throughout the project.
  • Add automated checks for workflow files, unique job names, gate dependencies, and release signer references.

CI:

  • Align branch protection documentation and workflow status references with the new CI gate and workflow names.

Documentation:

  • Update README badges, development guidance, operations instructions, and workflow references for the renamed workflows and checks.
  • Document the workflow signer identity transition for releases and development images.

Tests:

  • Add workflow validation tests and update workflow discovery to use .yml files.

uniqueg and others added 4 commits October 24, 2026 17:09
Follow the naming rules for the FOCA apps: `ci.yml` "CI" (was
`checks.yaml` "build app"), `release.yml` "Release" and `scan.yml`
"Scan" (was "Scan release image"), with kebab-case job IDs and short,
unique sentence-case job names.

Merge the test jobs into one matrix job, `Test (mongomock)` and
`Test (MongoDB 7.0)`; the MongoDB service is not started for the
mongomock entry (empty image). Replace the aggregate job "Run tests" by
the gate `CI passed`, which needs every other job and passes only if
all of them passed, or were skipped as intended (image push and
publish on pull requests).

Update the references: the release workflow's check for a successful
CI run (`ci.yml`), README badges, docs (incl. the signer workflow of
the verification commands, with a note for earlier releases), comments
in scripts, and the Python version test, which globs `*.yml` now.

Closes #233

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep `release.yaml` in the verification commands while they are for
0.4.0 (the version in `CITATION.cff`), which it signed, and say that
later releases are signed by `release.yml`. A test fails once the
version is bumped and the commands still name the old file, and other
tests check the workflow files and names, that job names are unique and
that the gate needs every other job of `ci.yml`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Read the version of `CITATION.cff` with `scripts/citation.py`, as the
docs hook does, instead of a regular expression of its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Renames and standardizes the GitHub Actions workflows and jobs, consolidates database testing into a matrix, and introduces a comprehensive CI passed gate as the sole required check. References, release checks, documentation, signer guidance, and regression tests are updated to reflect the new .yml workflow paths and naming scheme.

Sequence diagram for matrix database testing

sequenceDiagram
    participant CI as CI test matrix
    participant Mock as mongomock entry
    participant Mongo as MongoDB 7.0 entry
    participant Codecov

    CI->>Mock: Run tests
    Mock->>Mock: Calculate unit test coverage
    Mock->>Codecov: Submit Report to Codecov
    CI->>Mongo: Start mongodb service
    Mongo->>Mongo: Run tests against MongoDB
Loading

Flow diagram for the CI workflow gate

flowchart LR
    lint[Lint] --> passed[CI passed]
    test[Test matrix] --> passed
    chart[Chart] --> passed
    docs[Docs] --> passed
    readiness[Release readiness] --> passed
    smoke[Smoke test] --> passed
    push[Push image] --> passed
    scan[Scan image] --> passed
    publish[Publish image] --> passed
    passed --> required[Only required GitHub check]
Loading

File-Level Changes

Change Details Files
Renamed the three GitHub Actions workflows and standardized their job IDs and display names to the FOCA naming convention.
  • Renamed workflow files and top-level names to CI, Release, and Scan.
  • Renamed jobs and updated dependent needs, comments, and workflow references.
  • Updated badges, documentation, scripts, and release verification references for the new paths and names.
.github/workflows/ci.yml
.github/workflows/release.yml
.github/workflows/scan.yml
README.md
docs/development.md
docs/operations.md
pyproject.toml
scripts/chart_readme.py
scripts/check_release_pins.py
scripts/release_assets.py
scripts/release_notes.py
scripts/release_version.py
Consolidated the mongomock and MongoDB test jobs into an independent matrix job while preserving coverage reporting.
  • Added matrix entries for mongomock and MongoDB 7.0 with conditional service startup and test execution.
  • Kept coverage and Codecov upload on the mongomock entry.
  • Configured fail-fast: false so either database test can fail independently.
.github/workflows/ci.yml
Added a single CI gate that evaluates every other CI job and is intended to be the only required GitHub Actions check.
  • Added the always-running CI passed gate with all other jobs in needs.
  • Allowed only pull-request skips of push and publish; failures, cancellations, and unintended skips fail the gate.
  • Documented the required ruleset switch and gate behavior.
.github/workflows/ci.yml
docs/development.md
Added regression tests that enforce workflow structure, naming, gate coverage, and signer documentation across the YAML migration.
  • Validated the exact workflow files and top-level names.
  • Checked globally unique job names and that the CI gate needs every other job.
  • Made signer-workflow verification version-aware and updated workflow discovery from *.yaml to *.yml.
tests/test_workflows.py
tests/test_config.py
Updated release automation to consume the renamed CI workflow and distinguish historical signer identities.
  • Changed the release prerequisite check to query successful ci.yml push runs.
  • Updated release and development image verification documentation for pre- and post-rename Sigstore identities.
  • Preserved environments, scanning categories, and artifact names.
.github/workflows/release.yml
docs/operations.md

Assessment against linked issues

Issue Objective Addressed Explanation
#233 Rename the workflow files and workflow display names to ci.yml / CI, release.yml / Release, and scan.yml / Scan, and align job IDs and unique sentence-case job names with the naming rules, including merging the test jobs into a matrix job. ✅
#233 Add a passed / CI passed gate that depends on every other CI job and fails unless those jobs succeed or are intentionally skipped on pull requests. ✅
#233 Update references to the renamed workflows and checks across documentation, badges, scripts, tests, and the release workflow’s successful-CI-run check. ✅

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 (0f4ce97) to head (d79af44).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #234   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines         1362      1362           
=========================================
  Hits          1362      1362           

☔ 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:28

@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 c6fa9a5 into dev Oct 24, 2026
30 checks passed
@uniqueg
uniqueg deleted the ci/align-workflow-names branch October 24, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: align workflow and job names

1 participant