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 57fd195
Browse filesBrowse the repository at this point in the historyBrowse files
ci(dogfood): the three Dogfood Regression Gate shards run on merge_group
Only merge_group leaves the dogfood job's event deny-list; pull_request
keeps the fast set, and dogfood-verify, temporal-conformance and
ui-published-artifacts stay full-battery only. THE TWO SPEEDS and every
comment that restated the old split now say what runs where.
The two gates that read job if: spellings learn the queue-and-full
clause (pull_request excluded alone): check-expected-skips no longer
calls such a job "full battery only", and dispatch-gates keeps the
dogfood path population and tells the dev the PR skips the shards and
the merge-queue build runs them first.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ihL2ebbZkr2QAEG1x7UC8
Copy file name to clipboardExpand all lines: scripts/pm/check-expected-skips.mjs
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -539,7 +539,14 @@ function gatedReason(workflow, wf, gate, matrix) {
539
539
}
540
540
if(t.kind==='pr-event'){
541
541
constwhere=[t.events.includes('pull_request')&&'every PR head',t.events.includes('merge_group')&&'every queue build'].filter(Boolean).join(' and ');
542
-
return`full battery only: its \`if:\` excludes ${tick(t.events)}, so it skips on ${where} and is answered by main's push and scheduled runs`;
542
+
// "Full battery only" is said only when BOTH per-PR events are excluded:
543
+
// since #30461 ci.yml's `dogfood` shards exclude `pull_request` alone and
544
+
// run on every queue build, so the queue build answers them first.
545
+
if(PR_EVENTS.every((e)=>t.events.includes(e))){
546
+
return`full battery only: its \`if:\` excludes ${tick(t.events)}, so it skips on ${where} and is answered by main's push and scheduled runs`;
547
+
}
548
+
constanswered=t.events.includes('pull_request') ? "the merge-queue build and main's push and scheduled runs" : "every PR head and main's push and scheduled runs";
549
+
return`its \`if:\` excludes ${tick(t.events)} alone, so it skips on ${where} and is answered by ${answered}`;
543
550
}
544
551
if(t.kind==='event-action'){
545
552
return`its \`if:\` excludes the ${tick(t.actions)} pull_request event(s); each such event is its own run on the same head, beside the run that concluded`;
@@ -1284,6 +1291,8 @@ function fixtureRun(name, conclusion, suite = 1, extra = {}) {
@@ -1531,6 +1540,7 @@ export function selfTest() {
1531
1540
t('jobGate: …nor always(), an absent if:, a non-string, or two ${{ }} blocks',[jg('always()'),jg(undefined),jg(true),jg("${{ needs.filter.outputs.a != 'false' }} && ${{ needs.filter.outputs.b != 'false' }}")].every((x)=>x===null),true);
1532
1541
t('jobGate: …nor an if: whose parentheses do not balance',jg("!cancelled() && (needs.filter.outputs.core != 'false'"),null);
1533
1542
t('spelling: a gate renders in one short line',gateTermsSpelling(jg(FULL_BATTERY_IF).terms),'filter core + pr-event pull_request|merge_group');
1543
+
t('jobGate: the queue-and-full shape (#30461) is one pr-event term excluding pull_request alone',JSON.stringify(jg(QUEUE_AND_FULL_IF)?.terms.find((x)=>x.kind==='pr-event')?.events),JSON.stringify(['pull_request']));
1534
1544
1535
1545
// ---- the derivation, on the frozen fixture tree ----------------------------
1536
1546
constfx=fixtureRoster();
@@ -1556,6 +1566,9 @@ export function selfTest() {
1556
1566
t("reason: a queue-widened output says the merge-queue build runs it",fxRow('Build Core')?.reason.includes("merge-queue build widens it to 'true'"),true);
1557
1567
t("reason: a ui output says the queue reads its own diff",fxRow('Build UI Deps')?.reason.includes("against the queue's base"),true);
1558
1568
t('reason: a full-battery job says so',fxRow('Dogfood Verify CLI')?.reason.includes('full battery only'),true);
t('reason: a job excluding pull_request alone is NOT called full battery only (#30461)',queueRow?.reason.includes('full battery only'),false);
1571
+
t('reason: …it says only PR heads skip it and the merge-queue build answers it',queueRow?.reason.includes('skips on every PR head and is answered by the merge-queue build')&&!queueRow?.reason.includes('every queue build'),true);
1559
1572
t('reason: an opt-out label names its label',fxRow('Check Changeset')?.reason.includes('`skip-changeset` label skips it'),true);
1560
1573
t('reason: a matrix job names its raw template',fxRow('Test Core (${{ matrix.shard }}/6)')?.reason.includes('raw `name:` template'),true);
1561
1574
t('reason: unread conjuncts are counted, never hidden',fxRow('Build UI Deps')?.reason.includes('1 further condition(s)'),true);
0 commit comments