mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-21 21:22:19 +01:00
i3 config was filed under periodic_background, which it never was. It is now linux_configuration/i3/ (config + installer) and linux_configuration/i3blocks/ (the status scripts), both at depth 2. misc/testsAndMisc-bash/ was a directory named after the repo it already lived in, so its contents moved up to misc/. Its stray .gitignore came along, keeping the media rules working from the new location; its .vscode/tasks.json did not, because it invoked Bash/transcribe.sh, a path this repo dropped long ago. Most of this commit is the references the previous flatten missed. Its regex skipped anything with a variable prefix, which left 16 files -- including check_and_enable_services.sh and install_core_system.sh, the orchestrators -- still naming $CONFIG_DIR/scripts/periodic_background/... It had also rewritten three i3 paths into scripts/i3blocks/, a directory that has never existed; the i3blocks suites caught that by failing. 13 more symlinks broke on the i3 move. Repointed, and cpu_monitor/volume/ disk were run again to confirm the bar still reports. Depth 139 -> 104. Roughly 47 of the remainder sit in digital_wellbeing and hosts, still deferred. The rest encode real structure -- a C project, Python package directories, artgate's routes/styles, systemd unit dirs -- so flattening them further would destroy information rather than taxonomy. Verified: 1798 tests at 100%, both i3blocks suites pass, the shell coverage gate is clean, and the relocated media rules still ignore what they should while test_fw.srt stays tracked. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
57 lines
3.4 KiB
JSON
57 lines
3.4 KiB
JSON
{
|
|
"intent": "Continue the depth-2 flattening: lift i3 config out of periodic_background, drop the redundant misc/testsAndMisc-bash nesting, and fix the path references the previous flattening commit missed.",
|
|
"scope": [
|
|
"periodic_background/i3-configuration/ -> linux_configuration/i3/ + linux_configuration/i3blocks/",
|
|
"misc/testsAndMisc-bash/* -> misc/",
|
|
"16 path references and 13 more $HOME symlinks repointed",
|
|
"Non-goal: digital_wellbeing and hosts, still deferred"
|
|
],
|
|
"changes": [
|
|
"i3-configuration was never periodic background work; it is desktop config. Split into linux_configuration/i3/ (the i3 config and installer) and linux_configuration/i3blocks/ (the status scripts), both at depth 2.",
|
|
"misc/testsAndMisc-bash/ was a directory named after the repo it already lives in. Its contents moved up to misc/, and its stray .gitignore moved with them so the media-ignore rules keep applying.",
|
|
"Deleted misc/testsAndMisc-bash/.vscode/tasks.json: it invoked Bash/transcribe.sh, a path removed from this repo long ago.",
|
|
"Fixed 16 files whose references carried a $VAR/scripts/ prefix that the previous commit's regex skipped -- including check_and_enable_services.sh and install_core_system.sh, the orchestrators that name digital_wellbeing and hosts paths.",
|
|
"Fixed conftest.py's tools path and the three i3 test/installer paths that the earlier bulk rewrite mangled into scripts/i3blocks/."
|
|
],
|
|
"verification": [
|
|
{
|
|
"command": "check_directory_depth.sh --all",
|
|
"result": "pass (improvement)",
|
|
"evidence": "139 -> 104 violations. About 47 of the remainder are inside the deferred digital_wellbeing and hosts."
|
|
},
|
|
{
|
|
"command": "bash linux_configuration/tests/test_i3blocks_{persist_common,efficiency}.sh",
|
|
"result": "fail then pass",
|
|
"evidence": "First run: 'scripts/i3blocks/persist_common.sh: No such file or directory' - the earlier rewrite had produced a path that never existed. Both pass after the fix."
|
|
},
|
|
{
|
|
"command": "pytest_changed_packages.py",
|
|
"result": "pass",
|
|
"evidence": "1798 passed, TOTAL coverage 100.00%."
|
|
},
|
|
{
|
|
"command": "find ~ -xtype l; then run the i3blocks scripts",
|
|
"result": "pass",
|
|
"evidence": "13 symlinks broke on the i3 move and were repointed; zero broken after. cpu_monitor, volume and disk emit real output ('52°C, 1.18', '100%', '1.5T/3.6T')."
|
|
},
|
|
{
|
|
"command": "git check-ignore on the relocated media rules",
|
|
"result": "pass",
|
|
"evidence": "misc/x.mp4 and misc/tools/y.wav are still ignored from misc/.gitignore's new location, and the tracked test_fw.srt is still tracked."
|
|
},
|
|
{
|
|
"command": "check_shell_coverage.sh --all",
|
|
"result": "pass",
|
|
"evidence": "Exit 0."
|
|
}
|
|
],
|
|
"risks": [
|
|
"check_and_enable_services.sh and install_core_system.sh now name the NEW digital_wellbeing and hosts paths. Those two subsystems have not moved yet, so the references are correct today and will need updating again when they do.",
|
|
"The remaining ~57 non-deferred violations are structurally meaningful - a C project, Python package dirs, a Flutter-style routes/styles split, systemd unit dirs - rather than taxonomy, so flattening them further would lose information."
|
|
],
|
|
"rollback": [
|
|
"git revert, then repoint the 13 i3blocks symlinks back with the same substitution reversed.",
|
|
"Re-run the two i3 suites and pytest_changed_packages.py."
|
|
]
|
|
}
|