Skip to content

Tests: KeyCutShort host tests fail under load on a fixed 10 s run wait and a 5 s ready poll #792

Description

@harenome

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

  1. In a container pinned to 8 CPUs, loop python3 app/tests/parallel.py in the background.
  2. Run python3 -m unittest tests.test_execution.KeyCutShort from app/ 25 times.

Expected

The class passes on a loaded machine; it fails only when a key leaks or a run does not end.

Acceptance

Dependencies and related

Activity

  1. added
    bug
    P3
    on Dec 3, 2026
  2. added theissue type on Dec 3, 2026
  3. harenome commented on Dec 3, 2026

    @harenome
    CollaboratorAuthor

    A second cause, beside load: the licence tests use a fixed /dev/shm/nullius-<name> path (for example /dev/shm/nullius-lic-stop in test_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.

    • The licence tests use a name of their own per run, so concurrent runs do not collide.
  4. self-assigned this
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions