mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-22 19:52:26 +01:00
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Finish the queue left uncommitted on 2026-11-17: callers that find a scope taken get a ticket and are granted in arrival order, dead sessions are reaped at once. The CLI keeps exit 3 for a held scope. fix_waifu2x.sh patched the CUDA waifu2x build, now uninstalled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWV2U9cEtTMTf7iQWin
34 lines
1.9 KiB
JSON
34 lines
1.9 KiB
JSON
{
|
|
"intent": "Finish the phone_lease FIFO queue left uncommitted on 2026-11-17 so the repo's test gate collects again, and drop fix_waifu2x.sh, dead since waifu2x-converter-cpp-cuda-git was removed.",
|
|
"scope": [
|
|
"python_pkg/phone_lease: lease.py, ops.py, owner.py, __init__.py, _model.py, _queue.py and tests",
|
|
"linux_configuration/fixes/fix_waifu2x.sh deleted",
|
|
"Non-goal: the CLI exit codes and the ~/.claude phone scripts stay as they are"
|
|
],
|
|
"changes": [
|
|
"lease.py loads and saves a Book (leases, queue, next ticket number, whole-phone start) under flock and delegates grant/queue rules to the pure _queue core; acquire raises PhoneQueuedError (a PhoneBusyError) with the caller's position",
|
|
"ops.release drops the caller's ticket as well as its lease; ops.queue_of lists the line; owner.owner_alive decides which owners are dead so tidy() reaps them",
|
|
"test_fifo's clock fixture also drives ops.time, since release and status_all read the wall clock"
|
|
],
|
|
"verification": [
|
|
{
|
|
"command": ".venv/bin/python -m pytest -q --cov=python_pkg/phone_lease --cov-branch python_pkg/phone_lease",
|
|
"result": "pass",
|
|
"evidence": "91 passed; every phone_lease module at 100% branch coverage"
|
|
},
|
|
{
|
|
"command": "PHONE_LEASE_DIR=<tmp> python -m python_pkg.phone_lease acquire PIXEL --package a --wait 0 (owners A, B, C, then A release, B again)",
|
|
"result": "pass",
|
|
"evidence": "A rc=0; B rc=3 'you are #1 in line (ticket 1)'; C on pkg:c rc=0; B after release rc=0; queue empty"
|
|
}
|
|
],
|
|
"risks": [
|
|
"WHOLE_PHONE_MAX_TTL drops from 300 s to 30 s and DEFAULT_WAIT from 60 s to 50 s (the WIP's design for the 60 s tool cap); a whole-phone job longer than 30 s now loses its hold",
|
|
"Old lease files without a queue read as an empty queue"
|
|
],
|
|
"rollback": [
|
|
"git revert this commit",
|
|
"Rerun python_pkg/phone_lease tests and one phone_deploy.sh claim"
|
|
]
|
|
}
|