diff --git a/.github/scripts/id-pr-checks.txt b/.github/scripts/id-pr-checks.txt index 171226e497..7b64f89fe8 100644 --- a/.github/scripts/id-pr-checks.txt +++ b/.github/scripts/id-pr-checks.txt @@ -33,6 +33,7 @@ web-lint cargo-check prod-lines-check test-unit +test-crate-integration test-native-shell test-rust-examples test-shard-0 diff --git a/.github/test-suite-registry.json b/.github/test-suite-registry.json index 596cdf5b66..a5e9c75427 100644 --- a/.github/test-suite-registry.json +++ b/.github/test-suite-registry.json @@ -71,7 +71,7 @@ 5935, 5942, 5946, 5952, 5992, 5993, 6065, 6082, 6084, 6085, 6091, 6092, 6093, 6099, 5582, 5937, 5945, 5951, 6034, 6081, 6090, 6094, 6095, 6178, 6179 ], - "uncovered_count": 45, + "uncovered_count": 41, "uncovered_count_definition": "Number of suite rows whose status is uncovered or uncovered-in-fact; mapped rows do not assert the five-rule contract is fully proven.", "suites": [ { @@ -250,10 +250,12 @@ "paths": [ "pkgs/id/hosted-worker/test/routing.test.ts", "pkgs/id/hosted-worker/test/blobs.test.ts", + "pkgs/id/hosted-worker/test/canonical-cbor.test.ts", "pkgs/id/hosted-worker/test/usage.test.ts", + "pkgs/id/hosted-worker/test/currency.test.ts", "pkgs/id/hosted-worker/test/front-door.test.ts" ], - "invocation": "cd pkgs/id/hosted-worker && npm test (node --test test/routing.test.ts)", + "invocation": "cd pkgs/id/hosted-worker && npm test (node --experimental-transform-types --test test/routing.test.ts test/blobs.test.ts test/canonical-cbor.test.ts test/usage.test.ts test/currency.test.ts test/front-door.test.ts)", "venue": { "workflow": ".github/workflows/id-hosted-worker-tests.yml", "job_step": "hosted-worker-tests / Run the hosted-worker routing suite", @@ -262,7 +264,7 @@ }, "status": "mapped", "related_issues": [6095], - "notes": "Paths trued up 2026-11-14 (#6188 ratchet): the npm test script names routing, blobs, and usage test files; all three run under this row's invocation." + "notes": "The registry paths match every file in npm test, including canonical-cbor and currency; path coverage trued up 2026-11-17 while restoring the #6188 ratchet (#10329)." }, { "id": "id.hosted-worker.smoke", @@ -279,12 +281,16 @@ }, { "id": "id.native-shell.transcript", - "paths": ["pkgs/id/crates/id-native-shell/tests/transcript.rs"], - "invocation": "cargo test -p id-native-shell (manual invocation; no workflow invocation found)", - "venue": null, - "status": "uncovered", - "phase2_issue": 5582, - "reason": "Non-default workspace member; no CI, flake, check-all, or just recipe runs the transcript suite." + "paths": ["pkgs/id/crates/id-native-shell/tests/*.rs"], + "invocation": "nix flake check ./pkgs/id (check test-native-shell runs cargo nextest -p id-native-shell)", + "venue": { + "workflow": ".github/workflows/id-check.yml", + "job_step": "check_each / test-native-shell", + "state": "active", + "dispatchable": true + }, + "status": "mapped", + "notes": "The native-shell check runs every integration target in this non-default workspace member; suite paths trued up 2026-11-17 while repairing the registry ratchet (#10329)." }, { "id": "id.bench.compare-script", @@ -1259,6 +1265,62 @@ "status": "mapped", "notes": "Registered 2026-11-14 (#6188 ratchet): already invoked by mcpx.yml but named by no registry row." }, + { + "id": "id.rust.other-crate-integration", + "paths": [ + "pkgs/id/crates/id-core/tests/array_address.rs", + "pkgs/id/crates/id-core/tests/array_order_prop.rs", + "pkgs/id/crates/id-core/tests/canonical_cbor_vectors.rs", + "pkgs/id/crates/id-core/tests/id_shape.rs", + "pkgs/id/crates/id-core/tests/screen_parity.rs", + "pkgs/id/crates/id-core/tests/typed_value.rs", + "pkgs/id/crates/id-currency-registry/tests/acceptance.rs", + "pkgs/id/crates/id-currency-registry/tests/factory_acceptance.rs", + "pkgs/id/crates/id-currency-registry/tests/grants_acceptance.rs", + "pkgs/id/crates/id-render/tests/compose.rs", + "pkgs/id/crates/id-render/tests/lower.rs", + "pkgs/id/crates/id-render/tests/lower_gui.rs", + "pkgs/id/crates/id-render/tests/lower_native.rs", + "pkgs/id/crates/id-render/tests/pipeline.rs", + "pkgs/id/crates/id-sync/tests/federation_b01.rs", + "pkgs/id/crates/id-sync/tests/federation_b02.rs", + "pkgs/id/crates/id-sync/tests/federation_b03.rs", + "pkgs/id/crates/id-sync/tests/federation_b04.rs", + "pkgs/id/crates/id-sync/tests/federation_b05.rs", + "pkgs/id/crates/id-sync/tests/federation_b08.rs", + "pkgs/id/crates/id-sync/tests/federation_b20.rs", + "pkgs/id/crates/id-sync/tests/federation_b21.rs", + "pkgs/id/crates/id-sync/tests/federation_b31.rs", + "pkgs/id/crates/id-sync/tests/federation_b32.rs" + ], + "invocation": "nix flake check ./pkgs/id (check test-sandbox runs cargo nextest --all-features for default workspace members)", + "venue": { + "workflow": ".github/workflows/id-check.yml", + "job_step": "full-flake-check / Run full nix flake check", + "state": "active", + "dispatchable": true + }, + "status": "mapped", + "notes": "Existing nightly full-flake check runs test-sandbox over default workspace members; these additional integration targets are distinct from the five explicit PR targets added by #10329." + }, + { + "id": "id.benchmarks.integration", + "paths": [ + "pkgs/id/benchmarks/tests/d1_adapter.rs", + "pkgs/id/benchmarks/tests/r2_adapter.rs", + "pkgs/id/benchmarks/tests/redb_adapter.rs", + "pkgs/id/benchmarks/tests/workload_oracle.rs" + ], + "invocation": "nix develop ./pkgs/id --command cargo test --manifest-path ./pkgs/id/benchmarks/Cargo.toml --tests", + "venue": { + "workflow": ".github/workflows/id-bench.yml", + "job_step": "bench / Test benchmark adapters and workload oracle", + "state": "active", + "dispatchable": true + }, + "status": "mapped", + "notes": "Standalone benchmark-crate integration targets added to the nightly/manual benchmark workflow on 2026-11-17 while restoring the #6188 ratchet (#10329)." + }, { "id": "id.rust.crate-integration", "paths": [ @@ -1268,20 +1330,28 @@ "pkgs/id/crates/id-store/tests/store_traits.rs", "pkgs/id/crates/id-web/tests/web_router_security.rs" ], - "invocation": "cargo test (workspace member integration targets; candidate venue: the id flake package check, doCheck = true)", - "venue": null, - "status": "uncovered-in-fact", - "phase2_issue": 10329, - "reason": "Named by no registry entry and no evidenced run found in the #6188 inventory (2026-11-14): the --lib unit row and the pkgs/id/tests shard row do not reach member-crate tests/ targets, and whether the flake package check's cargo test phase executes them is unproven. #10329 owns proving or wiring them." + "invocation": "nix flake check ./pkgs/id (check test-crate-integration runs cargo nextest --all-features for roc_import_policy, aliases, probe_petname_load, store_traits, and web_router_security)", + "venue": { + "workflow": ".github/workflows/id-check.yml", + "job_step": "check_each / test-crate-integration", + "state": "active", + "dispatchable": true + }, + "status": "mapped", + "notes": "Wired by #10329: test-crate-integration is a named pkgs/id flake check included in the id PR-check list; its just recipe runs all five member-crate targets, including the four named by the issue and id-caps/roc_import_policy." }, { "id": "id.web.build-manifest", "paths": ["pkgs/id/web/scripts/build-manifest.test.sh"], - "invocation": "bash pkgs/id/web/scripts/build-manifest.test.sh", - "venue": null, - "status": "uncovered", - "phase2_issue": 10329, - "reason": "No workflow, package script, or flake check references this suite (verified 2026-11-14, #6188 inventory). #10329 owns wiring or waiving it." + "invocation": "nix flake check ./pkgs/id (check test-web-unit runs bun run test and sh web/scripts/build-manifest.test.sh)", + "venue": { + "workflow": ".github/workflows/id-check.yml", + "job_step": "check_each / test-web-unit", + "state": "active", + "dispatchable": true + }, + "status": "mapped", + "notes": "Wired by #10329 into test-web-unit, which is included in the id PR-check list and runs through the id flake check." }, { "id": "mcpx.scripts.spec-parity", diff --git a/.github/workflows/id-bench.yml b/.github/workflows/id-bench.yml index eb356d5ea5..a855e0e76f 100644 --- a/.github/workflows/id-bench.yml +++ b/.github/workflows/id-bench.yml @@ -72,6 +72,12 @@ jobs: - name: Test the compare script run: .github/scripts/id-bench-compare.test.sh + # The benchmark crate is a standalone workspace; its adapter and + # workload-oracle integration targets are not reached by pkgs/id's + # default-member test checks. + - name: Test benchmark adapters and workload oracle + run: nix develop ./pkgs/id --command cargo test --manifest-path ./pkgs/id/benchmarks/Cargo.toml --tests + # Full-size workloads, exactly as the baselines were taken # (BASELINES.md): --quick numbers are smoke sizes and are never # comparable to the committed baselines. diff --git a/pkgs/id/flake.nix b/pkgs/id/flake.nix index 4cff63ded3..f8fd15da2a 100644 --- a/pkgs/id/flake.nix +++ b/pkgs/id/flake.nix @@ -355,7 +355,7 @@ # Uses 'ci' command (read-only, no auto-fix modifications) # ======================================================================= checks = { - # CI-safe checks (read-only): cargo-fmt-check web-fmt-check clippy-lint web-lint test-sandbox test-web-unit test-web-typecheck roc-test roc-examples doc build release + # CI-safe checks (read-only): cargo-fmt-check web-fmt-check clippy-lint web-lint test-sandbox test-crate-integration test-web-unit test-web-typecheck roc-test roc-examples doc build release # NixOS VM integration tests (Linux only): nixos-serve nixos-e2e default = mkCheck "ci" "ci"; @@ -369,6 +369,7 @@ web-lint = mkCheck "web-lint" "web-lint"; test = mkCheck "test" "test-sandbox"; test-unit = mkCheck "test-unit" "test-unit"; + test-crate-integration = mkCheck "test-crate-integration" "test-crate-integration"; test-native-shell = mkCheck "test-native-shell" "test-native-shell"; # Rust example guests (#7904): plaza-sdk (examples/rust-world) # and rust-counter (examples/rust-counter) are standalone diff --git a/pkgs/id/hosted-worker/package.json b/pkgs/id/hosted-worker/package.json index f08b06f270..47ff5d2225 100644 --- a/pkgs/id/hosted-worker/package.json +++ b/pkgs/id/hosted-worker/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "wrangler dev", "typecheck": "tsc --noEmit", - "test": "node --test test/routing.test.ts test/blobs.test.ts test/usage.test.ts test/currency.test.ts test/front-door.test.ts", + "test": "node --experimental-transform-types --test test/routing.test.ts test/blobs.test.ts test/canonical-cbor.test.ts test/usage.test.ts test/currency.test.ts test/front-door.test.ts", "smoke": "node smoke/smoke.mjs" }, "devDependencies": { diff --git a/pkgs/id/justfile b/pkgs/id/justfile index d5e9967aab..0e932a80e9 100644 --- a/pkgs/id/justfile +++ b/pkgs/id/justfile @@ -294,6 +294,16 @@ test-unit: cargo nextest run --all-features --lib alias test-lib := test-unit +# Run workspace-member integration targets not covered by --lib or the +# root-package integration shards (#10329). +[group('test')] +test-crate-integration: + cargo nextest run --all-features -p id-caps --test roc_import_policy + cargo nextest run --all-features -p id-cli --test aliases + cargo nextest run --all-features -p id-core --test probe_petname_load + cargo nextest run --all-features -p id-store --test store_traits + cargo nextest run --all-features -p id-web --test web_router_security + # Run the id-native-shell unit + contract transcript tests (#5582): non-default workspace member, so the default-member test recipes never run it. [group('test')] test-native-shell: @@ -354,6 +364,7 @@ test-web-sandbox: test-sandbox test-web-unit test-web-typecheck [group('test')] test-web-unit: cd web && bun run test + sh web/scripts/build-manifest.test.sh # [bun] Run TypeScript type checking only [group('test')]