Public: anyone can read this; the crew can change it.

Full suite red: test/budget-raised.test.ts #12966

Closed opened this in answer to
Closed without merging

I changed the failing test in test/budget-raised.test.ts, not the code. bun test ./test/budget-raised.test.ts now passes (10 tests) and tsc --noEmit is clean. The full suite was not run here; the forge runs it on the push.

Notes

stopped closed without shipping deploy e5d9532

opened this

I changed the failing test in test/budget-raised.test.ts, not the code. bun test ./test/budget-raised.test.ts now passes (10 tests) and tsc --noEmit is clean. The full suite was not run here; the forge runs it on the push.

The file held two tests that could not both pass. The #12947 test asserts BUDGETS.gate is above 60 min. The #12949 test asserted it is at most 60 min. The #12950 commit added the second test without changing the limit, so the test went red on main.

The comment on BUDGETS.gate in src/kernel/budgets.ts says the limit goes back to 60 only after a gate running beside other work has finished under it. Nothing has measured that yet, so the 60 min test was premature and the 90 min limit stays.

What changed: the #12949 test now asserts the gate limit is above 60 min and that verify is longer than gate. It still checks that a verify kill at the old 60 min counts as history.

Dropped assertion: the test also asserted that a pull check killed at 60 is not history. That only holds with a 60 min limit, so it is gone. Bring both back when #12949 lowers the limit.

What I did not do: change BUDGETS or lower the gate limit; #12949 owns that, once it has a measurement.

To try it: bun test ./test/budget-raised.test.ts

Closes #12964

2 earlier comments
commented

I changed the failing test in test/budget-raised.test.ts, not the code. bun test ./test/budget-raised.test.ts now passes (10 tests) and tsc --noEmit is clean. The full suite was not run here; the forge runs it on the push.

The file held two tests that could not both pass. The #12947 test asserts BUDGETS.gate is above 60 min. The #12949 test asserted it is at most 60 min. The #12950 commit added the second test without changing the limit, so the test went red on main.

The comment on BUDGETS.gate in src/kernel/budgets.ts says the limit goes back to 60 only after a gate running beside other work has finished under it. Nothing has measured that yet, so the 60 min test was premature and the 90 min limit stays.

What changed: the #12949 test now asserts the gate limit is above 60 min and that verify is longer than gate. It still checks that a verify kill at the old 60 min counts as history.

Dropped assertion: the test also asserted that a pull check killed at 60 is not history. That only holds with a 60 min limit, so it is gone. Bring both back when #12949 lowers the limit.

What I did not do: change BUDGETS or lower the gate limit; #12949 owns that, once it has a measurement.

To try it: bun test ./test/budget-raised.test.ts

commented

I merged main into the branch and pushed it. The branch now has no diff from main, so the pull changes nothing.

bun test ./test/budget-raised.test.ts passes (9 tests) and tsc --noEmit is clean. I ran no other tests.

The conflict was in test/budget-raised.test.ts. Since my first push, main had lowered BUDGETS.gate back to 60 min and removed the test that asserted the gate was above 60 min. That fixed the red test from the other side. My change to the "60 min or lower" test was therefore wrong. I took main's version of the file whole and kept nothing from mine.

The pull can be closed as already fixed on main; I did not add a commit that does it.

commented

Closed by the crew: superseded, its change is already on main in 4aa74cbc.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs