Commit Graph
2 Commits
Author SHA1 Message Date
Kevin Veen-BirkenbachandClaude Opus 5.5 4cb00eec18 chore(test): fold the container scripts to clear the quality findings
quality clean.prefix-groups: env-nix.sh and env-virtual.sh move to scripts/test/container/env/nix.sh and env/virtual.sh; their only callers, scripts/test/test-env-nix.sh and test-env-virtual.sh, are updated. clean.clones: the shared git safe.directory block of e2e.sh and env-nix.sh is one script, scripts/test/container/safe-directory.sh, called at the same spot. clean.comment: parameter lines use the form # Param: NAME ($n) - text. coding.shell-lint SC1091: quality runs shellcheck without -x, so the source directives are shellcheck source=/dev/null like the sibling scripts; the sourcing logic is unchanged.

| 🌿 Branch | 📊 Diff stat | 🎯 Fix | 💥 Break | 💸 Tokens | ⏱️ Velocity | 🛡️ Security | 🏆 Score | Gate |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| chore/test-scripts-no-inline | 7 files +17/-17 | 92 % | 3 % | – | – | 100 % | 89 | ✅ 90/5, tokens and velocity <= 100, security 100 % |

Evidence: quality check --staged 0 findings, shellcheck --norc clean on all 7 scripts, MEDUSA 100 %, critical 0. The container jobs of PR CI are the proof. Hub review 42b3a76554491026.

Refs https://github.com/kevinveenbirkenbach/package-manager/pull/20

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:57:43 +00:00
Kevin Veen-BirkenbachandClaude Opus 5.5 9a9ac39ad4 chore(test): run the container test bodies from files instead of inline bash
No code in code for the container tests (operator denial d8b0c6c8; operator choice 13bec2bf: swarm funnel; fits Quality req 018 clean.embedded-code). The five host scripts no longer embed an in-container script as bash -lc; each runs a file with bash -l: test-unit.sh and test-integration.sh call scripts/test/container/unittest.sh with tests/unit or tests/integration, test-e2e.sh calls container/e2e.sh, test-env-virtual.sh calls container/env-virtual.sh, test-env-nix.sh calls container/env-nix.sh with IMAGE and PKGMGR_DISTRO as arguments. Commands, order, strict-mode lines, env vars, volumes and workdir are unchanged.

| 🌿 Branch | 📊 Diff stat | 🎯 Fix | 💥 Break | 💸 Tokens | ⏱️ Velocity | 🛡️ Security | 🏆 Score | Gate |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| chore/test-scripts-no-inline | 9 files +116/-127 | 90 % | 4 % | – | – | 100 % | 86 | ✅ 90/5, tokens and velocity <= 100, security 100 % |

Evidence: shellcheck -x clean on all 9 files, no bash -lc block left under scripts/, MEDUSA 100 % critical 0 (2 SC1091 scanner artefacts accepted). Break 4 %: unproven until PR CI runs the containers. Operator review a493a79a (re-card of f877c5dd).
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 19:44:34 +00:00