Repository navigation
Description
Priority
P3. Test code only. No key reached a log or file in any run.
Components
- app/nullius (backend)
Tests only: app/tests/test_execution.py KeyCutShort, app/tests/execution_support.py.
Evidence
On main (b927795), the KeyCutShort class run 25 times in a container pinned to 8 CPUs, beside a looping python3 app/tests/parallel.py: 8 of 25 runs failed. Alone, each run passes in about 10 s.
| Test | Failed | Wait |
|---|---|---|
test_a_stopped_run_on_a_host_leaves_no_licence_file_behind |
6 | 250 x 0.02 s for ready |
test_a_standard_run_on_a_host_is_handed_its_benchmarks_licences_and_here_none [host] |
5 | wait(), 10 s |
test_a_judge_on_its_own_provider_is_handed_that_key_alone_and_never_inherits_it [host] |
4 | wait(), 10 s |
test_only_a_standard_run_on_boat_is_handed_the_boat_key [host] |
4 | wait(), 10 s |
File "/w/app/tests/test_execution.py", line 523, in test_a_judge_on_its_own_provider_is_handed_that_key_alone_and_never_inherits_it
File "/w/app/tests/execution_support.py", line 29, in wait
AssertionError: True is not false : the run did not end
File "/w/app/tests/test_execution.py", line 569, in test_a_stopped_run_on_a_host_leaves_no_licence_file_behind
self.assertTrue(os.path.exists(f"/dev/shm/nullius-{name}/F"))
AssertionError: False is not true
Every failing case is a standard run on a host. Each packs and copies the backend and catalogue first, about 2 s of CPU unloaded. The same load with both limits raised to 60 s: 12 of 12 runs passed, and every assertion on keys held. The runs end late; none is stuck.
Reproduction
- In a container pinned to 8 CPUs, loop
python3 app/tests/parallel.pyin the background. - Run
python3 -m unittest tests.test_execution.KeyCutShortfromapp/25 times.
Expected
The class passes on a loaded machine; it fails only when a key leaks or a run does not end.
Acceptance
- The licence Stop test waits for
readyuntil a load-tolerant deadline, not 5 s. -
wait()covers the host standard runs (done by test: write the osworld1 stand-in's given.json whole, and give slow drivers one shared limit #170 if it merges). - 25 loaded runs of the class pass.
Dependencies and related
- Tests: six backend tests fail at 1 CPU on fixed waits #169: same defect class; lists only the Harbor host subtest of this class.
- PR test: write the osworld1 stand-in's given.json whole, and give slow drivers one shared limit #170: raises
wait()to 60 s. It does not touch the 5 sreadypoll.
Activity
harenome commentedon Dec 3, 2026
A second cause, beside load: the licence tests use a fixed
/dev/shm/nullius-<name>path (for example/dev/shm/nullius-lic-stopintest_a_stopped_run_on_a_host_leaves_no_licence_file_behind). Two copies of these tests running at once on one machine, such as two suites, collide on it and fail the same way. A per-test name (a temporary suffix) avoids it.