Repository navigation
Tests: the skipped-menu linearity check times each size as the best of five - #16170
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review SummaryThis 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. |
This was referenced Oct 30, 2026
|
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
studio/backend/tests/test_web_fetch_extraction.py::test_stray_end_tags_in_a_skipped_menu_stay_linearfailed in(Python 3.13, a-f)on an unrelated PR (the staging run for #16071, a LoRA change):The test times one call of
html_to_markdownat 1000 and at 8000 repeats and requires the second to stay under 24x the first (8x input, so linear growth is about 8x and quadratic about 64x). Each size is a single call, and the small one takes only about 10 to 15 ms, so a single descheduling of either call on a shared runner moves the ratio. Here it read 28x. Locally the single-call ratio ranges 6.4x to 8.8x over 15 trials for both inputs, so the extractor is linear; the measurement was noisy. The test came in with #13489.Fix
Each size is timed as the best of five calls on the same input. The bound and the claim are unchanged: eight times the input must cost less than 24 times the time. The minimum discards a call that lost the CPU and keeps the cost of the code itself.
Verification
html_to_markdownwith extra work quadratic in the input length fails the test ([0.022, 0.814], 36x), so the best-of-five timing still catches superlinear growth.