Skip to content

test(Table): isolate the release timing proof and gate its timing on the release runner - #11055

Merged
cixzhang merged 5 commits into
mainfrom
lane1/table-release-timing-gate
Nov 10, 2026
Merged

cixzhang merged 5 commits into
mainfrom
lane1/table-release-timing-gate

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Supersedes #11035, a byte-identical re-cut of its three files with its author credited (Co-authored-by), plus the timing-gate and records changes below.

Maintainer impact

The release check's Table row-windowing proof (TableVirtualization.release.a11y.chromium.spec.ts) failed on every release check since it landed. Run 42808755700, shard 5/6 at bff2a3d failed its timing budgets: 1k/core range-plus-commit p95 was 9.9 ms against 4 ms, with no-op, frame-work, missed-frame and supported-plugin bounds also failing. Its count budgets passed.

The failures came from contention, not from Table code:

  • The proof shared four workers with other browser specs and fixture builds.
  • The same failure reproduces at the shared engine's parent commit and at its merge commit, on the same runner class (42823587878 and 42823595801).

Change

From #11035, unchanged:

  • A spec file marked // @a11y-isolated owns a whole contract leg, so the timing proof runs alone. Every other test balances across the remaining five legs.
  • The cadence sample records 1,800 intervals (30 seconds at 60 Hz) over 200 row pitches in both directions.

Added here:

  • Timing gates only on the release runner. ASTRYX_TABLE_TIMING_GATE is set from the same condition that picks 4-core-ubuntu. The 3-hourly monitoring release checks on ubuntu-latest report timing without gating, so those runs don't stay red. Release-evidence runs gate timing on 4-core: person- or tooling-dispatched release checks today, and the pre-cut and re-check runs once a CI & Release follow-up moves them to 4-core right after this merges. Count, work and memory budgets gate on every runner.
  • Budgets unchanged. The timing budgets stay the module record's PR5 targets (4 / 2 / 16.7 ms, 1% missed, 2 ms supported increment, 250 ms cold). They're now named in one TIMING_BUDGETS object, and the receipt records whether timing gated.
  • Record. module:Table/useTableRowsVirtualization PR7 states where timing gates, that release checks on ubuntu-latest report timing without gating, and the durable conclusion: isolated runs on the release runner stay at least 25% inside every PR5 target. The measured numbers stay in this description. OQ1 holds tightening until isolated samples span both 4-core host types.

Evidence

