Run harnesses on the ThinkPad too, two at a time at nice 19
A sample of 27 harnesses (the 20 quickest, options, datafix's six shards) passed there; it builds against the same ALSA headers as the desktop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,9 +30,9 @@ Every runner on the machine shares `PARITY_MACHINE_JOBS` slots (default: half th
|
||||
|
||||
### Other machines
|
||||
|
||||
By default harnesses also run on the Mac mini (`tools/parity_hosts.json`; `--hosts` or `PARITY_HOSTS` choose others, `''` none). The runner mirrors the worktree there with rsync (not `.git`, `.local`, `target` or ignored files) into `~/code/horizon-parity/remote/<host><path>`, whose `.local` links to the vanilla data in `~/code/horizon-parity/shared-local`, and starts `tools/parity.py --worker` over ssh. The worker builds the probes (about 80 s the first time) and runs what it is sent under the same tracer, admitting harnesses against its own free memory. One queue, longest first, feeds every machine, remote ones first: the Mac takes up to 14 harnesses, the desktop 3 and only those under 800 MB. Each pass comes back with the content hash of every file it depended on, so it is keyed on exactly what ran, and logs come back to `.local/parity-runner/logs/`; state, sharing and `gate.py` work as before. If a host can't be reached, or drops out, its harnesses run here.
|
||||
By default harnesses also run on the Mac mini and the ThinkPad (`tools/parity_hosts.json`; `--hosts` or `PARITY_HOSTS` choose others, `''` none). The runner mirrors the worktree there with rsync (not `.git`, `.local`, `target` or ignored files) into `~/code/horizon-parity/remote/<host><path>`, whose `.local` links to the vanilla data in `~/code/horizon-parity/shared-local`, and starts `tools/parity.py --worker` over ssh. The worker builds the probes (about 80 s the first time) and runs what it is sent under the same tracer, admitting harnesses against its own free memory. One queue, longest first, feeds every machine, remote ones first: the Mac takes up to 14 harnesses, the desktop 3 and only those under 800 MB. Each pass comes back with the content hash of every file it depended on, so it is keyed on exactly what ran, and logs come back to `.local/parity-runner/logs/`; state, sharing and `gate.py` work as before. If a host can't be reached, or drops out, its harnesses run here.
|
||||
|
||||
Harnesses a host can't run are listed in the file: `local_only` (`save_roundtrip` runs the game on a virtual screen) and each host's `exclude`. On macOS, `options` and `chunk_generation` differ because Rust's float functions (`f64::powf` and the like) use the platform libm, which rounds differently from glibc; every other harness gave the same result on the Mac as on Linux. The ThinkPad is listed (Linux, 2 harnesses at `nice 19`, since it hosts the Claude account pool) but isn't used by default.
|
||||
Harnesses a host can't run are listed in the file: `local_only` (`save_roundtrip` runs the game on a virtual screen) and each host's `exclude`. On macOS, `options` and `chunk_generation` differ because Rust's float functions (`f64::powf` and the like) use the platform libm, which rounds differently from glibc; every other harness gave the same result on the Mac as on Linux. The ThinkPad helps too, gently: Linux, 2 harnesses at `nice 19`, since it hosts the Claude account pool; it finds ALSA through `~/code/horizon-parity/alsa-dev` like the desktop.
|
||||
|
||||
### Shards and Rust scopes
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"default": ["macmini"],
|
||||
"default": [
|
||||
"macmini",
|
||||
"thinkpad"
|
||||
],
|
||||
"hosts": {
|
||||
"macmini": {
|
||||
"ssh": "macmini",
|
||||
@@ -20,8 +23,11 @@
|
||||
"shell": "sh -c",
|
||||
"jobs": 2,
|
||||
"nice": 19,
|
||||
"environment": {"PARITY_BUILD_JOBS": "2"},
|
||||
"note": "hosts the Claude account pool: two harnesses at most, at the lowest priority"
|
||||
"environment": {
|
||||
"PARITY_BUILD_JOBS": "2"
|
||||
},
|
||||
"note": "hosts the Claude account pool: two harnesses at most, at the lowest priority",
|
||||
"setup": "export PKG_CONFIG_PATH=$HOME/code/horizon-parity/alsa-dev/lib/pkgconfig"
|
||||
}
|
||||
},
|
||||
"local_only": {
|
||||
|
||||
Reference in New Issue
Block a user