testsAndMisc/linux_configuration
Krzysztof kuhy Rudnicki 6b828d29aa Extract digital-wellbeing; the directory-depth cap now enforces
The last unit over the cap is now github.com/kuhyx/digital-wellbeing, cloned
at ~/digital-wellbeing, and `--warn` is gone from the directory-depth-cap
hook. `check_directory_depth.sh --all` exits 0 with zero violations, down from
46 at the start of the session. That was the point of the campaign.

History was filtered across all three paths the unit has lived at (63
commits); the current path alone holds 2.

The six suites that test this code lived in linux_configuration/tests/ rather
than beside it, so they were filtered separately (24 commits) and merged in as
a second root. A path filter of the unit alone would have left them here,
testing code that had left the repo -- and their names would still have been
in shell-tests.yml's hardcoded arrays, failing CI on missing files.

linux_configuration/lib/common.sh is vendored into vendor/ rather than trimmed
to the four functions actually used: set_actual_user_vars calls two of the
others, so a trim breaks silently. It is in vendor/ and not lib/ because
test_music_parallelism.sh copies the unit's own lib/ into a scratch worktree
while stubbing the shared lib; in one directory the real common.sh overwrote
the stub, and the suite silently measured the wrong library.

Running the callers caught what shellcheck and grep both missed:
check_and_enable_services.sh died with "DW_REPO: unbound variable" because the
definition sat below its first use. It now runs clean and reports ok for every
extracted-unit check.

Two long-standing live defects fixed as a consequence. The pacman-wrapper
drift manifest embeds ABSOLUTE paths and had named deleted scripts/ paths
since the flatten, so the check reported a permanent false "stale or
tampered"; it now verifies, with unchanged hashes proving the extracted bytes
are identical. And the last two stale live references are gone: 8 -> 0.

The two pre-commit excludes for setup_midnight_shutdown.sh are dropped rather
than moved. lsattr shows nothing in the unit is chattr +i any more, and the
fixer hooks leave the file alone when allowed to run.

Removing 80 shell files also shrank the jscpd denominator enough that the
virtualenv/tqdm clones inside the GENERATED .ci-mirror-venv/ tipped the repo
to 2.09% and blocked this commit, which adds no duplication. That directory is
the same vendored third-party shell the ignore list already excludes as
.venv/, just under another name; jscpd walks the working tree rather than the
index, so being untracked did not spare it. Excluded by name: 1.74%.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
2026-08-23 20:57:51 +02:00
..
.githooks Extract digital-wellbeing; the directory-depth cap now enforces 2026-08-23 20:57:51 +02:00
.github Prettier-normalize two docs the pre-push hook was already failing on 2026-08-23 19:42:18 +02:00
boot_recovery Cap extensionless scripts, and split the one that was hiding 2026-08-23 19:13:40 +02:00
C/atop_agg atop_agg: split atop_agg.c 478 -> 204 + state + emit 2026-08-17 10:49:46 +02:00
diagnostics Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
docs Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
dwm Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
features Extract the hosts blocker into its own repo 2026-08-23 20:30:18 +02:00
feedback-appimage Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
fixes Extract the hosts blocker into its own repo 2026-08-23 20:30:18 +02:00
fresh-install Extract digital-wellbeing; the directory-depth cap now enforces 2026-08-23 20:57:51 +02:00
gaming Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
i3 Flatten i3-configuration and misc/testsAndMisc-bash 2026-08-23 19:02:18 +02:00
i3blocks Flatten i3-configuration and misc/testsAndMisc-bash 2026-08-23 19:02:18 +02:00
installers Extract digital-wellbeing; the directory-depth cap now enforces 2026-08-23 20:57:51 +02:00
lib Repair live self-repair broken by the flatten and extractions 2026-08-23 20:39:59 +02:00
meta Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
misc Flatten i3-configuration and misc/testsAndMisc-bash 2026-08-23 19:02:18 +02:00
periodic_background Extract digital-wellbeing; the directory-depth cap now enforces 2026-08-23 20:57:51 +02:00
tests Extract digital-wellbeing; the directory-depth cap now enforces 2026-08-23 20:57:51 +02:00
utils Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
zsh Split calc-live.zsh: extract the qalc coprocess 2026-08-16 22:12:32 +02:00
.gitignore Dissolve linux_configuration/scripts/ and single_use/ 2026-08-23 18:53:30 +02:00
install_core_system.sh Extract digital-wellbeing; the directory-depth cap now enforces 2026-08-23 20:57:51 +02:00
test_results.log Add 'linux_configuration/' from commit '0762e3d07b90bac9256eb272de10bf9f42878094' 2026-02-06 21:43:26 +01:00