Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
67 changes: 67 additions & 0 deletions .github/workflows/base-tests.cuda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Base Tests (CUDA)
# Consolidate non-extension tests to use fewer CUDA runners

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
- "crates/circuits/**"
- "crates/vm/**"
- "extensions/native/compiler/**"
- "extensions/native/recursion/**"
- "Cargo.toml"
- ".github/workflows/recursion.yml"
- ".github/workflows/vm.yml"

concurrency:
group: ${{ github.workflow_ref }}-base-tests-cuda-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
OPENVM_FAST_TEST: "1"

jobs:
tests-cuda:
runs-on:
- runs-on=${{ github.run_id }}-base-tests-cuda-${{ github.run_attempt }}/runner=test-gpu-nvidia

steps:
- uses: runs-on/action@v2
- uses: actions/checkout@v5
- run: | # avoid cross-device link error
rustup component remove clippy || true
rm -rf ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu || true
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest

- name: Check CUDA status and set environment variables
run: |
nvcc --version
echo "NEXTEST_ARGS=cuda --features parallel,cuda,touchemall" >> $GITHUB_ENV

- name: Run tests for primitives
working-directory: crates/circuits/primitives
run: |
cargo nextest run ${{ env.NEXTEST_ARGS }}

- name: Run tests for poseidon2-air
working-directory: crates/circuits/poseidon2-air
run: |
cargo nextest run ${{ env.NEXTEST_ARGS }}

- name: Run vm crate tests
working-directory: crates/vm
run: |
cargo nextest run ${{ env.NEXTEST_ARGS }}

- name: Run recursion crate tests
working-directory: extensions/native/recursion
run: |
cargo nextest run --features cuda
2 changes: 2 additions & 0 deletions .github/workflows/benchmarks-execute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "Execution benchmarks"

on:
workflow_call:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize, reopened, labeled]
branches: ["**"]
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,22 @@ on:
type: boolean
default: false
push:
branches: ["feat/new-execution"]
branches: ["main"]
paths:
- "benchmarks/prove/**"
- "benchmarks/guest/**"
- "crates/**"
- "extensions/**"
- ".github/workflows/benchmark-call.yml"
- ".github/workflows/benchmarks.yml"
- "Cargo.toml"
pull_request:
types: [opened, synchronize, reopened, labeled]
branches: ["**"]
paths:
- "benchmarks/prove/**"
- "crates/circuits/**"
- "crates/toolchain/**"
- "crates/prof/**"
- "crates/sdk/**"
- "crates/vm/**"
- "benchmarks/guest/**"
- "crates/**"
- "extensions/**"
- ".github/workflows/benchmark-call.yml"
- ".github/workflows/benchmarks.yml"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build Workspace

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
workflow_call:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: OpenVM CLI Tests

on:
push:
branches: ["main"]
tags: ["v*"]
pull_request:
branches: ["**"]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build and Serve Crate Docs
on:
workflow_call:
push:
branches: ["main"]
tags:
- v*.*.*
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/extension-tests.cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Extension Tests (CUDA)

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/extension-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Extension Tests

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/guest-lib-tests.cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Guest Library Tests (CUDA)

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/guest-lib-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Guest Library Tests

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Lint Workspace

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
workflow_call:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/merge-queue-controller.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Merge Queue Controller

on:
merge_group:
pull_request:
types: [opened, synchronize, reopened]
# NOTE[jpw]: this workflow is currently disabled and not meant to be used
workflow_dispatch
# merge_group:
# pull_request:
# types: [opened, synchronize, reopened]

permissions:
contents: write
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/native-compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Native Compiler Tests

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/primitives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Primitives Tests

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand All @@ -26,7 +28,6 @@ jobs:
matrix:
platform:
- { runner: "64cpu-linux-arm64", image: "ubuntu24-full-arm64" }
- { runner: "test-gpu-nvidia", image: "ubuntu24-gpu-x64" }

runs-on:
- runs-on=${{ github.run_id }}-primitives-${{ github.run_attempt }}-${{ strategy.job-index }}/runner=${{ matrix.platform.runner }}/image=${{ matrix.platform.image }}/extras=s3-cache
Expand Down
26 changes: 2 additions & 24 deletions .github/workflows/recursion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: STARK Recursion Tests

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand Down Expand Up @@ -45,27 +47,3 @@ jobs:
working-directory: crates/continuations
run: |
cargo nextest run --no-tests=pass

tests-cuda:
runs-on:
- runs-on=${{ github.run_id }}-cuda
- runner=test-gpu-nvidia
- image=ubuntu24-gpu-x64
- extras=s3-cache

steps:
- uses: runs-on/action@v2
- uses: actions/checkout@v5
- run: | # avoid cross-device link error
rustup component remove clippy || true
rm -rf ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu || true
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest

- name: Run recursion crate tests
working-directory: extensions/native/recursion
run: |
cargo nextest run --features cuda
2 changes: 2 additions & 0 deletions .github/workflows/riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: RISC-V Test Vectors

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: OpenVM SDK Tests

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: VM STARK and Compiler Tests

on:
workflow_call:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
Expand All @@ -24,7 +26,6 @@ jobs:
matrix:
platform:
- { runner: "64cpu-linux-arm64", image: "ubuntu24-full-arm64" }
- { runner: "test-gpu-nvidia", image: "ubuntu24-gpu-x64" }

runs-on:
- runs-on=${{ github.run_id }}-vm-tests-${{ github.run_attempt }}-${{ strategy.job-index }}/runner=${{ matrix.platform.runner }}/image=${{ matrix.platform.image }}/extras=s3-cache
Expand Down
Loading