mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-25 19:31:11 +00:00
feat(ci): trying CI retries
This commit is contained in:
@@ -209,12 +209,19 @@ jobs:
|
||||
shared-key: ci-rust-cache
|
||||
save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
|
||||
|
||||
- name: Build integration test archive
|
||||
- name: Build integration test archive (RETRY TEST)
|
||||
uses: ./.github/actions/run-in-ci-image
|
||||
with:
|
||||
image: ${{ needs.ci-image.outputs.image }}
|
||||
env: RISC0_DEV_MODE=1
|
||||
run: cargo nextest archive -p integration_tests --archive-file integration-tests.tar.zst --no-pager
|
||||
run: |
|
||||
for i in 1 2 3; do
|
||||
cargo nextest archive -p integration_tests --archive-file integration-tests.tar.zst --no-pager && break
|
||||
echo "::warning:: Attempt $i failed, cleaning up and retrying..." >&2
|
||||
rm -rf target/debug/deps/*.o target/debug/incremental 2>/dev/null || true
|
||||
cargo clean -p integration_tests 2>/dev/null || true
|
||||
sleep 5
|
||||
done
|
||||
|
||||
- name: Upload integration test archive
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -274,14 +281,21 @@ jobs:
|
||||
with:
|
||||
name: integration-tests-archive
|
||||
|
||||
- name: Run tests
|
||||
- name: Run tests (RETRY TEST)
|
||||
uses: ./.github/actions/run-in-ci-image
|
||||
with:
|
||||
image: ${{ needs.ci-image.outputs.image }}
|
||||
env: |
|
||||
RISC0_DEV_MODE=1
|
||||
RUST_LOG=info
|
||||
run: cargo nextest run --archive-file integration-tests.tar.zst -E "binary(${{ matrix.target }})"
|
||||
run: |
|
||||
for i in 1 2 3; do
|
||||
cargo nextest run --archive-file integration-tests.tar.zst -E "binary(${{ matrix.target }})" && break
|
||||
echo "::warning:: Attempt $i failed, cleaning up and retrying..." >&2
|
||||
rm -rf target/debug/deps/*.o target/debug/incremental 2>/dev/null || true
|
||||
cargo clean -p integration_tests 2>/dev/null || true
|
||||
sleep 5
|
||||
done
|
||||
|
||||
valid-proof-test:
|
||||
needs: ci-image
|
||||
@@ -305,12 +319,19 @@ jobs:
|
||||
shared-key: ci-rust-cache
|
||||
save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
|
||||
|
||||
- name: Test valid proof
|
||||
- name: Test valid proof (RETRY TEST)
|
||||
uses: ./.github/actions/run-in-ci-image
|
||||
with:
|
||||
image: ${{ needs.ci-image.outputs.image }}
|
||||
env: RUST_LOG=info
|
||||
run: cargo test -p integration_tests -- --exact private::private_transfer_to_owned_account
|
||||
run: |
|
||||
for i in 1 2 3; do
|
||||
cargo test -p integration_tests -- --exact private::private_transfer_to_owned_account && break
|
||||
echo "::warning:: Attempt $i failed, cleaning up and retrying..." >&2
|
||||
rm -rf target/debug/deps/*.o target/debug/incremental 2>/dev/null || true
|
||||
cargo clean -p integration_tests 2>/dev/null || true
|
||||
sleep 5
|
||||
done
|
||||
|
||||
# `just build-artifacts` drives the host's Docker daemon via `cargo risczero
|
||||
# build`, so it goes through the image rather than `container:`.
|
||||
|
||||
Reference in New Issue
Block a user