Skip to content

Studio tests: best of five for the two single-sample nested-header linearity checks - #16426

Merged
danielhanchen merged 1 commit into
mainfrom
web-fetch-linearity-best-of-five
Nov 1, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
web-fetch-linearity-best-of-five

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

tests/test_web_fetch_extraction.py::test_deeply_nested_tags_stay_linear failed on #16393, an FP8 kernel PR that does not touch Studio:

FAILED tests/test_web_fetch_extraction.py::test_deeply_nested_tags_stay_linear - AssertionError: [0.03737169100008941, 0.4800274350000109]

The test times one html_to_markdown call at 1000 and at 4000 nested headers, and fails if the second takes more than 12x the first. Linear work gives about 4x and quadratic about 16x. Both arms were a single call, so one descheduled call on a shared runner reads as 13x growth. On this host, five back-to-back trials gave 3.5x to 4.6x.

test_deeply_nested_headers_do_not_blow_up_quadratically in the same file has the same single-sample shape. test_stray_end_tags_in_a_skipped_menu_stay_linear already takes the best of five runs for exactly this reason.

Change

Both single-sample tests now take the minimum of five calls per size, the same as test_stray_end_tags_in_a_skipped_menu_stay_linear. Thresholds and inputs are unchanged.

Testing

  • The two tests, --count 5: 10 passed.
  • Sabotage: an autouse fixture wraps html_to_markdown with a busy-wait quadratic in the input length. Both tests fail, so best of five still catches real quadratic growth.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T18:42:24.932398Z f9af2b6 Manual request
ℹ️ 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

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: f9af2b6caf

ℹ️ 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".

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".

@danielhanchen
danielhanchen merged commit 5819e6c into main Nov 1, 2026
@danielhanchen
danielhanchen deleted the web-fetch-linearity-best-of-five branch November 1, 2026 18:48
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