Skip to content

ci: record the Citation text-size interaction spec's time, so recorded times cover nine in ten specs again - #13238

Closed
josephfarina wants to merge 1 commit into
mainfrom
josephfarina/ci-record-citation-text-size-time
Closed

josephfarina wants to merge 1 commit into
mainfrom
josephfarina/ci-record-citation-text-size-time

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

User impact

None for users. The test leg that checks the recorded Chromium interaction times was failing on main: a new interaction spec (packages/core/src/Citation/__tests__/CitationTextSize.interaction.browser.spec.ts) had no recorded time, so 127 of 142 interaction specs were timed (0.894), under the test's floor of nine in ten. Every pull request whose node tests ran that file failed on it.

Change

Records that spec's Chromium time in .github/playwright-leg-durations.json: 1.0 s, measured from its own pull request's interaction run (two tests, 545 ms and 504 ms). With it, 128 of 142 specs are timed (0.901). Data only; no code, test or shipped file changes, so no changeset.

Verification

  • The test's own selection (git ls-files under internal/interaction-harness/src and packages, filtered by isInteractionSpec) gives 142 specs on main and 128 timed with this change.
  • The JSON keeps its sorted key order; one line added.

preflight: pass bc0c063 (data-only change: the coverage ratio the failing test checks was recomputed with its own file selection, 128/142 = 0.901; CI runs the rest)

@vercel

vercel Bot commented Nov 21, 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 21, 2026 7:30am UTC

Request Review

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

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 7:37 AM UTC

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · bc0c063

This branch's preview address cannot be known in advance; open it from Vercel's comment.

Current run: The current CI run concluded cancelled. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@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 pending CI: CI has not run on this head yet (the run was cancelled before any job started), so the required checks need a run here before merge.

The added entry times the Citation text-size interaction spec. That brings the recorded Chromium times to 128 of 142 specs (0.901) and clears the nine-in-ten floor in .github/scripts/playwright-legs.test.mjs, which main fails today at 127 of 142 (0.894).

  • #13193, which times the other 14 untimed specs, inserts at the same place in .github/playwright-leg-durations.json, so the two conflict and whichever lands second needs a rebase.
  • On its own this change leaves no headroom: one more untimed interaction spec on main drops coverage to 128 of 143 (0.895) and fails the test again until the record is refreshed.
Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: no user impact. Verified: the only changed file is CI data under .github/.
  • Claim: the recorded-times test fails on main. Verified: main's Node tests fail at playwright-legs.test.mjs:577 with 0.894, under 0.9.
  • Claim: the Citation spec had no recorded time, leaving 127 of 142 timed. Verified at the base with the test's own file selection.
  • Claim: every pull request whose Node tests ran that file failed on it. Verified: the assertion depends only on the tracked spec paths and the record.
  • Claim: 1.0 s from the spec's own pull request run, two tests at 545 ms and 504 ms. Consistent: the spec has two tests (lines 70 and 81), and 1.049 s rounds to 1.0 at the record's tenth-of-a-second precision.
  • Claim: 128 of 142 timed with this change (0.901). Verified.
  • Claim: data only, no changeset needed. Verified: no code, test or shipped file changes.
  • Claim: sorted key order kept, one line added. Verified.
  • File .github/playwright-leg-durations.json: clear.

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 21, 2026
- #13238 ci: record the Citation text-size interaction spec's time, so recorded times cover nine in ten specs again
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #13239.

cixzhang added a commit that referenced this pull request Nov 21, 2026
Main recorded CitationTextSize at 1.0 s (#13238); keep main's time for it.
cixzhang added a commit that referenced this pull request Nov 21, 2026
…ps unmeasured ones (#13193)

* ci: record Chromium times for every interaction spec; the refresh keeps unmeasured ones

main timed 127 of 141 interaction spec files (90.07%), on the playwright-legs test's 90% floor, so a pull request adding one spec failed it. The 14 missing times come from main's latest full Chromium runs (median), and for three specs newer than those runs, from their own pull requests' green runs. The weekly refresh's median now keeps the recorded time of a tracked spec its runs did not time instead of dropping it.

* ci: the interaction refresh reuses mergeRecord; MarksFitTheBox at the refresh's own median

The refresh keeps unmeasured tracked specs through scripts/lib/duration-split.mjs mergeRecord (now with an order option, so the record keeps its byte order), which also drops a file git no longer tracks when a run timed it. MarksFitTheBox is 3.3 s, the median medianTimes gives over its two full runs.

* Merge main into ci/interaction-durations-fill

* ci: record CitationTextSize's Chromium time from #12461's green leg

The main merge brought in packages/core/src/Citation/__tests__/CitationTextSize.interaction.browser.spec.ts, which had no time; 1.7 s from #12461's pr-interaction leg (run 44860960331). Chromium now times 142 of 142.

* Merge main into ci/interaction-durations-fill

Main recorded CitationTextSize at 1.0 s (#13238); keep main's time for it.
@github-actions
github-actions Bot deleted the josephfarina/ci-record-citation-text-size-time branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — bc0c0637 Deployed Nov 21, 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