Skip to content

refactor: forester: batch ops #1124

refactor: forester: batch ops

refactor: forester: batch ops #1124

name: forester-tests
on:
push:
branches:
- main
paths:
- "forester/**"
- "forester-utils/**"
- "photon-api/**"
- ".github/workflows/forester-tests.yml"
pull_request:
branches:
- "**"
paths:
- "forester/**"
- "forester-utils/**"
- "photon-api/**"
- ".github/workflows/forester-tests.yml"
types:
- opened
- synchronize
- reopened
- ready_for_review
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUSTFLAGS: "--cfg tokio_unstable -D warnings"
jobs:
test-address-batched:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup and build
uses: ./.github/actions/setup-and-build
- name: Build test program
run: |
source ./scripts/devenv.sh
cargo test-sbf -p create-address-test-program
- name: Run address batched tests
run: |
source ./scripts/devenv.sh
cargo test --package forester test_address_batched -- --nocapture
test-state-batched:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup and build
uses: ./.github/actions/setup-and-build
- name: Run state batched tests
run: |
source ./scripts/devenv.sh
cargo test --package forester test_state_batched -- --nocapture
test-2-foresters:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup and build
uses: ./.github/actions/setup-and-build
- name: Run 2 foresters test
run: |
source ./scripts/devenv.sh
cargo test --package forester test_epoch_monitor_with_2_foresters -- --nocapture
test-double-registration:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Setup and build
uses: ./.github/actions/setup-and-build
- name: Run epoch double registration test
run: |
source ./scripts/devenv.sh
cargo test --package forester test_epoch_double_registration -- --nocapture