5 Commits
Author SHA1 Message Date
Thomas MartinandClaude Sonnet 5.5 60ec02e795 engine_check: Git's bash for the bench lock, refuse a busy bench, kill a build that outlives its timeout
Under MSYS2's bash the bench lock's waiter never takes a free slot (it refreshes its queue entry for ever, at the
head, and blocks every port); Git for Windows' bash, which the sessions use, takes it at once. The tool now runs the
ports' scripts with Git's bash, refuses to start while the bench is held or queued (--force overrides), and kills
the build and everything it started after --timeout minutes (90).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-27 09:24:42 +01:00
Thomas MartinandClaude Sonnet 5.5 b788b7c06a engine_check: take the bench lock with the port's own lock script
A newer engine's lock script may not agree with the pinned one the other sessions use, and the two
waited for each other. The build now runs under the port's own bench_run.sh.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-27 02:29:36 +01:00
Thomas MartinandClaude Sonnet 5.5 b09f63640e portkit: new_port.py, state_check.py and engine_check.py for the BozoEngine ports
- new_port.py starts a port with the team's layout (scripts, .gitignore, LICENSE, README with banner,
  CMake skeleton, window resources, BozoEngine submodule, icon and banner from make_logo.py), the serial,
  executable and SHA-1 read from the disc.
- state_check.py loads each port's registered save states headless and compares the RAM after 120 frames with
  baselines; a vault keeps copies of the states.
- engine_check.py lists each port's committed engine pin against master, and builds a port on another engine
  commit in a scratch worktree, then runs the same state checks.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-27 01:34:15 +01:00
Thomas MartinandClaude Opus 5 b506475a99 .gitattributes, same rule as the ports: the bash scripts and the Python keep LF on a Windows checkout (core.autocrlf would give bench-status CRLF and bash would not run it), while the .cmd and .vbs launchers Windows itself starts keep CRLF
Co-Authored-By: Claude Opus 5 <[email protected]>
2026-11-01 23:38:52 +01:00
Thomas MartinandClaude Opus 5 2346235d6d The bench-lock tools for this box's PS2Recomp ports: bench_status.py reads the two slots, the waiting queue, the priority requests and the ports' own processes, and prints who holds the bench, until when and why (--short, --json, --watch, --procs-all); bench_gui.pyw shows the same state as a small always-on-top window, the slots with their why, the file of waiters with the open requests to pass, and the runners, a double-click opening a project's folder; the launchers (bench-gui.vbs without a console flash, bench-gui.cmd, bench-status.cmd, bench-watch.cmd, bench-status for bash) and a README of what each field means
Read-only throughout: nothing here takes, releases or cleans a slot, a queue entry or a
request, so it cannot disturb a measurement. The staleness of a slot is decided the way
PS2Recomp/tools/bench_lock.sh decides it (HHMM compare, the midnight window), so the
verdict matches the tool the ports actually run, and the port names are mapped to the
checkouts by the PROJECTS table at the top of bench_status.py. The process scan goes
through one PowerShell call with CREATE_NO_WINDOW: pythonw has no console, so without it
the window popped one every 15 s.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-11-01 23:38:27 +01:00