Skip to content

ci: align workflow and job names - #312

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

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

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Aligns the GitHub Actions workflow and job names with the maintainer's naming rules (2026-10-24), identical to the cloud-registry change where the repos are identical:

  • checks.yaml "proTES checks" -> ci.yml "CI": lint / Lint, test / Test (mongomock), Test (MongoDB 7.0) (one matrix job; the MongoDB service gets an empty image, so it is not started, for the mongomock entry), chart / Chart, docs / Docs, readiness / Release readiness, smoke / Smoke test, push / Push image, scan / Scan image, publish / Publish image
  • new gate passed / CI passed (needs every other job, if: always(); fails on any failure, cancellation or unintended skip; only push and publish may be skipped, on pull requests), replacing tests_passed "Run tests"
  • release.yaml -> release.yml "Release": Prepare release, Push release image, Scan release image, Publish release; its check for a successful CI run of the release commit now queries ci.yml
  • scan.yaml "Scan release image" -> scan.yml "Scan": Scheduled scan
  • references updated: README badges, docs/development.md, docs/operations.md (the release verification commands keep release.yaml while they are for 0.3.0, which it signed, with a note that later releases are signed by release.yml and pre-rename dev images by checks.yaml; dev commands use ci.yml), script docstrings, chart CI values, smoke test compose file, and tests/test_build.py (globs *.yml now)
  • new tests/test_workflows.py (as in cloud-registry): workflow files and names, unique job names, the gate needs every other job, and the docs' signer workflow matches the CITATION.cff version (fails once the version is bumped past 0.3.0 while the commands still name release.yaml)

Ruleset switch needed before merging

This PR doesn't report the old required check names. Required checks to remove: Build documentation, Check Helm chart, Run app with Docker Compose, Run tests, Scan image, Static code analysis. Add: CI passed (source: GitHub Actions). Keep docs/readthedocs.org:protes.

Notes for the maintainer

  • PyPI, Zenodo and environments are not bound to the workflow file names (no PyPI publishing; Zenodo uses the release webhook); environments dev-images and release are unchanged.
  • The next release's commit must have a successful ci.yml push run, which every commit merged after this PR gets.
  • Code scanning: the SARIF categories are unchanged, but GitHub may list the old checks.yaml / scan.yaml configurations as stale under Security > Tool status after the merge; delete them there if they appear.

Verification

  • pre-commit run --all-files (incl. actionlint): passed
  • pytest with coverage: 1029 passed, 80 skipped, 100% coverage before the test fix; after it, tests/test_build.py, tests/test_version_mentions.py, tests/test_docs_hooks.py, tests/test_workflows.py: all passed
  • review: adversarial and quality reviewers (round 1 found the signer workflow of the 0.3.0 verification commands and the missing workflow tests, both fixed; round 2 adversarial on the fix)
  • mkdocs build --strict: passed
  • gate script run locally on sample needs results (PR/push, success/failure/cancelled/skipped): behaves as intended
  • CI (run 40106720365): all checks passed, CI passed green; every job ran as before (Lint, Test (mongomock), Test (MongoDB 7.0), Chart, Docs, Release readiness, Smoke test, Scan image; Push image and Publish image skipped on the PR as before). The mongomock entry starts no service container; the MongoDB entry pulls mongo:7.0

Declined review findings

None.

Open questions

None.

Closes #310

🤖 Generated with Claude Code

Summary by Sourcery

Align GitHub Actions workflows and checks with the repository naming rules while introducing a single reliable CI status gate.

New Features:

  • Add a single CI gate that reports whether all workflow jobs completed successfully, while allowing the expected image job skips on pull requests.
  • Run the test suite through a unified matrix covering mongomock and MongoDB 7.0.

Enhancements:

  • Align GitHub Actions workflow, job, and check names with the repository naming conventions.
  • Rename workflow files to ci.yml, release.yml, and scan.yml and update release verification to reference the renamed CI workflow.
  • Add workflow validation tests covering file names, workflow and job name uniqueness, CI gate coverage, and release signer references.

CI:

  • Update CI references across badges, documentation, scripts, chart values, smoke-test configuration, and build tests.

Documentation:

  • Update development and operations documentation for the renamed workflows, jobs, and release verification behavior.

