Skip to content
Closed
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
10 changes: 10 additions & 0 deletions .github/workflows/non-git-snapshot-proof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ jobs:
set -euo pipefail
mkdir -p "$TMPDIR"
cargo test --locked -p cyber-cli --features native-git-acceptance --test branches_cli preparation_ -- --nocapture --test-threads=1 2>&1 | tee preparation-client-proof.log
- name: Owner-only construction evidence discard and its process-death cuts
if: ${{ !cancelled() && (runner.os != 'Linux' || steps.sandbox.outcome == 'success') }}
env:
TMPDIR: /tmp/c${{ github.run_number }}
shell: bash
run: |
set -euo pipefail
mkdir -p "$TMPDIR"
cargo test --locked -p cyber-cli --features native-git-acceptance --test branches_cli construction_discard:: -- --nocapture --test-threads=1 2>&1 | tee construction-discard-proof.log
- name: Prepared cancellation metadata retirement
if: ${{ !cancelled() && (runner.os != 'Linux' || steps.sandbox.outcome == 'success') }}
env:
Expand Down Expand Up @@ -282,6 +291,7 @@ jobs:
fallback-collection-proof.log
git-cli-recovery-proof.log
preparation-client-proof.log
construction-discard-proof.log
preparation-retirement-proof.log
paired-retirement-proof.log
zero-payload-retirement-proof.log
Expand Down
19 changes: 19 additions & 0 deletions crates/cyber-app/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,25 @@ impl ToolHost for AppHost {
self.builtin.snapshot_checkout_constructions(info)
}

fn snapshot_construction_stage(
&self,
info: &cyber_server::runtime::SessionInfo,
name: &str,
) -> Result<Option<cyber_server::runtime::NativeConstructionStage>, String> {
self.builtin.snapshot_construction_stage(info, name)
}

fn fence_snapshot_construction(
&self,
info: &cyber_server::runtime::SessionInfo,
stage: &cyber_server::runtime::NativeConstructionStage,
) -> Result<
Box<dyn cyber_server::runtime::ConstructionFence>,
cyber_server::runtime::ConstructionFenceError,
> {
self.builtin.fence_snapshot_construction(info, stage)
}

fn reacquire_snapshot_location(
&self,
info: &cyber_server::runtime::SessionInfo,
Expand Down
4 changes: 4 additions & 0 deletions crates/cyber-app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ impl App {
.map_err(|error| error.to_string())?;
}
host.attach(runtime.clone());
if opts.snapshots {
// Owner-confirmed construction discards whose unlink failed are retried forever.
cyber_server::runtime::construction_discard::spawn_retry(runtime.clone());
}
// One fair scheduler of the slots of every Workflow agent of this server
// (`workflows.max_concurrent`, reduced to the core count), fixed at startup like the
// listener settings.
Expand Down
Loading
Loading