Skip to content

ci: require the job Integration in the gate - #489

Merged
uniqueg merged 3 commits into
devfrom
ci/425-gate-integration
Nov 13, 2026
Merged

uniqueg merged 3 commits into
devfrom
ci/425-gate-integration

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

The gate CI passed now needs the job integration (both entries, Integration (label) and Integration (service info)), so a failure in it blocks the merge. The job has passed in all recent pull requests and pushes to dev (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 passed after a failed run for the commit (the reason the header of ci.yml gives 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: integration in the gate's needs, its if: (skip on edited) removed; comments updated.
  • tests/test_workflows.py: NOT_IN_GATE holds only integration-tesk; new test test_gated_jobs_run_on_edits checks 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, one if: removed), without secrets, permissions or the release workflow; I reviewed the diff myself.

Verification

  • pytest tests/test_workflows.py: the changed NOT_IN_GATE failed test_gate_needs_all_jobs before 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 deployment needs the network). tests/test_chart.py didn't run for the same reason. Both run in CI.
  • pre-commit run --files on the changed files: all hooks passed (ruff, semgrep, gitleaks, actionlint, ast-grep, mypy, ...).
  • mkdocs build --strict: passed.
  • CI: green in both runs for the head commit. The run for opened (43381946014) ran every job, including Integration (TESK). The run for the following edit (43381964061) ran Integration (label) and Integration (service info) (both passed, needed by CI passed) and skipped Integration (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:

  • Require the Integration job’s label and service-info checks as part of the CI gate, while continuing to exclude the TESK integration job.
  • Ensure all jobs required by the CI gate run for pull-request edits.
  • Update development guidance to document the CI gate’s integration requirements and edit behavior.

CI:

  • Add workflow and test coverage to verify that gated jobs do not skip pull-request edits.

Documentation:

  • Clarify integration job gating, pull-request edit behavior, and release verification guidance.

Tests:

  • Update workflow tests for the expanded gate requirements and add coverage for gated jobs running on edits.

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]>
@sourcery-ai

sourcery-ai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add integration to the CI gate’s dependencies and let it run on pull request edits, while keeping integration-tesk outside the gate.

  • .github/workflows/ci.yml L477-481 (+3 small edits)

Documentation

Update development and release guidance to reflect that the gate requires the Integration checks, including on edits, while TESK remains outside it.

  • docs/development.md L79-82, L145-146, L656-657

Tests

Update the gate’s excluded-job set and verify that every job required by the gate runs on pull request edits.

  • tests/test_workflows.py L23, L81-92

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

read-the-docs-community Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35861048 | 📁 Comparing 948e47f against latest (90a9254)

  🔍 Preview build  

1 file changed
± development/index.html

@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (90a9254) to head (948e47f).

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.
📢 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 November 13, 2026 07:05
@sourcery-ai

sourcery-ai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Linked issues

Checked at commit 948e47f

#425 ci: require the job Integration in the gate · 1 of 3 met · 1 to check by hand

# Requirement Status Notes
1 Prove the job reliable over a few weeks of pull requests. 👀 Check by hand (external system) Check the referenced CI runs and whether they span the stated period.
2 Add integration to the gate and empty NOT_IN_GATE. 🟡 Partly met integration is gated, but NOT_IN_GATE still contains integration-tesk.
3 Decide whether edits of pull requests need an allowed skip in the gate. ✅ Met The change decides no: integration no longer skips edits, and a test checks that gated jobs do not skip them.

@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 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


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

Comment thread .github/workflows/ci.yml Resolved
Comment thread tests/test_workflows.py Resolved
Comment thread docs/development.md Resolved
uniqueg and others added 2 commits November 13, 2026 08: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]>

@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.

New gaps against the linked issues

Comment thread tests/test_workflows.py Resolved
@uniqueg
uniqueg merged commit 4d610a8 into dev Nov 13, 2026
38 checks passed
@uniqueg
uniqueg deleted the ci/425-gate-integration branch November 13, 2026 07:43
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: require the job Integration in the gate

1 participant