Repository navigation
test(Table): isolate release timing and stabilize cadence sampling - #11035
astracat-bot[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| 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: measured; main has no measurement of the merge base to compare yet.
API changes: unknown (base surface unavailable): richtext, theme-butter, theme-chocolate, theme-gothic, theme-matcha, theme-neutral, theme-stone, theme-y2k
Committed API report behind this build: cli 36 rows, core 36 rows; run pnpm api:report.
Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.
CI impact: 0 job-min per update · pool 0% · time to green −1 min · standard runners · 2 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) | 18.3 min | 17.4 min | −1 min |
| Runs a day | 491 | 491 | 0 |
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.
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
…the release runner (#11055) * test(Table): isolate release timing and stabilize cadence sampling 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> * test(Table): the release timing proof gates timing on the 4-core release 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. * Merge remote-tracking branch 'origin/main' into lane1/table-release-timing-gate * test(ci): the Table timing gate keeps the release runner's condition 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> * docs(Table): PR7 keeps the durable timing conclusion and names where 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>
validation: ran pnpm exec vitest run .github/scripts/a11y-contract-shard.test.mjs --project node (15 passed); pnpm exec playwright test --test-list timing-tests.txt --config playwright.config.ts --project chromium --workers=1 --repeat-each=3 --output=test-results/table-release-final (3 passed); Prettier and spec-file ESLint passed.
Maintainer impact
Run #37779, shard 5/6 failed the Table row-windowing release proof at bff2a3d: the 1k/core range-plus-commit p95 was 9.9 ms against 4 ms. No-op, frame-work, missed-frame and supported-plugin timing bounds also failed. The other 382 tests passed, so this also failed the aggregate “Require every contract shard” gate.
The proof shared four workers with other browser tests and production fixture builds. Those workloads contaminate its wall-clock timing samples. Separately, its 100-interval cadence sample lets one scheduling gap dominate a 1% rate estimate: unchanged local code failed once and passed once; the failed sample contained two approximately 83.3 ms intervals, reporting eight missed frames and 7.4%.
Change
Give the marked timing proof its own contract shard; balance every other test across the remaining five shards. This removes sibling-worker and fixture-build contention without changing the workflow, skipping coverage, retrying tests, or changing product code.
Collect 1,800 cadence intervals (30 seconds at 60 Hz) at the same one-row-per-frame pace. Reverse over 200 row pitches so the 1k corpus does not reach its end or pad the measurement with idle frames. Keep every interval, including scheduling gaps, in the rate calculation. All 22 existing assertions, every timing/heap/work bound, the 100 range samples, and the six-minute timeout are unchanged. No behavior change.
Evidence
The check passed at f67eeb6 between the recorded red streaks; its earlier green commit was 42e482c.
deflake_evidence: b. It went red in 2 streaks in 7 days (2026-11-10T11:36Z, 2026-11-10T11:52Z), passing between them.
The partition regression tests prove isolation, complete single coverage, and failure rather than shared timing when too few shards are available. The actual 3,056-test listing is still selected exactly once; shard 6/6 contains only this proof. Local unchanged code passed all four concurrent repeats, so the GitHub 9.9 ms sample was not reproduced on this machine. An intermediate 1,000-interval version passed two of three runs; the third had 12 missed frames clustered in a short scheduling burst (1.19%). The final measurement window is a fixed 30 seconds, not a retry-until-green or a filtered sample. All three final repeats passed (18 corpus/plugin cases, 32,400 cadence intervals): worst range p95 2.5 ms, worst main-thread p95 11.781 ms, worst missed-frame fraction 0.222%, and zero blank frames, orphan frames or orphan viewports.
CI impact and uncertainty
The runner pool and number of jobs stay unchanged. The recorded-duration model estimates the busiest shared shard at 585 seconds instead of 451 seconds, while the benchmark owns the sixth job. Modelled test execution totals approximately 45.1 job-minutes before and 52.5 after, using the measured 4.2-minute benchmark; unchanged setup time is excluded. The old model has no accurate duration for this new proof; the longer cadence adds approximately 170 seconds of measurement per run. Actual CI time-to-green still needs confirmation. This intentionally spends isolation and sample volume instead of relaxing the release contract.
Covered tests: the Table release timing/bounded-work/controlled-GC proof and the aggregate Accessibility spec-test contracts “Require every contract shard” gate.