Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Crash-safe run publication, recovery and explicit retention.

Deletion targets are derived from a trusted project root. Large trees are atomically moved into durable trash; recursive unlinking is a separate, retryable operation that the CLI can run in a detached child.

Structs§

Archived
What a frontend that still holds the run it archived hands publication, so it need not read the archive back: the analysis of the archived request, and the assertion inputs archived beside it. Each must be what the archive gives; a frontend that cannot say so leaves it out.
CleanupOptions
CleanupResult
ProjectLock
A run’s hold on a project: its share of the store, and a copy of the project that is its alone for as long as it runs.
RunState

Enums§

LifecycleError
RunStateStatus

Functions§

clean_storage
cleanup_storage_locked
finalize_published_run
finish_background_sweep
Wait for the sweep the run started, for as long as patience. True when there is none left running.
interrupt_run_state
keep_failed_evidence
Keep what a run measured when Supercov itself is what failed.
note_kept_evidence
Say where a failed run’s evidence was kept, on the failure itself.
publish_archived_run
publish_run for a frontend that holds what it archived; see Archived.
publish_run
Publish immutable run evidence with its source manifest cache and per-test execution record together.
recover_abandoned_runs
Clears what runs that died left behind, and copies nobody has used for a day.
remove_stored_tree_deferred
sweep_trash
Retryable trash unlinking. Public commands execute this in a child.
sweep_trash_in_background
Empty the trash while the command runs.
update_run_state
write_run_state