mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-13 06:06:38 +00:00
probe_did_inner_build() in scripts/tests/environment/utils/cache.sh hardcoded the compose network as `infinito-nexus_default`. Compose derives the network name from the project name, which defaults to the host CWD basename — `infinito-nexus` locally, `infinito-nexus-core` in the CI fork, something else again in Act runners and worktrees. CI therefore failed the test-environment matrix on every distro with `network infinito-nexus_default not found` even though the cache stack itself was healthy. Look up the network the running `infinito-package-cache-frontend` container is actually attached to via `docker inspect` and use that. Fail loudly if discovery returns empty rather than silently skipping the probe. Verified via `make act-workflow ACT_WORKFLOW=.github/workflows/test-environment.yml ACT_JOB=test-environment ACT_MATRIX='dev_runtime_image:debian:bookworm'` — Job succeeded, probe step reports `[OK] DiD inner-build flowed through cache frontend`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Environment Test Suite
This directory contains the modular environment test suite for Infinito.Nexus. It validates the full local development flow from a clean state.
The entry point is 00_orchestrator.sh.
Structure
| File | Purpose |
|---|---|
| 00_orchestrator.sh | Runs all numbered steps in order |
| 01_install.sh | Installs package prerequisites and repository dependencies |
| 02_system.sh | Shows disk usage and purges cached state |
| 03_build.sh | Builds the local Docker image |
| 04_bootstrap.sh | Bootstraps the development environment and starts the stack |
| 05_commit.sh | Validates pre-commit hook enforcement and --no-verify bypass |
| 06_test.sh | Runs the full validation suite |
| 07_deploy_minimal.sh | Deploys on minimal hardware with service exclusion |
| 08_deploy_performance.sh | Deploys the full application set on performance hardware |
| 09_deploy_reuse.sh | Redeploys reusing existing inventory and packages |
| 10_teardown.sh | Shuts down the stack and reverses environment changes |
| utils/common.sh | Shared bootstrap, constants, and generic helpers (HTTP assertion, inventory inspection) |
| utils/cache.sh | Cache-stack assertions and probes (registry-cache, package-cache, DiD inner-build) |
Usage
Run the full suite via the entry point:
bash scripts/tests/environment/00_orchestrator.sh
For documentation on the overall development workflow, see the Deploy Guide.