feat: implement sequencer recovery for stale batches #193
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| XGENEXT2FS_VERSION: v1.5.6 | |
| XGENEXT2FS_SHA256_AMD64: 996e4e68a638b5dc5967d3410f92ecb8d2f41e32218bbe0f8b4c4474d7eebc59 | |
| XGENEXT2FS_SHA256_ARM64: e5aca81164b762bbe5447bacef41e4fa9e357fd9c8f44e519c5206227d43144d | |
| CARTESI_MACHINE_VERSION: v0.20.0-test2 | |
| CARTESI_MACHINE_SHA256_AMD64: 39bbfc96a6cc6606307294b719df65f4f2725e8d200d062bcbd8c22355b99b56 | |
| CARTESI_MACHINE_SHA256_ARM64: 787d823756000cdecd72da8a3494b4c08613087379035959e561bbaef7a220ba | |
| jobs: | |
| rust: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| faketime \ | |
| lua5.4 \ | |
| liblua5.4-dev \ | |
| libslirp-dev | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache Rust artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: v1.4.3 | |
| - name: Build | |
| run: cargo build --workspace --all-targets --locked | |
| - name: Format | |
| run: cargo fmt --all -- --check | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings | |
| - name: Test | |
| timeout-minutes: 15 | |
| run: cargo test --workspace --all-targets --all-features --locked | |
| canonical-guest: | |
| runs-on: ubuntu-latest | |
| needs: rust | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup guest toolchain | |
| uses: ./.github/actions/setup-guest-toolchain | |
| with: | |
| xgenext2fs-version: ${{ env.XGENEXT2FS_VERSION }} | |
| xgenext2fs-sha256-amd64: ${{ env.XGENEXT2FS_SHA256_AMD64 }} | |
| xgenext2fs-sha256-arm64: ${{ env.XGENEXT2FS_SHA256_ARM64 }} | |
| cartesi-machine-version: ${{ env.CARTESI_MACHINE_VERSION }} | |
| cartesi-machine-sha256-amd64: ${{ env.CARTESI_MACHINE_SHA256_AMD64 }} | |
| cartesi-machine-sha256-arm64: ${{ env.CARTESI_MACHINE_SHA256_ARM64 }} | |
| - name: Download canonical app deps | |
| run: just -f examples/canonical-app/justfile download-deps | |
| - name: Run guest tests | |
| run: just canonical-test-guest | |
| rollups-e2e: | |
| runs-on: ubuntu-latest | |
| needs: rust | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup guest toolchain | |
| uses: ./.github/actions/setup-guest-toolchain | |
| with: | |
| xgenext2fs-version: ${{ env.XGENEXT2FS_VERSION }} | |
| xgenext2fs-sha256-amd64: ${{ env.XGENEXT2FS_SHA256_AMD64 }} | |
| xgenext2fs-sha256-arm64: ${{ env.XGENEXT2FS_SHA256_ARM64 }} | |
| cartesi-machine-version: ${{ env.CARTESI_MACHINE_VERSION }} | |
| cartesi-machine-sha256-amd64: ${{ env.CARTESI_MACHINE_SHA256_AMD64 }} | |
| cartesi-machine-sha256-arm64: ${{ env.CARTESI_MACHINE_SHA256_ARM64 }} | |
| install-foundry: "true" | |
| - name: Install faketime | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y faketime | |
| - name: Run rollups E2E tests | |
| run: just test-rollups-e2e |