You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6903a73
Browse filesBrowse the repository at this point in the historyBrowse files
ci: fail fast on the test, test-ui and dogfood matrices in the merge queue only
`strategy.fail-fast: ${{ github.event_name == 'merge_group' }}` on the three
matrices: a red queue shard cancels its siblings, so the aggregate reads red
when that shard ends rather than when the slowest one does. Pull request,
push and schedule runs keep every shard running to its end. The A1 comments
say the queue is the exception and why.
check-shard-attestation's self-test gains the fail-fast shape (one shard
red, the rest cancelled by the strategy, the measured cancel annotation of
run 30271824408), and ci-shard-matrix's fixture spells the new strategy.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jSkaG5iii6WC7w4qSX
'#26084 a planned roster: only the shards the plan started are counted': 16,
1741
1748
'#26084 the static guard holds the planned matrix and the gate to one expression': 10,
1742
1749
'#31519 a borrowed push: the gate skip and the seed-only credential guard': 8,
1750
+
'#31517 merge-queue fail-fast: one shard red, the rest cancelled by the strategy': 8,
1743
1751
});
1744
1752
1745
1753
// DELETING an entry silences that battery's floor exactly as effectively as
1746
1754
// zeroing it, so the roster's own size is pinned too.
1747
-
constSELF_TEST_BATTERY_FLOOR=25;
1755
+
constSELF_TEST_BATTERY_FLOOR=26;
1748
1756
1749
1757
// The key an assertion is filed under when no battery is open. It is not a
1750
1758
// declared battery, so it reds by the same set difference rather than silently
@@ -2293,6 +2301,40 @@ async function selfTest() {
2293
2301
"#22653 control: the single-leg path keeps #22606's verdict and words — a killed CLI leg is red beside a superseded matrix shard",
2294
2302
);
2295
2303
2304
+
// ── #31517: the merge queue's matrices are fail-fast ─────────────────────
2305
+
// On `merge_group` the `test` and `dogfood` matrices stop their remaining
2306
+
// shards once one is red (ruling record 6730013883). The shape is run
2307
+
// 30271824408's: the red shard concludes `failure`, the shards the strategy
2308
+
// cancelled conclude `cancelled` and attest nothing, and the matrix result
2309
+
// reads `failure`. The annotation below is that run's cancelled shard (check
2310
+
// run 89995981782), read from the check-run annotations endpoint.
2311
+
battery('#31517 merge-queue fail-fast: one shard red, the rest cancelled by the strategy');
2312
+
constFAIL_FAST_ANNOTATIONS=[annotation('The strategy configuration was canceled because "matrix._1" failed'),annotation('The operation was canceled.')];
'#31517: …by the declared negative AND by the count, which names the red shard and every shard it cancelled',
2320
+
);
2321
+
assert(!failFast([]).ok,'#31517: the first shard red before any sibling attested, all cancelled ⇒ red — `failure` is never the zero-attestation #3668 pass');
'#31517: a fail-fast matrix reads `failure`, so the gate asks no cancel cause — no API read can turn it green',
2325
+
);
2326
+
assert(classifyCancelAnnotations(FAIL_FAST_ANNOTATIONS).kind==='other',"#31517: a shard cancelled by its matrix's fail-fast is never read as a supersession");
'#31517 × #26084: a planned roster cut short by fail-fast ⇒ red',
2335
+
);
2336
+
assert(!dogfood('failure','success',[fullDogfood[0],fullDogfood[3]]).ok,'#31517: dogfood 2/3 red, 3/3 cancelled by fail-fast, the CLI leg green ⇒ the Dogfood Regression Gate reads red');
2337
+
2296
2338
// ── #22653: the per-shard cause read itself, offline ─────────────────────
2297
2339
battery('#22653 the cause read, offline: one jobs list, then one annotations read per unattested shard');
0 commit comments