Five isolated runs on the release runner (4-core-ubuntu, --workers=1, the proof alone, this spec as #11035 changes it; run 42855373064, all five passed, all on AMD EPYC 9V74 hosts):

Metric Worst run Worst + 25% Gating budget (PR5)
range-plus-commit p95 2.9 ms 3.6 ms 4 ms
no-op p95 0.8 ms 1.0 ms 2 ms
whole-frame work p95 12.6 ms 15.7 ms 16.7 ms
missed-frame fraction 0 0 1%
supported-plugin increment p95 1.4 ms 1.75 ms 2 ms
100k core cold render 72.6 ms 91 ms 250 ms

Worst + 25% is never looser than PR5, so the budgets stay at PR5. Tightening toward the derived values waits for samples on the other 4-core host type (AMD EPYC 7763), so a slower host doesn't flake the release check. Count budgets passed in all five runs: no-op cell transforms 0, scroll key validation 0, mounted rows ≤ 15, zero blank frames.

Release check with isolation: run 42852382860 at #11035's head f015eb8, on 4-core. All six contract shards are green, and the Table proof passed in isolation with the unchanged budgets. The longest shared leg took 13.97 minutes, about 1 minute under the 15-minute leg timeout and at the 14-minute line; if a later run passes 14.0 minutes, a seventh shard follows, never a higher cap.

For context only, not used for budgets: four release-check runs with the proof sharing four workers were 3–4× slower (range-plus-commit p95 up to 21 ms). bff2a3d ran on ubuntu-latest; b2a62d9, 3672296 and 1ac0c24 ran on 4-core-ubuntu.

Local checks: a11y-contract-shard.test.mjs passes 15/15. A new contract test, ci-table-timing-gate.test.mjs, asserts the timing gate's condition is identical to the one that picks 4-core-ubuntu; it passes, and fails when the gate's condition drifts. Core tsc, spec ESLint, Prettier and check:knowledge pass.

Exact-head release check: run 42861764814 at this head, fd11705, on 4-core-ubuntu with the timing gate on: all six contract shards are green. The Table proof, in shard 6/6 alone, passed its gating timing budgets. Shard durations were 8.3 / 9.4 / 10.2 / 9.6 / 8.9 / 5.5 minutes; the longest leaves about 5 minutes under the leg timeout. The run's release-authority and release-check jobs fail by design on a non-main ref; only the contract shards are the evidence.

Scope

  • Test infrastructure plus one record clause; no product code changes.
  • Public text contains no internal Meta context.

Writing rubric results

  • Present tense; it describes where timing gates and its measured basis, with no history or pull requests in the record.
  • PR5's targets are unchanged. PR7 names the runner, the isolation, the run count, the margin and the host type.
  • OQ1 is stated as an open item with its condition.

Co-authored-by: astracat-bot[bot] <323722387+astracat-bot[bot]@users.noreply.github.com>

cixzhang and others added 3 commits November 10, 2026 08:15
Re-cut of #11035: the marked Table release timing proof owns a contract
shard, and the cadence sample records 1,800 intervals over 200 row pitches
in both directions.

Co-authored-by: astracat-bot[bot] <323722387+astracat-bot[bot]@users.noreply.github.com>
…ase runner only

On the scheduled ubuntu-latest checks the proof's receipt reports timing
without gating; the release check's 4-core-ubuntu runs gate it. The job
sets ASTRYX_TABLE_TIMING_GATE from the same condition that picks the
runner. Count, work and memory budgets gate everywhere. The timing budgets
stay the module record's PR5 targets: five isolated runs on the release
runner stay inside them, and the worst run plus 25% is not looser. PR7
records that measured basis and the host type; OQ1 holds tightening until
the samples span both 4-core host types.
@vercel

vercel Bot commented Nov 10, 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 10, 2026 6:19pm UTC

Request Review

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

astracat-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 10, 2026, 6:31 PM UTC

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec a65be2f

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · a35807c

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
TableBody 3.5 kB (0) · 3.3 kB CSS (0) — ✓ · ✓ · ✗
TableFooter 3.5 kB (0) · 3.3 kB CSS (0) — ✓ · ✓ · ✗
TableHeader 3.5 kB (0) · 3.3 kB CSS (0) — ✓ · ✓ · ✗
5 more components
Component Size LoC Visual · A11y · RTL
TableRow 7.0 kB (0) · 4.0 kB CSS (0) — ✓ · ✓ · ✗
Table 126.6 kB (0) · 18.4 kB CSS (0) — ✓ · ✓ · —
TableCell 111.0 kB (0) · 17.9 kB CSS (0) — ✓ · ✓ · ✓
TableHeaderCell 110.6 kB (0) · 17.7 kB CSS (0) — ✓ · ✓ · ✓
TableSelectionToolbar 71.2 kB (0) · 13.2 kB CSS (0) — ✓ · ✓ · ✓

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

API changes: none in this pull request

Committed API report behind this build: cli 36 rows, core 36 rows; run pnpm api:report.

Touched components checked; add ci:run-visual or ci:run-rtl to run the full suites.

CI impact: 0 job-min per update · pool 0% · time to green −5.5 min · some runners chosen by event or unknown · 3 CI action or script files changed (not measured)
Before After Change
Job-minutes per PR update 128 128 0
Runner pool, runner-minutes a day 62,892 62,892 0 (0%)
Average concurrent jobs 43.7 43.7 0
Time to green (median → this run) 22.1 min 16.6 min −5.5 min
Runs a day 491 491 0

Changed jobs: Accessibility spec-test contracts changed: standard or non-standard by event (4-core-ubuntu)

Not measured (the jobs that use these keep their recent minutes above): .github/scripts/a11y-contract-shard.mjs, .github/scripts/a11y-contract-shard.test.mjs, .github/scripts/ci-table-timing-gate.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

A contract test reads ci.yml and asserts that ASTRYX_TABLE_TIMING_GATE is
'1' on exactly the condition that picks 4-core-ubuntu for the contract
shards, so the two expressions cannot drift. A drifted condition fails it.

Co-authored-by: astracat-bot[bot] <323722387+astracat-bot[bot]@users.noreply.github.com>
@cixzhang
cixzhang marked this pull request as ready for review November 10, 2026 17:07
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec fd11705

@cixzhang cixzhang added ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) labels Nov 10, 2026

