Repository navigation
ci(quality): run the generated-obligations contract in Ratchet Contracts - #4465
Merged
Daniel Meppiel (danielmeppiel) merged 1 commit intoNov 21, 2026
Merged
Conversation
…very quality module has a job tests/quality/test_generated_obligations.py was in no CI job's file list, so none of its 19 tests ran in CI. It joins the required Architecture Ratchet Contracts list (RATCHET_TEST_SCOPE pins it there), and test_ci_topology now fails when any tests/quality/test_*.py has no job. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 18:35
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the CI coverage and quality-test collection changes.
No open issues 🎉
What changed in this PR
Closes the CI coverage gap identified in #4452 by adding generated-obligation checks to a required job and guarding against future uncollected quality-test modules. No product behavior changes.
Changes:
- Adds the 19 existing generated-obligation tests to Architecture Ratchet Contracts.
- Declares their repository-wide ratchet scope so existing inventory checks enforce job placement.
- Adds a topology check requiring every
tests/quality/test_*.pymodule to appear in a workflow's pytest targets, directly or through a parent directory.
| File | Description |
|---|---|
tests/quality/test_generated_obligations.py |
Declares repository-wide ratchet scope. |
tests/quality/test_ci_topology.py |
Detects quality-test modules missing from workflow pytest targets. |
.github/workflows/ci.yml |
Runs generated-obligation tests in the required ratchet job. |
Review effort: Balanced
5 of 10 tasks
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-t1-quality-modules-in-ci
branch
November 21, 2026 05:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
tests/quality/test_generated_obligations.pywas in no CI job's file list, so none of its 19 tests ran in CI. This is how thegenerated_obligations.jsondrift went unseen (see #4452)..github/workflows/ci.yml: the module joins the required Architecture Ratchet Contracts pytest list.tests/quality/test_generated_obligations.py:RATCHET_TEST_SCOPE = "repository". The existingtest_ci_topologyinventory check then pins it to exactly that list, in both directions.tests/quality/test_ci_topology.py::test_every_quality_module_runs_in_some_workflow_job: fails when anytests/quality/test_*.pyis not a pytest target, or under a target directory, of some workflow job. That way a new orphan cannot recur.Per-assert notes for data turned red: none. All 19 tests in the module pass on current main (
19 passed; the slowest is 13.7s on a loaded local host).Issue and approved scope
Issue: Refs #4113
Human scope-approval comment: steward follow-up on #4452 (wire the module into a required job and assert every quality module has a job), routed by the Stream T lead.
Does this PR complete the issue, or what remains? Closes the CI gap; no product change.
Type of change
Testing
Tested locally
All existing tests pass
Added tests for new functionality (if applicable)
pytest tests/quality/test_generated_obligations.pyon main -> 19 passedNegative control: the new topology test with main's ci.yml -> 1 failed (
no workflow job runs these modules: ['tests/quality/test_generated_obligations.py'])pytest tests/quality/test_ci_topology.pywith this change -> 279 passedpython -m tests.quality.taxonomy --changed-> cleanNode-set diff: +1 test (
test_every_quality_module_runs_in_some_workflow_job). The ratchet job additionally runs 19 existing tests.Changelog
## [Unreleased]inCHANGELOG.mdSpec conformance (OpenAPM v0.1)
Review note: this touches
.github/workflows/ci.yml, so it needs a CODEOWNERS review.