Repository navigation
ci: allow manual dispatch of full integration - #4177
Merged
Merged
Conversation
ci-integration.yml runs on workflow_dispatch and on PRs labeled full-integration (every job label-gated); merge-gate.yml requires its four checks at PR time only on labeled PRs. Shards use -n 4 with a 50 min cap; gate poll budget 80 min. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 09:32
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The merge gate can pass on stale skipped checks before full integration completes, while unrelated label events can cancel required runs and leave the gate permanently failed.
2 open issues
What changed in this PR
Adds opt-in full integration runs before merge-queue enforcement, supporting the broader CI reliability work in #4116 while leaving planner changes to #4149.
Changes:
- Enables manual dispatch and label-gated PR integration runs.
- Requires integration checks for labeled PRs and increases worker counts and timeout budgets.
- Adds topology regression tests and updates CI instructions and deployment hashes.
| File | Description |
|---|---|
tests/quality/test_ci_topology.py |
Adds trigger, label-gating, and mutation checks. |
apm.lock.yaml |
Updates hashes for deployed CI instructions. |
.github/workflows/merge-gate.yml |
Adds label-dependent required checks and extends polling time. |
.github/workflows/ci-integration.yml |
Adds opt-in triggers, PR concurrency, and increased execution capacity. |
.github/instructions/cicd.instructions.md |
Documents opt-in integration paths and trigger restrictions. |
.apm/instructions/cicd.instructions.md |
Updates the source CI instructions to match. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
… shards - ci-integration.yml: label-gated pull_request trigger on every job (from #4177); planner weights the in-process architecture suites 3x for --cov and plans up to 12 shards (target 300 s); shard cap 25 min. - merge-gate.yml: three-context EXPECTED_CHECKS; poll budget 80 min. - test_ci_topology.py and the merge-time-topology rule accept the label-gated pull_request trigger, still reject pull_request_target and push. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
…gate additions) Co-authored-by: copilot-swe-agent[bot] <[email protected]>
6 of 14 tasks
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
Adds two opt-in ways to run the full merge-time integration suite (
ci-integration.yml) before the merge queue is enforced:workflow_dispatchon any branch of this repository (write access).full-integration:pull_requestwith types[labeled, synchronize, reopened]. Every job hasif: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'full-integration'), so unlabeled PRs skip the whole workflow.merge-gate.yml:EXPECTED_CHECKSnow branches on merge_group, then on the label. Labeled PRs also requireBuild,Smoke Test,Integration TestsandRelease Validation (Linux). Unlabeled PRs never wait for them. The gate itself does not trigger onlabeled: a skippedgaterun for an unrelated label would count as passing. So: add the label, then push. Thesynchronizerun then starts the suite, and the gate requires it.Both modes run the same jobs as merge_group: full suite, integration coverage floor. The global 80% floor stays in ci.yml
Coverage Combine (Linux), unchanged.Sizing: the current 4-shard layout at
-n 2with a 20-minute cap would time out. Shard 1 hit the cap even with the 8-shard planner in #4149's rehearsal. So shards now use-n 4with a 50-minute cap, and the gate's poll budget rises to 80 min (job timeout 90). The planner retune stays in #4149.Security:
pull_requestnever gives fork PRs repository secrets, so a labeled fork PR runs without them.pull_request_targetandpushstay forbidden, and a topology test fails if either appears. A newer push or label event cancels the older PR run (concurrencykeyed on the PR number). merge_group and dispatch runs are never cancelled.Issue and approved scope
Issue: Part of #4116
Human scope-approval comment: #4116 (comment) (the workflow_dispatch trigger is in scope; the label trigger was requested by the Stream P lead for the 0.37 landing train)
Does this PR complete the issue, or what remains? No. The rest of #4116 (build-release planner, closed-world topology guard, freshness alarm) is in #4149, which rebases on this.
Type of change
Testing
Tested locally
All existing tests pass
Added tests for new functionality (if applicable)
New in
tests/quality/test_ci_topology.py:test_ci_integration_can_be_dispatchedtest_full_integration_label_runs_and_gates_only_labeled_prs: exact trigger set and PR types; every job label-gated; unlabeled gate excludes the four checks; labeled gate equals unlabeled plus the four.test_full_integration_opt_in_drift_fails(3 mutations: an ungated job, apull_request_targettrigger, and an unlabeled gate that requires the checks).uv run pytest -n 4 tests/quality/test_ci_topology.py tests/unit/test_windows_compat_gate_workflow.py tests/unit/test_security_workflow_contracts.py: passLint chain (ruff check, ruff format --check,
lint-architecture-boundaries.sh,check_test_assertions.py) andapm audit --ci(11/11): passChangelog
## [Unreleased]inCHANGELOG.md:user-visible effect first, 25 words or fewer, ending with
(#PR);breaking changes only under upgrade notes; no Highlights; see
.github/instructions/changelog.instructions.md.Spec conformance (OpenAPM v0.1)
docs/src/content/docs/specs/openapm-v0.1.mdupdated(new/changed
<a id="req-XXX"></a>anchor + prose + Appendix Crow).
docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.ymlupdated.
@pytest.mark.req("req-XXX")test undertests/spec_conformance/added or extended.CONFORMANCE.{md,json}regenerated viauv run --extra dev python -m tests.spec_conformance.gen_statementand committed.