You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Task sets: a create, rename or delete at the same time can replace or lose a set #818
On main f9f076a11, task sets are written without a lock:
create checks that the name is free, then writes (sets.py:465-497, check 490, write 496). Two creates with the same label both pass the check; the second replaces the first set.
rename writes the new file, then unlinks the old one (sets.py:509-525). A rename racing another rename or a delete can lose a set or leave it under both names.
Callers: the catalogue page (web/catalogue.py:398,428), the job page (web/runs.py:683), nullius standard set create/rename/delete (standard/cli.py:966,1027).
Reproduction
Pause one create after its free-name check.
Create a set with the same label through a second request.
Resume the first.
List the benchmark's sets.
Expected
The second create is refused or gets its own name; no set is replaced or lost.
Acceptance
create, rename and delete of one benchmark's sets run under one lock
Tests: two creates with one label; rename against rename; rename against delete
Activity
fix(standard): lock a benchmark's task sets while one is created, ren…