@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.

Requesting changes. The leg isolation and the gate-condition contract test hold up: the new shard tests fail on the base and pass here, and the exact-head release check ran the Table proof alone, timing-gated, and passed in 4.2 minutes. Two things need fixing before this lands:

  • PR5 timing stops gating stable releases: ASTRYX_TABLE_TIMING_GATE is 0 on every release check that github-actions[bot] dispatches (main's three-hourly and 06:30 pre-cut runs and the release re-check), and requireReleaseCheck in scripts/release/release-check-receipt.mjs accepts any of them for the cut commit, so either make the cut's receipt timing-gated or say in PR7 and the description that releases cut from those checks are not timing-gated.
  • PR7 in useTableRowsVirtualization.spec.md now lists the five-run measurements but still ends with "timing and memory results remain outside this record", so either keep only the durable conclusion (isolated runs on that runner stay at least 25% inside every PR5 target) and leave the numbers in the pull request, or narrow that sentence to per-release results.

A smaller note: on #11035's run the longest shared leg took 13.97 minutes, about 1 minute under the 15-minute timeout rather than 2, which already reaches the description's own seventh-shard threshold.

[Automated review]

Comment thread .github/workflows/ci.yml Resolved
@cixzhang
cixzhang marked this pull request as draft November 10, 2026 17:35
@cixzhang
cixzhang marked this pull request as ready for review November 10, 2026 17:35
…timing reports only

PR7 drops the five-run numbers, which stay in the pull request, and keeps
the conclusion: isolated runs on the release runner stay at least 25%
inside every PR5 target. Its closing sentence covers per-release results.
It also states that release checks on ubuntu-latest, including the
scheduled monitoring runs, report timing without gating.

Co-authored-by: astracat-bot[bot] <323722387+astracat-bot[bot]@users.noreply.github.com>
@cixzhang
cixzhang marked this pull request as draft November 10, 2026 18:12
@cixzhang
cixzhang marked this pull request as ready for review November 10, 2026 18:12
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 10, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec a35807c

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 10, 2026

@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.

Approving; CI passed on this head. Both earlier findings are fixed: PR7 now says release checks on ubuntu-latest report timing without gating and keeps only the durable conclusion that isolated runs stay at least 25% inside every PR5 target, and an engineering owner approved the record at this head.

Non-blocking, for the follow-up:

  • Until the pre-cut and re-check runs move to 4-core-ubuntu, a stable release cut from one of them publishes with PR5 timing only reported, because the publish accepts any passing release check at the cut commit.
  • No ubuntu-latest run with five shared contract legs has been measured yet, and main's ubuntu-latest legs already reached 14.12 minutes before isolation, so the first scheduled checks are worth watching against the 15-minute budget.
  • The description's writing-rubric line still says PR7 names the run count and the host type, which it no longer does.

[Automated review]

@cixzhang
cixzhang merged commit fcf9286 into main Nov 10, 2026
114 of 129 checks passed

This branch was successfully deployed

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

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) 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