Repository navigation
test(memory): the adversarial-screen budget clears the slowest CI runner (#4113) - #4116
Merged
Merged
Conversation
…ner (#4113) test_the_screen_is_bounded_on_adversarial_input[0] asserted 2.0s of wall clock. Its cost is linear, and across 36 unit runs on 2026-10-30 it fell into discrete clusters by runner (about 0.9s, 1.4s, 1.75s and 2.05s) regardless of the code under test, so the slowest cluster failed it and held dev-ci red. 10s stays far below what a quadratic screen costs on the 144k NFKC-expanded input, and an exponential regex still fails on any input. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 30, 2026
Merged
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.
Refs #4113. That issue closes itself on the next green
dev-ci, so this PR carries no closing keyword.Why
devis redbackend-unit-testhas failed on every completeddevrun sinced2e30d8de, always on one test:test_the_screen_is_bounded_on_adversarial_input[0], 2.04–2.16s against a 2.0s limit.No commit caused it, so there is nothing to revert:
user_memory_guard.pyand its local dependency did not change across the boundary.ﷺexpands to 18 characters under NFKC, so the 8k input becomes 144k.feature/3618at 12:47), and runs with them hit 0.893s and 1.077s (fix/4058andfix/4055at 13:56).Five
devpushes in a row landing on the slow cluster made this look like a regression. The same-hour re-run of the last green SHA passed at 1.58s and the tip failed at 2.055s, which fits runner variation but does not prove it alone; the cluster data above is the evidence.The change
One assertion goes from 2.0s to 10.0s. That is about 5× the slowest runner's cost.
Verification
pytest unit/test_ent419_memory_poisoning_gates.py -k screen_is_bounded -p no:randomly: 16 passed locally. The real proof is the nextdev-cirun on a slow runner.🤖 Generated with Claude Code