Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto-close-queue-cards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Build AIRC CLI
run: |
set -euo pipefail
cargo build --manifest-path .airc-src/Cargo.toml -p airc-cli --bin airc
cargo build --locked --manifest-path .airc-src/Cargo.toml -p airc-cli --bin airc

- name: Close the queue cards this PR merged
env:
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/continuum-rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ jobs:
# (spawn into the engine's group, readiness, core exit and re-follow; card 1d7d6d4c).
- name: integration targets (capability grant trust gate, engine log relay)
if: matrix.crate == 'continuum-core'
run: cargo test -p continuum-core --test capability_grant_e2e --test log_relay_e2e --profile dev-fast --features "$FEATURES"
run: cargo test --locked -p continuum-core --test capability_grant_e2e --test log_relay_e2e --profile dev-fast --features "$FEATURES"

# continuum-host's real-process fixtures fork, so they live in their own test binary, apart from
# the lib tests' sockets (a fork can carry a socket being created into the child; card 1d7d6d4c).
- name: continuum-host process fixtures
if: matrix.crate == 'continuum-host'
run: cargo test -p continuum-host --test output_handoff --profile dev-fast --features "$FEATURES"
run: cargo test --locked -p continuum-host --test output_handoff --profile dev-fast --features "$FEATURES"

# ---- continuum-core: script fixtures, the warnings ratchet, the core lib binary ----
- name: cargo test -p continuum-core --lib
Expand All @@ -124,7 +124,7 @@ jobs:
# compiler-message records, which the render-diagnostics form sends to stderr
# as text instead. The artifact script reads compiler-artifact records, present
# in both.
python3 tools/scripts/ci-lib-test-artifact.py --capture lib-artifacts.jsonl -- cargo test -p continuum-core --lib --profile dev-fast --features "$FEATURES" --no-run --timings --message-format=json
python3 tools/scripts/ci-lib-test-artifact.py --capture lib-artifacts.jsonl -- cargo test --locked -p continuum-core --lib --profile dev-fast --features "$FEATURES" --no-run --timings --message-format=json
# Warning debt is monotonic: the same stream, counted against
# scripts/ratchets/rust-warnings-baseline.txt (grow = red; shrink = lower it here).
# This build compiles every crate the ratchet counts (core, engine, hands, live,
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
- name: cargo test -p continuum-kernel --lib
if: matrix.crate == 'continuum-kernel'
run: |
cargo test -p continuum-kernel --lib --profile dev-fast --features "$FEATURES" -- \
cargo test --locked -p continuum-kernel --lib --profile dev-fast --features "$FEATURES" -- \
--skip 'gpu::memory_manager::'

