mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-23 23:26:26 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (push) Waiting to run
Python tests / test (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
The "flags nothing on a quiet machine" case read the real /proc/loadavg and went red whenever a game was running on the host (22/16 during a BeamNG session), and the "flags a load at/above thread count" case had to SKIP whenever the host was idle. Same override pattern as JOURNALD_CONF_DIR: the harness writes a fixture, both cases now assert deterministically, and a missing file degrades to 0 as before. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SS8M5wk88nJTXxDWz61KKk
30 lines
1.5 KiB
JSON
30 lines
1.5 KiB
JSON
{
|
|
"intent": "Make the arch_perf_probes lib tests independent of the host's real load average so the pre-push ci-mirror gate is not red whenever a game is running.",
|
|
"scope": [
|
|
"linux_configuration/fixes/lib/arch_perf_probes.sh (LOADAVG_FILE override, default /proc/loadavg)",
|
|
"linux_configuration/fixes/lib/tests/arch_perf_harness.sh (fixture written by arch_reset)",
|
|
"linux_configuration/fixes/lib/tests/test_arch_perf_probes.sh (deterministic load cases)"
|
|
],
|
|
"changes": [
|
|
"collect_basics reads the 1-minute load from ${LOADAVG_FILE:-/proc/loadavg}; behaviour on the host is unchanged",
|
|
"The harness exports LOADAVG_FILE into TEST_TMPDIR and arch_reset writes a quiet fixture (0.10)",
|
|
"The load test now asserts the (16/16) finding from a 16.50 fixture instead of SKIPping when the host is idle; a missing file case asserts no finding"
|
|
],
|
|
"verification": [
|
|
{
|
|
"command": "./linux_configuration/fixes/lib/tests/test_arch_perf_probes.sh",
|
|
"result": "pass",
|
|
"evidence": "arch_perf_probes (basics/governor): 17 passed, 0 failed (was 16 with one SKIP, and 1 failed at host load 22/16)"
|
|
},
|
|
{
|
|
"command": "./linux_configuration/fixes/lib/tests/run_all.sh (host load ~19/16, BeamNG running)",
|
|
"result": "pass",
|
|
"evidence": "All fixes lib test files passed."
|
|
}
|
|
],
|
|
"risks": ["None on the host: the default path is the real /proc/loadavg"],
|
|
"rollback": [
|
|
"git revert the commit; the tests return to reading the real load and go red under host load"
|
|
]
|
|
}
|