Skip to content

Studio CI: long-chat gate measures the dialog lock again before failing - #16985

Merged
danielhanchen merged 1 commit into
mainfrom
studio-gate-lock-recheck
Nov 7, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-gate-lock-recheck

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Follow-up to #16931. The long-chat gate fails a PR on one reading of the dialog/menu lock cost. On a shared runner that reading can catch the page mid-settle.

Problem

Staging for #16983 failed on Inline images (windows-latest): the lock check read 125 ms of style recalc per toggle at 200 turns, against a 30 ms budget. The same commit read 14.3 ms in Composer (windows-latest) and 15-16 ms on Ubuntu and macOS. That page also read 0.2 ms/key of typing style recalc (normally 8) and about 400 extra DOM nodes, so it was not in its usual state. #16983 does not touch CSS.

Fix

When the lock reading is over budget, measure the 200-turn page once more on a fresh page and keep the lower value. A real regression reads high twice, so it still fails. Runs under budget are unchanged and do no extra work.

Testing

  • With LONG_THREAD_MAX_LOCK_MS=1 the gate remeasures, prints dialog/menu lock 11 ms is over budget; measured again on a fresh page: 11 ms, and fails as before.
  • Under the normal budget the over-budget branch is never taken, so passing runs are unaffected.

One reading on a shared runner can catch the page mid-settle: a Windows
leg read 125 ms of style recalc per lock toggle where the same build read
14 ms on every other leg, and failed the gate. When the reading is over
budget, measure the 200-turn page once more on a fresh page and keep the
lower value; a real regression reads high twice.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-07T03:16:37.482274Z
We couldn’t complete this review. Comment @codex review to try again.
0d0b398 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@danielhanchen
danielhanchen merged commit 1b07330 into main Nov 7, 2026
@danielhanchen
danielhanchen deleted the studio-gate-lock-recheck branch November 7, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant