Skip to content

ci: the selection replay record covers the story rule; a log download retries a server error - #11317

Merged
cixzhang merged 3 commits into
mainfrom
ci/replay-story-rule
Nov 12, 2026
Merged

cixzhang merged 3 commits into
mainfrom
ci/replay-story-rule

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Who this helps

Whoever reviews the evidence behind AST-030 FR31, the Chromium interaction lane's selection. The committed replay predated #11250's story rule, so it could not show how the lane now treats a story change.

What changes

  • Record: .github/interaction-selection-replay.json is regenerated over the same 153 pull requests with the lane's current selector, the story rule included.
  • Log retries: failingSpecs in the replay script tries a job-log download again after a GitHub server error (HTTP 5xx), up to 4 times, waiting 5, 10 and 15 s between tries. During this run GitHub's log endpoint returned 502 on some attempts and full logs on others, so a single 502 would have marked a pull request "failures unknown".

Result

Every verdict matches the earlier record: 144 no failure, 4 caught (#4259, #10128, #10577, #10588, with the same failing specs), 4 not an escape (reviewed), 1 out of scope. There are no escapes.

Three pull requests whose story was their only full-suite trigger now replay a narrow selection instead of the full suite, all with no failure:

Full-suite rows go from 77 to 74.

Tests

interaction-selection-replay.test.mjs: a 502 followed by a log is read after one retry; four 502s in a row give up with waits of 5, 10 and 15 s and none after the last try; a non-server error gives up at once.

CI impact

None: this is a maintainer script and its record.

… retries a server error

The record is regenerated with the Chromium lane's story rule (#11250). Every
verdict matches the earlier record: 144 no failure, 4 caught, 4 reviewed, 1 out
of scope. Three pull requests that change only stories now replay a narrow
selection with no failure (#9672, #10271, #10944). GitHub's job-log endpoint
answers 502 now and then, so failingSpecs tries a server error again, up to
four times, before it calls a log unreadable.
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 12, 2026 4:04am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 11, 2026
@astracat-bot

astracat-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 12, 2026, 9:52 AM UTC

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · abd8b81

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.

CI impact: 0 job-min per update · pool 0% · time to green −4.3 min · standard runners · 2 CI action or script files changed (not measured)
Before After Change
Job-minutes per PR update 118.9 118.9 0
Runner pool, runner-minutes a day 54,138 54,138 0 (0%)
Average concurrent jobs 37.6 37.6 0
Time to green (median → this run) 25.2 min 20.9 min −4.3 min
Runs a day 455 455 0

Not measured (the jobs that use these keep their recent minutes above): .github/scripts/interaction-selection-replay.mjs, .github/scripts/interaction-selection-replay.test.mjs.

Assumptions: before is each job's average over the last 20 pull-request runs; after keeps that for unchanged jobs and uses this run's minutes for added or changed ones, weighted by how often each changed job ran in those runs; runs a day averages the seven whole days before today; time to green compares this run with the median of those runs that ran the same jobs.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the regenerated record and the log retry check out, but the description and the commit message misstate which pull requests narrowed.

  • The Result paragraph and the commit message say #9672, #10271 and #10944 "change only stories" and call #9672 and #10271 "Button stories", but #9672 also changes useDrawerDialogPresence.ts, #10944 also changes Avatar.tsx, and the stories are Drawer, TableSelection and Avatar (Button's specs run because those stories import Button), so please reword both, for example as "three pull requests whose story was their only full-suite trigger".

Optional: failingSpecs still waits 20 s after its fourth and last try (interaction-selection-replay.mjs:187); guarding that wait with attempt < LOG_ATTEMPTS and testing four 502s in a row would close it.

Claims and files checked
  • Claim: the earlier record predated the story rule, so it could not show how a story change is treated — verified.
  • Claim: the record is regenerated over the same 153 pull requests with the current selector, story rule included — verified; every row the story rule can change reproduces exactly.
  • Claim: a log download is retried after a server error, up to 4 times with backoff — verified as 4 tries in all, waiting 5, 10, 15 and 20 s.
  • Claim: GitHub's log endpoint returned 502 on some attempts during the author's run — not checkable from the change.
  • Claim: before this change a single 502 marked a pull request "failures unknown" — verified.
  • Claim: every verdict matches the earlier record (144 no failure, 4 caught with the same failing specs, 4 reviewed, 1 out of scope) — verified.
  • Claim: there are no escapes — verified.
  • Claim: three pull requests that change only stories now replay a narrow selection with no failure — false; the narrowing and the absence of failures hold, but two of them also change component source.
  • Claim: #9672 and #10271 are Button stories that select ButtonHitArea and the specs that open them — false; they are Drawer and TableSelection stories that import Button.
  • Claim: #10944's story reaches no interaction spec — verified.
  • Claim: full-suite rows go from 77 to 74 — verified.
  • Claim: the new tests read a log after one retry following a 502 and give up at once on another error — verified; both pass.
  • Claim: no CI impact — verified; no workflow runs the script.
  • File .github/interaction-selection-replay.json — clear.
  • File .github/scripts/interaction-selection-replay.mjs — non-blocking note (the trailing 20 s wait).
  • File .github/scripts/interaction-selection-replay.test.mjs — clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 12, 2026 02:37
failingSpecs no longer waits after its fourth and last try, so a log that keeps
answering 5xx gives up after 30 s of waits, and a test pins four server errors
in a row. This also corrects the earlier commit's wording: the three pull
requests that now replay a narrow selection (#9672, #10271, #10944) are ones
whose story was their only full-suite trigger, not ones that change only
stories. Their stories are Drawer, TableSelection and Avatar; Button's specs run
because those stories import Button.

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The regenerated replay record checks out: all 153 rows reproduce under the lane's current selector at their merge commits, every verdict and failing-spec list is unchanged, and there are no escapes. The log retry stops after four tries and waits only between them, and its three new tests pass in CI.

Claims and files checked
  • Claim: the earlier record predated the story rule, so it could not show how a story change is treated — verified.
  • Claim: the record is regenerated over the same 153 pull requests with the lane's current selector, story rule included — verified; every row reproduces exactly.
  • Claim: a log download is tried again after a server error, up to 4 times, waiting 5, 10 and 15 s between tries — verified, as 4 tries in all.
  • Claim: GitHub's log endpoint answered 502 on some attempts during the author's run — not checkable from the change.
  • Claim: before this change a single 502 marked a pull request "failures unknown" — verified.
  • Claim: every verdict matches the earlier record (144 no failure; 4 caught, #4259, #10128, #10577 and #10588, with the same failing specs; 4 reviewed; 1 out of scope) — verified.
  • Claim: there are no escapes — verified.
  • Claim: three pull requests whose story was their only full-suite trigger now replay a narrow selection, all with no failure — verified.
  • Claim: #9672 (Drawer story plus useDrawerDialogPresence.ts) and #10271 (TableSelection story) both import Button, so Button's specs, ButtonHitArea among them, run beside their own — verified.
  • Claim: #10944 (Avatar story plus Avatar.tsx) opens no interaction spec through its story — verified; Avatar and its dependents have none either.
  • Claim: full-suite rows go from 77 to 74 — verified.
  • Claim: the new tests read a log after one retry following a 502, give up after four 502s with waits of 5, 10 and 15 s and none after the last, and give up at once on another error — verified; all three pass.
  • Claim: no CI impact — verified; no workflow runs the script.
  • File .github/interaction-selection-replay.json — clear.
  • File .github/scripts/interaction-selection-replay.mjs — clear.
  • File .github/scripts/interaction-selection-replay.test.mjs — clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 12, 2026 09:28
@cixzhang
cixzhang merged commit 8f42963 into main Nov 12, 2026
119 of 122 checks passed
@github-actions
github-actions Bot deleted the ci/replay-story-rule branch November 13, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — abd8b815 Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant