Add crash-safe attempt authority lifecycle

This commit is contained in:
ms2k 2026-07-17 07:07:43 +09:00
commit 2db0e22232

View file

@ -214,6 +214,35 @@ COPY crates crates
COPY --from=kind-admission-build /tmp/remora-admission-tests.tar.zst /tests/remora-admission-tests.tar.zst
CMD ["bash", "-ec", "test -s /run/remora-fixture/profile.env && test -n \"$DATABASE_URL\" && export REMORA_ADMISSION_REQUIRE=1 && cargo-nextest nextest run --archive-file /tests/remora-admission-tests.tar.zst --workspace-remap /workspace --test-threads=1"]
FROM rust-tools AS kind-attempt-build
WORKDIR /workspace
COPY Cargo.toml Cargo.lock rust-toolchain.toml ./
COPY .config .config
COPY contracts contracts
COPY crates crates
COPY docs/api docs/api
RUN cargo nextest archive \
--package remora-attempt \
--build-jobs 4 \
--locked \
--archive-file /tmp/remora-attempt-tests.tar.zst
FROM kind-attempt-build AS kind-attempt-verified
RUN cargo clippy \
--package remora-attempt \
--all-targets \
--all-features \
--locked \
-- -D warnings \
&& cargo test --package remora-attempt --doc --locked
FROM rust-tools AS kind-attempt-runner
WORKDIR /workspace
COPY Cargo.toml ./
COPY crates crates
COPY --from=kind-attempt-verified /tmp/remora-attempt-tests.tar.zst /tests/remora-attempt-tests.tar.zst
CMD ["bash", "-ec", "test -s /run/remora-fixture/profile.env && test -n \"$DATABASE_URL\" && test -n \"$REMORA_COORDINATION_URL\" && export REMORA_ATTEMPT_REQUIRE=1 && cargo-nextest nextest run --archive-file /tests/remora-attempt-tests.tar.zst --workspace-remap /workspace --test-threads=1"]
FROM rust-tools AS kind-http-source-build
WORKDIR /workspace
COPY Cargo.toml Cargo.lock rust-toolchain.toml ./