Repository navigation
Long-chat A/B: measure against the base tip the PR merge was built on - #19349
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Long-chat cost against the base buildis red on chat PRs that did not cause the slowdown it reports. On #19169 (load a second quant of a GGUF repo):This is the same
stream_scrollslowdown #19172 introduced (26 to 337 ms, 1 to 7 long tasks; see the comment there).Cause
The step measured against
github.event.pull_request.base.sha, which does not move when main advances. The checkout, though, is the PR merge ref built on the current base tip. For #19169:BASE_SHA(event base):cf00c93, which predates Studio: add a Files menu to chat #19172;Merge b6c005fe into 7d4eb4aa, which includes Studio: add a Files menu to chat #19172.So the head arm carried #19172's slowdown and the base arm did not, and any chat PR opened before #19172 merged now fails the gate for a change it does not contain. The tool is right; the step handed it the wrong base.
Fix
studio-frontend-ci.yml,long-chat-ab: read the base from the checkout. WhenHEADis a merge commit (the PR merge ref),BASE_SHAis its first parent, the base tip the merge was built on; otherwise it falls back to the event base as before.git cat-file -p HEADkeeps the parent lines in the depth-1 checkout, so no deeper fetch is needed. The step now prints both SHAs.tests/studio/test_long_chat_ab_measures_against_the_merge_base_tip.pyruns the step's own resolution lines in bash:BASE_SHAis no longer taken from the event directly.The new guard is listed in
workflow-trigger-lint.yml, so a workflow-only edit still runs it.Verification
studio-frontend-ci.ymlorworkflow-trigger-lint.yml: 743 passed.Not changed
pull_request.base.sha(lint-ci.yml,security-audit.yml,studiobench-ui-parity.yml, the Windows installer and AMSI differentials). The ones that only diff the PR's own changes are fine with it; any that build or measure a base arm against the merge ref can drift the same way and are worth a look, but are left alone here.