Skip to main content

ic_testkit/artifacts/
mod.rs

1//! Host-side artifact discovery, freshness, and Wasm build helpers.
2//!
3//! These functions keep integration-test artifacts in caller-selected target
4//! directories and contain no application-specific package or profile policy.
5
6mod batch;
7mod cache_fs;
8mod digest;
9mod icp;
10mod tool;
11mod transaction;
12mod transaction_batch;
13mod wasm;
14mod wasm_batch;
15mod wasm_cache;
16mod workspace;
17
18#[cfg(test)]
19mod test_support;
20
21pub use cache_fs::{ArtifactCacheMaintenance, ArtifactCachePrunePolicy, ArtifactCachePruneReport};
22pub use digest::InputDigest;
23pub use icp::{
24    WatchedInputSnapshot, icp_artifact_ready_for_build, icp_artifact_ready_with_snapshot,
25};
26pub use tool::resolve_executable;
27pub use transaction::{
28    ArtifactBuildTransaction, ArtifactCacheArtifact, ArtifactCacheError, ArtifactCacheOutcome,
29    ArtifactCachePreparation, ArtifactCacheRecord, ArtifactCacheSpec, ArtifactCacheTimings,
30    ArtifactOutputValidation, prepare_artifact_cache, prune_artifact_cache,
31};
32pub use transaction_batch::{
33    ArtifactCacheBatchContractError, ArtifactCacheBatchEntry, ArtifactCacheBatchFailedEntry,
34    ArtifactCacheBatchFailure, ArtifactCacheBatchFailurePhase, ArtifactCacheBatchFailureTimings,
35    ArtifactCacheBatchMetrics, ArtifactCacheBatchOutcomeEntry, ArtifactCacheBatchReport,
36    LabeledArtifactCacheSpec, build_artifact_caches_batch,
37};
38pub use wasm::{read_wasm, wasm_artifacts_ready, wasm_path};
39pub use wasm_batch::{
40    WasmBuildBatchConfig, WasmBuildBatchFailure, WasmBuildBatchMetrics,
41    WasmBuildBatchProgressEvent, WasmBuildBatchReport, build_wasm_canisters_cached_batch,
42    build_wasm_canisters_cached_batch_with_config,
43    build_wasm_canisters_cached_batch_with_config_and_progress,
44    build_wasm_canisters_cached_batch_with_progress,
45};
46pub use wasm_cache::{
47    CargoBuildInput, ResolvedCargoBuildInputs, SharedIncrementalTargetInspection,
48    SharedIncrementalTargetMaintenance, SharedIncrementalTargetMaintenanceConfig,
49    SharedIncrementalTargetMaintenanceFailureMode, SharedIncrementalTargetMaintenanceOutcome,
50    SharedIncrementalTargetPrunePolicy, WasmBuildCacheMode, WasmBuildError, WasmBuildOutcome,
51    WasmBuildOutputStream, WasmBuildPhase, WasmBuildProgressConfig, WasmBuildProgressEvent,
52    WasmBuildProgressOutcome, WasmBuildProgressPhase, WasmBuildRecord, WasmBuildSpec,
53    WasmBuildTimings, WasmInputResolutionTimings, build_wasm_canisters_cached,
54    build_wasm_canisters_cached_with_progress, inspect_shared_incremental_target,
55    maintain_shared_incremental_target, maintain_shared_incremental_target_at_most_every,
56    prune_wasm_build_cache, resolve_cargo_build_inputs,
57};
58pub use workspace::{test_target_dir, workspace_root_for};