Repository navigation
Conversation
…n four files that fit a lane watchdog #1465 Signed-off-by: Nik Cubrilovic <[email protected]>
…sit budget with the clock off; drop an unused import #1465 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
test/integrity-budget-clock-1465
branch
from
November 1, 2026 02:48
6a876e2 to
9b5d4e9
Compare
This was referenced Nov 1, 2026
Merged
Contributor
Author
|
Landed in v0.0.154 as nik |
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.
Closes #1465.
integrity-budget-784.test.tsruns the integrity rules on hostile pages throughRuleRunner. Its subject is work bounds, but the runner's wall-clock rule budget (2 s) was on, so a loaded machine cut the same page that an idle one finished. And the "file exits without a summary" runs were not the tests: the lane'sbun-test-watchdog.shkills abun testolder than 150 s or over 1.2 GB (its log shows kills of this file atage=161sandrss=1310MB/1366MB), and the one file took 40 to 50 s idle with a 1.3 GB peak.run()builds the runner withruleTimeBudgetMs: 0(the budget off), so no case depends on elapsed time. No test has the wall-clock budget as its subject, so none needed an injectable clock; the file header says the subject is work bounds.integrity-budget-fixture.ts(same test names, same assertions, one title reworded from "at the default budget" to "no clock"):-784(12 tests, 14 s idle),-784-nested(the two slowest pages, 21 s),-1424(11),-1424-decoys(the 8 MB page, 5 s). Peak RSS per file on an idle machine: 1.14 GB, 0.88 GB, 1.01 GB, 0.55 GB (was 1.3 GB for the single file).Bounds pinned (review round 1): with the clock off, nothing asserted the scan's own work bounds, so each could be lifted a thousandfold with every test green.
integrity-budget-1465-bounds.test.ts(5 tests, 2 s, 0.75 GB) fails each of those mutations: the ordered and the shared window budget (a page of 600 controls with 40 cue windows each must report 250 to 350 controls unread; the defaults are asserted too),MAX_WINDOWS_PER_CONTROL(a control asking for 200 windows is cut and counted, one asking for 160 is not), andTOTAL_VISITS(3,000 controls of about 200 nodes each are cut short of their nodes and counted).Ceiling with the clock off: the rule clock was also the runaway guard for a rule that never returns. With
ruleTimeBudgetMs: 0these tests have none: an injected infinite loop would hang until the lane watchdog (150 s) or the CI job timeout cuts the process, the same as on main for any test file that runs without the budget. The tests whose subject is the clock itself live elsewhere and keep the budget on.Skill: no change needed.
nik