mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-13 12:23:38 +01:00
Optional helpers for a shared host: trim-target deletes stale test executables from the
persistent cargo target dirs, gate-lock is a FIFO flock for heavy and timing-sensitive gates,
lite-env sources debug-info-off cargo settings. Copies of the host-side scripts with these
differences:
- trim-target: the default scratch dir is `${XDG_CACHE_HOME:-$HOME/.cache}/komorebi-fast-check`
(was a /tmp/claude-1000/... scratchpad path), the same as fast-check;
- gate-lock: GATE_LOCK_DIR defaults to `${XDG_STATE_HOME:-$HOME/.local/state}/komorebi-gate`
(was /home/jado/komomono-work/.gate), in the header and in the code;
- gate-lock: "/proc/$pid/cmdline" is quoted and a shellcheck directive disables SC2012 and
SC2016 (ls of plain queue ticket names, and a bash -c script expanding its own $1);
- lite-env: a `# shellcheck shell=bash` first line.
Not committed: mini (host and credential specific), host-sample and jitter-probe (host
measurement), the .bak files.
Verified: bash -n and shellcheck clean. Not run: gate-lock was tested by its author with a scratch
GATE_LOCK_DIR before this change; the default path change is untested.
11 lines
620 B
Plaintext
11 lines
620 B
Plaintext
# shellcheck shell=bash
|
|
# lite-env: source this (". tools/lite-env") before gate builds that write a lot of disk.
|
|
# Debug info off for the dev/test profiles: same code, same tests, same pass/fail; much smaller
|
|
# test binaries (less disk write, shorter link). Panic backtraces lose line numbers.
|
|
# Use with its OWN target dir (the fingerprint changes, so the first build is cold):
|
|
# CARGO_TARGET_DIR=$FAST_CHECK_SCRATCH/target-lite-<name> . tools/lite-env
|
|
export CARGO_PROFILE_DEV_DEBUG=0
|
|
export CARGO_PROFILE_TEST_DEBUG=0
|
|
export CARGO_INCREMENTAL=${CARGO_INCREMENTAL:-0}
|
|
export CARGO_BUILD_JOBS=${CARGO_BUILD_JOBS:-3}
|