Workspace Test SuiteΒΆ
This directory contains the modular workspace test suite for Infinito.Nexus.
It validates the full local development flow from a clean state.
In CI it runs exactly like that flow, except that it pulls images through the GHCR mirror (INFINITO_GHCR_MIRROR=true, see mirror.md).
The entry point is 00_orchestrator.sh. It runs one or more tracks β subdirectories whose numbered scripts execute in order.
TracksΒΆ
base prepares the workspace and is a prerequisite for the other two. compose
and swarm are independent of each other, which is what lets CI run them as
separate jobs with a budget each.
Track |
File |
Purpose |
|---|---|---|
base |
Installs package prerequisites and repository dependencies |
|
base |
Shows disk usage and purges cached state |
|
base |
Builds the local Docker image |
|
base |
Bootstraps the development environment and starts the stack |
|
base |
Validates pre-commit hook enforcement and |
|
base |
Runs the full validation suite |
|
base |
Smoke-tests the interactive console REPL |
|
compose |
Compose deploy on minimal hardware with service exclusion |
|
compose |
Compose deploy of the full application set on performance hardware |
|
compose |
Compose redeploy reusing existing inventory and packages |
|
compose |
Shuts down the stack and reverses environment changes |
|
swarm |
Releases the development stack so the swarm cluster runs alone |
|
swarm |
Swarm deploy of the MariaDB database role (svc-db-mariadb) |
|
swarm |
Compose+swarm roundtrip of the PostgreSQL database role (svc-db-postgres) |
|
swarm |
Shuts down the stack and reverses environment changes |
Shared |
Purpose |
|---|---|
Shared bootstrap, constants, and generic helpers (HTTP assertion, inventory inspection) |
|
Cache-stack assertions and probes (registry-cache, package-cache, DiD inner-build) |
|
Stack shutdown and environment reversal, shared by both closing steps |
UsageΒΆ
Run every track via the entry point:
bash scripts/tests/workspace/00_orchestrator.sh
Run selected tracks, in the order given, through INFINITO_WORKSPACE_TRACKS:
INFINITO_WORKSPACE_TRACKS="base swarm" bash scripts/tests/workspace/00_orchestrator.sh
An unknown track name aborts before anything else runs.
For documentation on the overall development workflow, see the Deploy Guide.