# ---- continuum-engine: lib tests and the native/fs2 custody interop fixture ----
Expand All @@ -193,8 +193,8 @@ jobs:
c++ -std=c++17 -O1 -pthread -I core/vendor/llama.cpp/ggml/src -I core/vendor/llama.cpp/ggml/include \
core/vendor/llama.cpp/tests/test-moe-residency.cpp -o "$CONTINUUM_NATIVE_CONTAINER_LEASE_TEST"
"$CONTINUUM_NATIVE_CONTAINER_LEASE_TEST"
cargo test -p continuum-engine --lib --profile dev-fast --features "$FEATURES"
interop_output=$(cargo test -p continuum-engine --lib --profile dev-fast --features "$FEATURES" \
cargo test --locked -p continuum-engine --lib --profile dev-fast --features "$FEATURES"
interop_output=$(cargo test --locked -p continuum-engine --lib --profile dev-fast --features "$FEATURES" \
model_registry::artifacts::expert_placement::tests::fs2_and_native_container_locks_interoperate_across_processes \
-- --exact --ignored --nocapture 2>&1)
printf '%s\n' "$interop_output"
Expand All @@ -209,14 +209,14 @@ jobs:
# [workspace.metadata.ci] own_lib_test_step names the crates with their own steps above and below) ----
- name: cargo test -p ${{ matrix.crate }} --lib
if: fromJSON(needs.changes.outputs.lib_tests)[matrix.crate]
run: cargo test -p "$CRATE" --lib --profile dev-fast --features "$FEATURES"
run: cargo test --locked -p "$CRATE" --lib --profile dev-fast --features "$FEATURES"

# ---- continuum-mind: lib tests, compile-fail doc guards ----
- name: cargo test -p continuum-mind --lib
if: matrix.crate == 'continuum-mind'
run: |
# The allocator skip moved here with persona.
cargo test -p continuum-mind --lib --profile dev-fast --features "$FEATURES" -- \
cargo test --locked -p continuum-mind --lib --profile dev-fast --features "$FEATURES" -- \
--skip 'persona::allocator::tests::test_allocate'

# The --lib step already builds the mind rlib (test-fixtures) in this profile.
Expand All @@ -229,7 +229,7 @@ jobs:
# Same profile as the --lib build above, deliberately: a different profile
# here would be a SECOND full codegen of a 625k-line crate, not a cheap extra step.
# The guard lives in the mind crate (persona::viewstate_rag) since the mind cut.
cargo test -p continuum-mind --doc --profile dev-fast --features "$FEATURES" BindingIsUnstatable 2>&1 | tee doc-guard.log
cargo test --locked -p continuum-mind --doc --profile dev-fast --features "$FEATURES" BindingIsUnstatable 2>&1 | tee doc-guard.log
if ! grep -q 'test result: ok. 2 passed' doc-guard.log; then
echo "::error::expected exactly 2 BindingIsUnstatable doctests to pass."
echo "A zero-match filter exits 0, so this is how a renamed or deleted"
Expand All @@ -246,7 +246,7 @@ jobs:
echo "were modified but their regenerated TypeScript bindings"
echo "(in protocol/typescript/) were not committed."
echo ""
echo "Fix: run cargo test locally to regenerate, then:"
echo "Fix: run cargo test --locked locally to regenerate, then:"
echo " git add protocol/typescript/"
echo " git commit --amend --no-edit"
echo " git push --force-with-lease"
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
- uses: ./.github/actions/rust-ci-setup
# The CLI links this library, but linking never executes its serve-loop tests.
- name: Client transport lifecycle regressions
run: cargo test -p continuum-client --lib --profile dev-fast
run: cargo test --locked -p continuum-client --lib --profile dev-fast
- name: CLI installed-release handoff regressions
run: |
set -o pipefail
Expand All @@ -290,7 +290,7 @@ jobs:
tests::deploy_consume_tests::the_deploy_consumer_deploys_only_a_clean_checkout_toward_a_tip_not_running \
tests::reboot_tests::a_decoded_hold_of_unknown_cause_is_unreadable_never_free \
tests::deploy_consume_tests::a_held_handoff_charges_no_attempt_and_keeps_no_deferral; do
cargo test -p continuum-core --bin continuum --profile dev-fast --features "$FEATURES" "$test" -- --exact 2>&1 | tee cli-handoff.log
cargo test --locked -p continuum-core --bin continuum --profile dev-fast --features "$FEATURES" "$test" -- --exact 2>&1 | tee cli-handoff.log
if ! grep -q 'test result: ok. 1 passed;' cli-handoff.log; then
echo "::error::The exact CLI handoff regression did not execute: $test"
exit 1
Expand Down Expand Up @@ -388,15 +388,15 @@ jobs:
& $env:CONTINUUM_NATIVE_CONTAINER_LEASE_TEST
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
$env:CONTINUUM_REQUIRE_WINDOWS_REPARSE_TEST = '1'
$exitProof = & cargo test -p continuum-engine --lib --profile dev-fast --features test-fixtures 'inference::lane_registry::tests::shutdown_confirmation_waits_for_exit_and_preserves_replacements' -- --exact 2>&1
$exitProof = & cargo test --locked -p continuum-engine --lib --profile dev-fast --features test-fixtures 'inference::lane_registry::tests::shutdown_confirmation_waits_for_exit_and_preserves_replacements' -- --exact 2>&1
$exitProofResult = $LASTEXITCODE
$exitProof | Write-Output
if ($exitProofResult -ne 0) { exit $exitProofResult }
if (($exitProof -join "`n") -notmatch 'test result: ok\. 1 passed;') { throw 'The actual lane exit confirmation fixture did not execute.' }
# The engine's native custody fixtures (expert placement, engine install) live in the
# engine crate (core/continuum-engine); they run from there. Core's compile on Windows
# is the windows-msvc check's job, so no core test binary is built here.
$interop = & cargo test -p continuum-engine --lib --profile dev-fast --features test-fixtures 'model_registry::artifacts::expert_placement::tests::fs2_and_native_container_locks_interoperate_across_processes' -- --exact --ignored --nocapture 2>&1
$interop = & cargo test --locked -p continuum-engine --lib --profile dev-fast --features test-fixtures 'model_registry::artifacts::expert_placement::tests::fs2_and_native_container_locks_interoperate_across_processes' -- --exact --ignored --nocapture 2>&1
$interopResult = $LASTEXITCODE
$interop | Write-Output
if ($interopResult -ne 0) { exit $interopResult }
Expand All @@ -413,7 +413,7 @@ jobs:
'inference::llama_server::late_ready::tests::a_publication_cancelled_before_its_ledger_keeps_the_launch',
'inference::llama_server::late_ready::tests::a_restarted_core_adopts_a_healthy_engine_it_never_spawned'
)) {
$output = & cargo test -p continuum-engine --lib --profile dev-fast --features test-fixtures $test -- --exact --nocapture 2>&1
$output = & cargo test --locked -p continuum-engine --lib --profile dev-fast --features test-fixtures $test -- --exact --nocapture 2>&1
$result = $LASTEXITCODE
$output | Write-Output
if ($result -ne 0) { exit $result }
Expand All @@ -428,7 +428,7 @@ jobs:
'system_resources::disk_eviction::tests::redirected_profile_or_incremental_child_never_reaches_external_data',
'system_resources::disk_eviction::tests::ladder_frees_in_order_and_preserves_release_outputs'
)) {
$output = & cargo test -p continuum-kernel --lib --profile dev-fast --features test-fixtures $test -- --exact --nocapture 2>&1
$output = & cargo test --locked -p continuum-kernel --lib --profile dev-fast --features test-fixtures $test -- --exact --nocapture 2>&1
$result = $LASTEXITCODE
$output | Write-Output
if ($result -ne 0) { exit $result }
Expand All @@ -437,14 +437,14 @@ jobs:
- name: Windows owned process custody and console fixtures
if: needs.changes.outputs.rust != 'false'
run: |
$output = & cargo test -p continuum-process --lib --profile dev-fast 2>&1
$output = & cargo test --locked -p continuum-process --lib --profile dev-fast 2>&1
$result = $LASTEXITCODE
$output | Write-Output
if ($result -ne 0) { exit $result }
if (($output -join "`n") -notmatch 'test result: ok\. [1-9][0-9]* passed;') { throw 'Process fixtures did not execute' }
- name: Type-check integration targets using the same headless profile
if: needs.changes.outputs.rust != 'false'
run: cargo check -p continuum-core --test '*' --profile dev-fast --features test-fixtures
run: cargo check --locked -p continuum-core --test '*' --profile dev-fast --features test-fixtures
- name: Windows maintenance durable-stop regression
if: needs.changes.outputs.rust != 'false'
run: |
Expand All @@ -453,7 +453,7 @@ jobs:
'maintenance::tests::maintenance_is_bounded_and_recovery_cannot_repeat_observation'
'maintenance::tests::every_drain_observation_and_restart_failure_restores_once'
)) {
$output = & cargo test -p continuum-core --bin continuum --profile dev-fast --features test-fixtures $test -- --exact 2>&1
$output = & cargo test --locked -p continuum-core --bin continuum --profile dev-fast --features test-fixtures $test -- --exact 2>&1
$result = $LASTEXITCODE
$output | Write-Output
if ($result -ne 0) { exit $result }
Expand All @@ -462,7 +462,7 @@ jobs:
- name: Windows deploy maintenance custody regression
if: needs.changes.outputs.rust != 'false'
run: |
$output = & cargo test -p continuum-core --lib --profile dev-fast --features test-fixtures 'modules::deploy_actuator::tests::maintenance_blocks_real_spawner_before_scheduler_or_detached_child' -- --exact 2>&1
$output = & cargo test --locked -p continuum-core --lib --profile dev-fast --features test-fixtures 'modules::deploy_actuator::tests::maintenance_blocks_real_spawner_before_scheduler_or_detached_child' -- --exact 2>&1
$result = $LASTEXITCODE
$output | Write-Output
if ($result -ne 0) { exit $result }
Expand All @@ -471,7 +471,7 @@ jobs:
- name: Windows connected teacher restoration regression
if: needs.changes.outputs.rust != 'false'
run: |
$output = & cargo test -p continuum-serving --lib --profile dev-fast --features test-fixtures 'modules::serving_daemon::tests::cancelled_exclusive_teacher_restores_real_owned_child' -- --exact 2>&1
$output = & cargo test --locked -p continuum-serving --lib --profile dev-fast --features test-fixtures 'modules::serving_daemon::tests::cancelled_exclusive_teacher_restores_real_owned_child' -- --exact 2>&1
$result = $LASTEXITCODE
$output | Write-Output
if ($result -ne 0) { exit $result }
Expand Down Expand Up @@ -548,7 +548,7 @@ jobs:
# lines instead of 624,456.
- name: continuum-cli-lifecycle tests (the CLI's platform lifecycle, no core link)
if: needs.changes.outputs.rust != 'false'
run: cargo test -p continuum-cli-lifecycle
run: cargo test --locked -p continuum-cli-lifecycle

# Preserve the required Windows context; neither child can silently disappear.
cargo-check-windows:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/core-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,24 +222,24 @@ jobs:
if [ "$CONTINUUM_CLI_FEATURES" = "$CONTINUUM_FEATURES" ]; then
# One cargo call, one library compile, all four bins (both Macs).
# shellcheck disable=SC2086 # the feature string is split on purpose
cargo build --manifest-path "$manifest" --release \
cargo build --locked --manifest-path "$manifest" --release \
--bin continuum-core-server --bin continuum --bin continuum-mcp --bin forge-custodian \
$CONTINUUM_FEATURES
else
# The CLI is a socket client and must never link a GPU runtime (core-features.sh),
# so it builds separately with its own set, as start-server.sh does.
# shellcheck disable=SC2086
cargo build --manifest-path "$manifest" --release \
cargo build --locked --manifest-path "$manifest" --release \
--bin continuum-core-server --bin continuum-mcp --bin forge-custodian \
$CONTINUUM_FEATURES
# shellcheck disable=SC2086
cargo build --manifest-path "$manifest" --release --bin continuum $CONTINUUM_CLI_FEATURES
cargo build --locked --manifest-path "$manifest" --release --bin continuum $CONTINUUM_CLI_FEATURES
fi
if [ "$RUNNER_OS" = Windows ]; then
# The Windows handoff stages the voice sidecar beside the core and refuses a core
# without it (continuum.rs, PreparedCoreService::stage), as start-server.sh's warm
# build provides it.
cargo build --manifest-path core/livekit-bridge/Cargo.toml --bin livekit-bridge --release
cargo build --locked --manifest-path core/livekit-bridge/Cargo.toml --bin livekit-bridge --release
fi

# The published engine is a pure function of the pinned llama.cpp (core/vendor/LLAMA_CPP_PIN),
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manifest-projection-drift-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ jobs:
# names the fix (cargo run -p manifest-gen).
- name: Verify generated projections in sync with install-manifest.toml
run: |
if ! cargo run -q -p manifest-gen -- --check; then
if ! cargo run --locked -q -p manifest-gen -- --check; then
echo "::error::install-manifest projection drift detected."
echo "tools/scripts/install-manifest.toml was edited but the generated"
echo "per-platform projections (tools/scripts/generated/) were not"
echo "regenerated + committed. The install runners would use stale values."
echo ""
echo "Fix: regenerate locally, then commit the generated files:"
echo " cargo run -p manifest-gen"
echo " cargo run --locked -p manifest-gen"
echo " git add tools/scripts/generated/"
echo " git commit --amend --no-edit # or a follow-up commit"
echo " git push --force-with-lease"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-warm-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
for target in "${targets[@]}"; do
IFS=$'\t' read -r crate features <<< "$target"
echo "::group::$crate ($features)"
cargo test -p "$crate" --lib --profile dev-fast --features "$features" --no-run --message-format=json >> warm.jsonl
cargo test --locked -p "$crate" --lib --profile dev-fast --features "$features" --no-run --message-format=json >> warm.jsonl
echo "::endgroup::"
done
core_features=$(node -p 'require("./tools/scripts/ci-change-scope.cjs").TEST_FEATURES["continuum-core"]')
cargo test -p continuum-core --bin continuum --profile dev-fast --features "$core_features" --no-run --message-format=json >> warm.jsonl
cargo test --locked -p continuum-core --bin continuum --profile dev-fast --features "$core_features" --no-run --message-format=json >> warm.jsonl
node tools/scripts/ci-cargo-freshness.cjs prune-test-executables warm.jsonl
du -sh target ~/.cargo/registry ~/.cargo/git
- name: Save the shared target cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/source-hygiene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ jobs:
base="origin/canary"
fi
fi
cargo run -q -p source-hygiene --bin ratchets -- "$base"
cargo run --locked -q -p source-hygiene --bin ratchets -- "$base"
Loading