Skip to content

[chore] modular opcode supports different primes (#499) #690

[chore] modular opcode supports different primes (#499)

[chore] modular opcode supports different primes (#499) #690

Workflow file for this run

name: DB Unit Tests
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
paths:
- "stark-backend/**"
- "primitives/**"
- "db/**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
AXIOM_FAST_TEST: "1"
jobs:
tests:
runs-on: ubuntu-arm64-16core-64ram
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: Run DB unit tests
working-directory: db/page
run: |
cargo nextest run --cargo-profile=fast --features parallel
benchmark-rw:
uses: ./.github/workflows/benchmark-call.yml
# run on non-draft pull request with label 'run-benchmark'
# and always run on push to main
if: |
(github.event_name == 'pull_request' &&
github.event.pull_request.draft == false &&
contains(github.event.pull_request.labels.*.name, 'run-benchmark-db')) ||
(github.event_name == 'push' && github.ref == 'refs/heads/main')
with:
benchmark_name: single_rw
secrets: inherit
benchmark-filter:
uses: ./.github/workflows/benchmark-call.yml
# run on non-draft pull request with label 'run-benchmark'
# and always run on push to main
if: |
(github.event_name == 'pull_request' &&
github.event.pull_request.draft == false &&
contains(github.event.pull_request.labels.*.name, 'run-benchmark-db')) ||
(github.event_name == 'push' && github.ref == 'refs/heads/main')
with:
benchmark_name: single_filter
secrets: inherit