Repository navigation
ci: PR unit -n auto, 4 lifecycle shards, 3 Windows unit shards, split macOS arm64 lane (#4030) - #4032
Merged
Daniel Meppiel (danielmeppiel) merged 5 commits intoNov 20, 2026
Conversation
… macOS arm64 lane (#4030) Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Closed
5 of 14 tasks
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
marked this pull request as ready for review
November 20, 2026 08:21
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 08:21
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The CI documentation overstates macOS validation on branch pushes and ARM integration coverage, requiring corrections in both instruction files and refreshed lockfile hashes.
1 open issue
What changed in this PR
This PR addresses #4030 by increasing parallelism in APM's CI workflows while preserving test selections and release-validation requirements.
Changes:
- Uses
-n autofor PR unit tests and expands lifecycle smoke testing to four shards. - Expands main-push Windows unit testing to three shards and separates macOS arm64 units from build validation.
- Updates dependency gates, workflow contract tests, and supporting documentation.
| File | Description |
|---|---|
tests/unit/test_push_ci_gates.py |
Updates Windows gate expectations for three shards. |
tests/unit/test_platform_contract_workflow.py |
Accounts for the separate macOS arm64 unit job. |
tests/quality/test_ci_topology.py |
Adds layout checks and mutations covering shards and release dependencies. |
docs/src/content/docs/contributing/integration-testing.md |
Documents four lifecycle shards and the macOS split. |
CHANGELOG.md |
Records the internal CI layout change. |
apm.lock.yaml |
Refreshes deployed CI instruction hashes. |
.github/workflows/ci.yml |
Increases unit parallelism and adds the fourth lifecycle shard. |
.github/workflows/build-release.yml |
Adds Windows and macOS unit jobs with downstream gates. |
.github/instructions/cicd.instructions.md |
Updates deployed CI guidance. |
.apm/instructions/cicd.instructions.md |
Updates canonical CI guidance. |
Review effort: Balanced
…ge over all 4 shards; CHANGELOG [Unreleased]) Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-bookish-invention
branch
November 20, 2026 08:42
This was referenced Nov 20, 2026
Merged
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.

Caution
Touches build-release.yml: merge only after v0.37.0 is tagged and published.
Description
TL;DR — CI layout only, for #4030. PR unit shards use every runner CPU, lifecycle smoke goes from 3 to 4 seed-balanced shards, main-push Windows units go from 2 to 3 shards, and the macOS arm64 lane is split into a unit job and a build/integration job on the same SHA. Same tests, events and release-promotion evidence; every aggregate still fails closed.
-n 2 --dist worksteal-n auto --dist worksteal(what main push already uses)ci.yml--shard-count 3--shard-count 4, same planner + seed;Lifecycle Smoke (Linux)requires all 4ci.ymlwindows-unit-1..2windows-unit-1..3;build-windows-pushneeds all 3 and its gate requirespush:success×5build-release.ymlunit-macos-arm(same setup, same unit command) ∥build-and-validate-macos-arm(unchanged minus units)build-release.ymlFail-closed and release evidence
Lifecycle Smoke (Linux)isif: always()and needs every shard result to besuccess. Missing, skipped, cancelled or failed results all fail it (tested by running the real step).build-windows-pushdoes not build, sign or upload unless plan, installer and all 3 unit shards aresuccess.unit-macos-armruns exactly when the old unit step ran (mode != 'push' && run_unit == 'true', so full runs only).create-releaseneeds it and requiressuccess. The only exception is a promoted tag, where it may beskipped, the same ruleintegration-testsalready uses.daily-release-smoke-signalalso needs it.scripts/release_plan.py) is unchanged: a green full run of the exact SHA. A failingunit-macos-armfails that run, so it can no longer be evidence.Issue and approved scope
Issue: Fixes #4030
Human scope-approval comment: #4030 (comment) (
eligibility.cjs:record-present,contact_confirmation_needed: false)This PR completes the issue's Done-when, except the 20-run confirmation after merge that the record defers.
Type of change
Testing
Node-set diff on the same SHA (
7ee94db). For each layout, the union of the shards equals the baseline set and their pairwise intersection is empty:Commands (each node set is
... --collect-only -q | grep '::' | sort, then set union/intersection in Python)R1 changes only the xdist worker count, which does not affect collection. The 2-shard split is the same as before.
Pinned in tests.
tests/quality/test_ci_topology.pynow enforces:test_lifecycle_shards_collect_exact_required_union, which collects every shard live;-n auto --dist workstealwith xdist flags set exactly once;Require Windows push testsgate executed against failed, cancelled, skipped, empty and missing results;create-release/daily-smoke dependency plus its success-or-promoted-skip condition.Mutation tests fail each guard.
test_push_ci_gates.pyandtest_platform_contract_workflow.pyare updated for 3 Windows shards and the three-macOS-job capacity rule.PR-gate wall clock. Measured from CI run start to completion of the last required check (
Build & Test Shard 1/2,Windows Compatibility Gate,APM Self-Check,Lifecycle Smoke (Linux)). All required checks were green in every sample:Baseline for comparison: the private audit measured 7:35. Eight green old-layout PR CI runs sampled in the same hour had a median of 8:38 (range 6:59–9:02). The new layout is about 40 s under the audit baseline and about 1:45 under the same-hour baseline. It does not yet reach the 6:05 target. The critical path now alternates between Build & Test Shard 1 (
-n autogives the unit step 231–396 s, depending on the runner) and the lifecycle shards. Lifecycle balance is limited by the seed: only about 40% of the 811 lifecycle nodes have weights in.github/ci-durations/linux-x86_64.json, and the rest are weighted at the mean. Refreshing that seed would change release integration sharding too, so it is left out of this layout-only PR as a follow-up. Runner variance is large: unit-shard collection took 48–128 s across samples.Pre-merge checklist
build-release.yml).mainafter the tag; CI green.Unit Tests (macOS arm64)andBuild & Validate (macOS arm64)green on the same SHA, plus the 20-run PR-gate confirmation.Changelog
## [Unreleased]inCHANGELOG.md(the scope record asks for one internal line; it is underChanged, prefixedInternal:).Spec conformance (OpenAPM v0.1)
Not applicable: no
req-XXXbehaviour changes.Co-authored-by: Copilot [email protected]