test: harden harness lifecycle recovery
This commit is contained in:
+15
-7
@@ -109,10 +109,11 @@ scripts/test-integration --suite store --case '^TestStore' --run-id store-one-ca
|
||||
scripts/test-env status --run-id my-sample
|
||||
scripts/test-env collect --run-id my-sample
|
||||
scripts/test-env reset --run-id my-sample
|
||||
scripts/test-env reuse --run-id my-sample
|
||||
scripts/test-integration --suite sample --run-id my-sample --resume
|
||||
scripts/test-env reset --run-id my-sample
|
||||
scripts/test-env reuse --run-id my-sample --new-run-id my-sample-retry
|
||||
scripts/test-integration --suite sample --run-id my-sample-retry --resume
|
||||
scripts/test-env reset --run-id my-sample-retry
|
||||
scripts/test-env purge --run-id my-sample --execute --yes
|
||||
scripts/test-env purge --run-id my-sample-retry --execute --yes
|
||||
|
||||
scripts/test-integration --suite store --run-id store-smoke
|
||||
scripts/test-env logs --run-id store-smoke
|
||||
@@ -153,10 +154,17 @@ The Windows artifact is linked with the GUI subsystem (`-H=windowsgui`) so
|
||||
service, launcher, and tray startup do not flash a console. Human-facing modes
|
||||
still attach to a parent console explicitly when one exists.
|
||||
|
||||
Suite output is capped at 1 MiB and stored as `artifacts/suite.log`. A failed
|
||||
run remains inspectable and can be moved back to `ready` with `recover`, then
|
||||
resumed with the same run ID and deterministic shuffle seed. Test-run cleanup
|
||||
never removes the shared Go module or build-cache volumes.
|
||||
Suite output is capped by the checked-in harness policy (10 MiB by default) and
|
||||
stored as `artifacts/suite.log`. A failed run remains inspectable and can be
|
||||
moved back to `ready` with `recover`, then resumed with the same run ID and
|
||||
deterministic shuffle seed only while its source definitions and working tree
|
||||
still match its manifest. `reuse` is intentionally different: after a reset or
|
||||
completed run, it creates a fresh manifest/run ID with the same layer, suite,
|
||||
and case selection, leaving the original evidence unchanged. `reset` refuses a
|
||||
running run or one with recorded owned runtime resources, removes only its
|
||||
ephemeral `runtime`, `pki`, and `scratch` directories, and retains the
|
||||
manifest, journal, reports, and artifacts. Test-run cleanup never removes the
|
||||
shared Go module or build-cache volumes.
|
||||
|
||||
Each run owns only `.test-runs/<run-id>` and resources explicitly recorded in
|
||||
that run's versioned manifest. The journal is append-only and fsynced. `purge`
|
||||
|
||||
Reference in New Issue
Block a user