Compare commits

..

No commits in common. "105d86977627cd16a17e24b298ddfefc718c95e6" and "f65d247c23f042551b493801858ca3832d7aaf1d" have entirely different histories.

3 changed files with 12 additions and 53 deletions

View File

@ -48,7 +48,7 @@ hardest first.
## START HERE — re-measure the allowlist
98 libs are allowlisted on numbers produced by a broken instrument. Sweep
103 libs are allowlisted on numbers produced by a broken instrument. Sweep
them with the fixed one before writing tests. The invocation:
```bash
@ -103,20 +103,12 @@ All through `run_all.sh` on the fixed instrument. `fixes/lib` needs no
| `clean_audio_filters.sh` | 85/93 = 91.40% | uncovered incl. 52-58 |
| `transcribe_deps.sh` | 48/52 = 92.31% | uncovered: 19, 52, 53, 55 |
**Five were CLEARED this session** (`83de41f4`): the pacman_hook_stall libs
`capture`, `load`, `summary`, `usage` and `watch`. Each was measured twice,
the second time gating at `--min 100`, then confirmed through the real
`check_shell_coverage.sh` with no exemption — all exit 0. **Allowlist:
103 -> 98.**
`rpi_nc_ca.sh` and `dot_resolver_install.sh` are also at 100.00% and measured
3x / 2x, but they live in `features/lib`, where 39 other libs are still
allowlisted. Removing them is safe by the same standard whenever you want.
The bar to reuse: **two matching runs, the second at `--min 100`, then the
real gate.** `fixes/lib`'s suites drive `watch_forever` timing loops, and a
timing-dependent suite can vary its line set run to run (`dwm_config.sh` was
seen to). A flaky 100% becomes a red CI job whose cause is invisible.
**The seven at 100.00% are allowlist-removal candidates.** They were NOT
removed this session: `fixes/lib`'s suites drive `watch_forever` timing loops,
and a timing-dependent suite can vary its line set run to run (`dwm_config.sh`
was seen to). Reproduce each at `--min 100` twice before editing
`meta/shell-coverage-allowlist.txt`. A flaky 100% becomes a red CI job whose
cause is invisible.
Allowlist entries are **static per-file lines**, verified: adding
`fixes/lib/tests/run_all.sh` did NOT start failing the 16 untested libs in

View File

@ -1,38 +0,0 @@
{
"intent": "Take the five pacman_hook_stall libs off the shell-coverage allowlist, now that the fixed instrument measures each at 100.00% twice, taking the allowlist from 103 entries to 98.",
"scope": [
"meta/shell-coverage-allowlist.txt - five entries removed",
"Non-goal: pacman_hook_stall_setup.sh, which measures 26/27 = 96.30% and stays allowlisted",
"Non-goal: the 16 untested libs in fixes/lib, which keep their explicit entries"
],
"changes": [
"Removed pacman_hook_stall_capture.sh, _load.sh, _summary.sh, _usage.sh and _watch.sh from meta/shell-coverage-allowlist.txt.",
"Each was measured twice through fixes/lib/tests/run_all.sh, the subject is_covered() builds, with the second run gating at --min 100 so a shortfall would have been a non-zero exit rather than a number to read."
],
"verification": [
{
"command": "shell_coverage_jail.sh --subject fixes/lib/tests/run_all.sh --measure <lib> --min 100 --fail-on-case-error (run 1, reported numbers)",
"result": "pass",
"evidence": "capture 59/59, load 25/25, summary 18/18, watch 24/24, usage 1/1 -- all 100.00%."
},
{
"command": "the same five at --min 100, second independent run on a clean tree",
"result": "pass",
"evidence": "All five PASS with identical numbers: 59/59, 25/25, 18/18, 24/24, 1/1. Two matching runs was the bar set because fixes/lib's suites drive watch_forever timing loops and a timing-dependent suite could vary its line set; dwm_config.sh was seen to vary. These did not."
},
{
"command": "wc -l meta/shell-coverage-allowlist.txt before and after",
"result": "pass",
"evidence": "116 -> 111 file lines; 103 -> 98 actual allowlist entries."
}
],
"risks": [
"usage.sh's denominator is 1, because the lib is a single usage() whose body is one `cat <<EOF` heredoc plus `exit 0` and heredoc content is data rather than statements. The 100.00% is honest but covers one line; the tests assert on the rendered text, so the behaviour is genuinely exercised.",
"summary.sh has one off-set line (36) -- a line the trace saw run that kcov never listed. That cannot inflate the number (an off-set line is by construction an executed line), but it means the lib is measured over a subset of its statements.",
"These libs are only enforced once check_shell_coverage.sh is wired into a hook, which still waits for the allowlist to reach zero."
],
"rollback": [
"git revert this commit to restore the five entries; nothing else depends on their absence.",
"After rollback, confirm check_shell_coverage.sh on any of the five exits 0 again by exemption rather than by coverage."
]
}

View File

@ -86,7 +86,12 @@ linux_configuration/scripts/single_use/fixes/lib/bt_report.sh
linux_configuration/scripts/single_use/fixes/lib/hosts_guard_migrate.sh
linux_configuration/scripts/single_use/fixes/lib/hosts_guard_rollback.sh
linux_configuration/scripts/single_use/fixes/lib/nvidia_config.sh
linux_configuration/scripts/single_use/fixes/lib/pacman_hook_stall_capture.sh
linux_configuration/scripts/single_use/fixes/lib/pacman_hook_stall_load.sh
linux_configuration/scripts/single_use/fixes/lib/pacman_hook_stall_setup.sh
linux_configuration/scripts/single_use/fixes/lib/pacman_hook_stall_summary.sh
linux_configuration/scripts/single_use/fixes/lib/pacman_hook_stall_usage.sh
linux_configuration/scripts/single_use/fixes/lib/pacman_hook_stall_watch.sh
linux_configuration/scripts/single_use/fixes/lib/thorium_repairs.sh
linux_configuration/scripts/single_use/fixes/lib/ubuntu_perf_fixes.sh
linux_configuration/scripts/single_use/fixes/lib/ubuntu_perf_more.sh