Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Workflow for basic testing across multiple archs #2937

Closed
wants to merge 21 commits into from
Closed
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
Prev Previous commit
Next Next commit
Test remaining armel prim
  • Loading branch information
andrjohns committed Aug 29, 2023
commit 89309918f75e3efdcdb1faf6717eeec19f0a5fa8
39 changes: 17 additions & 22 deletions .github/workflows/multiarch_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,28 @@ concurrency:

jobs:
multiarch-prim-rev:
name: ${{ matrix.config.platform }} - ${{ matrix.config.folder }} ${{ matrix.config.batch }}
name: ${{ matrix.config.platform }} - ${{ matrix.config.batch }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
config:
- { platform: arm/v6, folder: prim/fun, batch: 0}
- { platform: arm/v6, folder: prim/fun, batch: 1}
- { platform: arm/v6, folder: prim/fun, batch: 2}
- { platform: arm/v6, folder: prim/fun, batch: 3}
- { platform: arm/v6, folder: prim/fun, batch: 4}
- { platform: arm/v6, folder: prim/fun, batch: 5}
- { platform: arm/v6, folder: prim/fun, batch: 6}
- { platform: arm/v6, folder: prim/fun, batch: 7}
- { platform: arm/v6, folder: prim/fun, batch: 8}
- { platform: arm/v6, folder: prim/fun, batch: 9}
- { platform: arm/v6, folder: prim/fun, batch: 10}
- { platform: arm/v6, folder: prim/fun, batch: 11}
- { platform: arm/v6, folder: prim/fun, batch: 12}
- { platform: arm/v6, folder: prim/fun, batch: 13}
- { platform: arm/v6, folder: prim/fun, batch: 14}
- { platform: arm/v6, folder: prim/fun, batch: 15}
- { platform: arm/v6, folder: prim/fun, batch: 16}
- { platform: arm/v6, folder: prim/fun, batch: 17}
- { platform: arm/v6, folder: prim/fun, batch: 18}
- { platform: arm/v6, folder: prim/fun, batch: 19}
- { platform: arm/v6, batch: 0}
- { platform: arm/v6, batch: 1}
- { platform: arm/v6, batch: 2}
- { platform: arm/v6, batch: 3}
- { platform: arm/v6, batch: 4}
- { platform: arm/v6, batch: 5}
- { platform: arm/v6, batch: 6}
- { platform: arm/v6, batch: 7}
- { platform: arm/v6, batch: 8}
- { platform: arm/v6, batch: 9}
- { platform: arm/v6, batch: 10}
- { platform: arm/v6, batch: 11}
- { platform: arm/v6, batch: 12}
- { platform: arm/v6, batch: 13}
- { platform: arm/v6, batch: 14}

steps:
- uses: actions/checkout@v3
Expand All @@ -62,7 +57,7 @@ jobs:
cd /work
PrimTests=(test/unit/math/prim/prob/*.cpp test/unit/math/prim/core/*.cpp test/unit/math/prim/meta/*.cpp test/unit/math/prim/err/*.cpp test/unit/math/prim/functor/*.cpp)
NTests=${#PrimTests[@]}
TestsPerBatch="$(($NTests / 20))"
TestsPerBatch="$(($NTests / 15))"
StartOfBatch="$((${{ matrix.config.batch }} * $TestsPerBatch))"
# Compile and run in sub-batches of 5 to fail faster
echo "${PrimTests[@]:${StartOfBatch}:${TestsPerBatch}}" | xargs -n 5 python ./runTests.py -j2
Expand Down