Tests:

  • Add automated checks for workflow structure, naming, gate dependencies, and version-dependent release signer documentation.

uniqueg and others added 3 commits October 24, 2026 17:16
Follow the naming rules for the FOCA apps, as in cloud-registry:
`ci.yml` "CI" (was `checks.yaml` "proTES checks"), `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 the first release), comments
in scripts, charts' CI values and the smoke test, and the Python
version test, which globs `*.yml` now.

Closes #310

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep `release.yaml` in the verification commands while they are for
0.3.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` (as in cloud-registry).

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

This PR renames the GitHub Actions workflows and job checks to the maintainer’s convention, consolidates database test execution into a matrix, and introduces CI passed as the sole required gate with explicit handling for intentional pull-request skips. References and release verification logic are updated throughout the repository, with new tests protecting workflow structure, naming, gate coverage, and historical signer documentation.

Sequence diagram for release verification of CI

sequenceDiagram
    participant Release as release.yml
    participant GitHub as GitHub Actions API
    participant CI as ci.yml
    Release->>GitHub: actions/workflows/ci.yml/runs
    GitHub-->>Release: Successful push run for release commit
    Release->>CI: Require CI passed before release jobs
    CI-->>Release: Successful workflow result
    Release->>Release: Prepare release
    Release->>Release: Push release image
    Release->>Release: Scan release image
    Release->>Release: Publish release
Loading

Flow diagram for the CI passed gate

flowchart TD
    Jobs[lint, test, chart, docs, readiness, smoke, push, scan, publish] --> Gate[CI passed]
    Gate --> Results{All jobs successful?}
    Results -->|Yes| Pass[Required check passes]
    Results -->|No| Skip{Pull request and push or publish skipped?}
    Skip -->|Yes| Pass
    Skip -->|No| Fail[Gate fails]
Loading

File-Level Changes

Change Details Files
Renamed and standardized GitHub Actions workflow and job identifiers, including the addition of a single required CI gate.
  • Renamed workflow files and top-level display names to ci.yml/CI, release.yml/Release, and scan.yml/Scan.
  • Renamed jobs to the maintainer-defined check names and consolidated the mongomock and MongoDB test paths into one matrix job.
  • Replaced tests_passed with an always-running passed gate that validates every job result while permitting only the intended pull-request skips.
  • Updated release verification to query ci.yml and aligned workflow comments and references with the new names.
.github/workflows/ci.yml
.github/workflows/release.yml
.github/workflows/scan.yml
Updated repository documentation, configuration comments, badges, and operational references for the workflow renames and new check names.
  • Changed links, badges, job references, signer workflow paths, and script docstrings to use the renamed workflows.
  • Documented the historical signer workflow exception for releases through version 0.3.0.
  • Updated smoke-test, chart CI, packaging, and development references.
README.md
deployment/ci/optional-values.yaml
deployment/ci/test-values.yaml
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
tests/smoke/compose.yaml
Added automated coverage to enforce workflow naming, job uniqueness, gate completeness, and release-signing documentation consistency.
  • Adjusted build checks to discover .yml workflow files.
  • Added tests for workflow filenames and names, globally unique job display names, complete gate dependencies, and version-dependent signer references.
tests/test_build.py
tests/test_check_release_pins.py
tests/test_workflows.py

Assessment against linked issues

Issue Objective Addressed Explanation
#310 Rename the CI workflow to ci.yml / “CI” and align its job names with the requested names, including replacing the old test gate with a passed / “CI passed” gate that depends on every other CI job and reports failure for unsuccessful or unintended skipped jobs. ✅
#310 Rename the release and scheduled-scan workflows and their jobs to the requested filenames and names, and update workflow references, documentation, scripts, tests, and badges to reflect the renames. ✅
#310 Make CI passed the sole required GitHub ruleset check instead of the old check names. ✅

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

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35379420 | 📁 Comparing 6ab67eb against latest (b7bda2f)

  🔍 Preview build  

2 files changed
± development/index.html
± operations/index.html

@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 (b7bda2f) to head (6ab67eb).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #312   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines         2469      2469           
=========================================
  Hits          2469      2469           

☔ 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 e8a1616 into dev Oct 24, 2026
19 checks passed
@uniqueg
uniqueg deleted the ci/align-workflow-names branch October 24, 2026 16:35
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