Repository navigation
ci: require the job Integration in the gate - #489
Conversation
The job integration has passed in all recent pull requests and pushes, so the gate CI passed now needs it, and a failure in it blocks the merge. It no longer skips edits of a pull request: a run for an edit reports the gate for the head commit, so a skip there would report CI passed after a failed run for the commit, as the header of ci.yml says for all jobs. Integration (TESK) stays out of the gate for now. A test checks that no job that the gate needs skips edits. Closes #425 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideConfigurationAdd
DocumentationUpdate development and release guidance to reflect that the gate requires the Integration checks, including on edits, while TESK remains outside it.
TestsUpdate the gate’s excluded-job set and verify that every job required by the gate runs on pull request edits.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #489 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 31 31
Lines 3105 3105
=========================================
Hits 3105 3105 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Linked issuesChecked at commit 948e47f #425 ci: require the job Integration in the gate · 1 of 3 met · 1 to check by hand
|
There was a problem hiding this comment.
Hey - I've found 3 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/ci.yml" line_range="778" />
<code_context>
timeout-minutes: 5
if: always()
- needs: [title, lint, test, chart, docs, readiness, smoke, push, scan, publish]
+ needs: [title, lint, test, chart, docs, readiness, smoke, integration, push, scan, publish]
permissions: {}
steps:
</code_context>
<issue_to_address>
**Registry outages block merges**
When a third-party registry or package index used to build or pull the integration stack is unavailable, `integration` fails during stack startup when an upstream registry or package index is unavailable, and `passed` then fails because it needs `integration`; the gate has no infrastructure-failure allowance for this job, so otherwise-green pull requests cannot merge.
Keep upstream infrastructure failures from this job from blocking the gate, or provide a reliable retry/fallback path before making it required.
</issue_to_address>
### Comment 2
<location path="tests/test_workflows.py" line_range="23" />
<code_context>
# Jobs that don't block pull requests, until they have proven reliable: they
# depend on the registries and packages of third parties
-NOT_IN_GATE = {"integration", "integration-tesk"}
+NOT_IN_GATE = {"integration-tesk"}
# Funnel's URL in the integration configs, and the TES versions that backends
# report in their service info, where not TES 1.0 (TESP-API and TESK; see the
</code_context>
<issue_to_address>
**TESK remains excluded**
The issue proposes emptying NOT_IN_GATE, but the change leaves integration-tesk in the set. As a result, the gate still excludes that job.
</issue_to_address>
### Comment 3
<location path="docs/development.md" line_range="80" />
<code_context>
-proven reliable. Access to the Docker socket amounts to control of the host, so
-run the stack locally only on a disposable machine or VM.
+socket of the host, and the images come from third parties' registries. The
+gate (`CI passed`) needs this job, so it runs for edits of a pull request too.
+Access to the Docker socket amounts to control of the host, so run the stack
+locally only on a disposable machine or VM.
</code_context>
<issue_to_address>
**Release guidance misstates gate coverage**
When a release-note author follows the release-testing instructions, `docs/development.md` still tells release-note authors to check all three integration jobs because “the gate doesn't need them.” The gate now requires `Integration (label)` and `Integration (service info)`, so the release-testing instructions misstate which jobs block the merge.
Update the release-testing instructions to say that only `Integration (TESK)` is not required by the gate.
</issue_to_address>Sourcery assessment
Approval pending. 2 findings to address first.
Blocking findings: .github/workflows/ci.yml:778, tests/test_workflows.py:23
The release-testing steps told release authors to check all three integration jobs because the gate doesn't need them; it now needs the two entries of Integration, so only Integration (TESK) needs a check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
The gate
CI passednow needs the jobintegration(both entries,Integration (label)andIntegration (service info)), so a failure in it blocks the merge. The job has passed in all recent pull requests and pushes todev(the CI runs of #481, #483, #480, #415 and #486 and their pushes).The question left open in the issue, whether edits of a pull request need an allowed skip in the gate: no. The job now runs for edits too, like every other job the gate needs. A run for an edit reports the gate for the head commit, so an allowed skip there would report
CI passedafter a failed run for the commit (the reason the header ofci.ymlgives for running all jobs on edits). Cost: one run of the two entries (up to 30 minutes each, in parallel) per edit of a pull request..github/workflows/ci.yml:integrationin the gate'sneeds, itsif:(skip onedited) removed; comments updated.tests/test_workflows.py:NOT_IN_GATEholds onlyintegration-tesk; new testtest_gated_jobs_run_on_editschecks that no job the gate needs skips edits.docs/development.md: says that the gate needs the job and that it runs for edits; the TESK job's sentence no longer says "either".Integration (TESK)stays out of the gate (not part of this issue; no issue for gating it yet). The ruleset needs no change: it requires only the gate.Light lane: a CI-only change (one job added to the gate's
needs, oneif:removed), without secrets, permissions or the release workflow; I reviewed the diff myself.Verification
pytest tests/test_workflows.py: the changedNOT_IN_GATEfailedtest_gate_needs_all_jobsbefore the workflow change; after it, 75 passed.pytest --ignore tests/test_chart.py: 1682 passed, 11 skipped, 2 failed (test_config_examples.py::test_chart_examples_valid, as the chart's library dependency isn't built locally:helm dependency build deploymentneeds the network).tests/test_chart.pydidn't run for the same reason. Both run in CI.pre-commit run --fileson the changed files: all hooks passed (ruff, semgrep, gitleaks, actionlint, ast-grep, mypy, ...).mkdocs build --strict: passed.opened(43381946014) ran every job, includingIntegration (TESK). The run for the following edit (43381964061) ranIntegration (label)andIntegration (service info)(both passed, needed byCI passed) and skippedIntegration (TESK), as intended.Declined review findings
None (light lane).
Open questions
None.
Closes #425
🤖 Generated with Claude Code
Summary by Sourcery
Require the reliable integration checks to pass before the CI gate succeeds, including for pull-request edits.
Enhancements:
CI:
Documentation:
Tests: