Repository navigation
TEST: Bound path traversal scaling by scan CPU time - #4855
Open
Richard Lundeen (richlundeen) wants to merge 1 commit into
Open
Richard Lundeen (richlundeen) wants to merge 1 commit into
Richard Lundeen (richlundeen) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the changes aimed at reducing runner-related test failures.
No open issues 🎉
What changed in this PR
Reduces runner-related failures in the path-traversal scaling test while preserving its 10-second performance budget.
Changes:
- Measures CPU time after warming up the scorer.
- Uses the shared watchdog separately to catch hangs.
- Preserves all four inputs and result assertions.
| File | Description |
|---|---|
| tests/unit/score/regex/test_path_traversal_output_scorer.py | Adds scorer warm-up, CPU timing, and a separate hang watchdog. |
Review effort: Balanced
This branch has not been deployed
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.
Description
The path-traversal scaling test's 10-second wall-clock timeout expired during SQLite fixture setup in macOS job 143918368921 of run 47008045719, rather than during regex scanning. Measure the long-input scan's CPU time instead, keeping the 10-second performance budget and all four existing inputs and result assertions.
TEST_WATCHDOG_SECONDShang backstop separately from the unchanged CPU budget.