Skip to content

Commit

Permalink
Improve CI times (#2826)
Browse files Browse the repository at this point in the history
* Try re-enabling jumbo tests

* Fix exit(1)

* Remove unused Jenkins functions

* Add param to disable Jumbo tests for debugging

* Fix include order, avoid namespaces for now
* Trying alt parallel scheme

* Add missing include for idas_system test

* Namespace some tests to avoid jumbo collisions

* Fix fragile O0 test

* Fix formatting

* Clean up

* See if O1 is faster for mix unit

* Namespace some OpenGL tests

* O0 for make-headers

* Missing }

* Debug: skip unit for now

* Remove bad copy/pasted test

* Namespaces

* Fix GHA

* Update jenkinsfile

* Try to debug segfault

* Full run

* Remove debug attempt

* Group opencl tests with other longer-running tests

* Try O=1 in Windows tests

* More consistently use -j2 in GHA

* O1 during math-lib build

* Windows out of memory fix

* Use O3 on develop and if requested

* Namespacing

* Format

* Fix rev/functor jumbo tests

* Format

* Update Jenkinsfile

* Fix MPI tests

* Always fail fast for parallel
  • Loading branch information
WardBrian authored Oct 24, 2022
1 parent c4b0717 commit 0a53c7d
Show file tree
Hide file tree
Showing 51 changed files with 403 additions and 461 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/header_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '2.x'
python-version: '3.x'

- name: Print g++/mingw32-make version and path
run: |
Expand All @@ -46,7 +46,7 @@ jobs:

- name: Build Math libs
shell: powershell
run: mingw32-make -f make/standalone math-libs
run: mingw32-make -f make/standalone math-libs -j2

- name: Run header tests
shell: powershell
Expand Down
36 changes: 22 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '2.x'
python-version: '3.x'
- uses: r-lib/actions/setup-r@v2
with:
r-version: 4.1.3
Expand All @@ -52,7 +52,9 @@ jobs:

- name: Build Math libs
shell: powershell
run: mingw32-make -f make/standalone math-libs
run: |
Add-Content make\local "O=1`n"
mingw32-make -f make/standalone math-libs -j2
- name: Add TBB to PATH
shell: powershell
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
Expand All @@ -79,7 +81,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '2.x'
python-version: '3.x'
- uses: r-lib/actions/setup-r@v2
with:
r-version: 4.1.3
Expand All @@ -99,7 +101,9 @@ jobs:

- name: Build Math libs
shell: powershell
run: mingw32-make -f make/standalone math-libs
run: |
Add-Content make\local "O=1`n"
mingw32-make -f make/standalone math-libs -j2
- name: Add TBB to PATH
shell: powershell
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
Expand All @@ -109,12 +113,12 @@ jobs:
- name: Run fwd unit tests and all the mix tests except those in mix/fun
shell: powershell
run: |
python.exe runTests.py test/unit/math/fwd
python.exe runTests.py test/unit/math/mix/core
python.exe runTests.py test/unit/math/mix/functor
python.exe runTests.py test/unit/math/mix/meta
python.exe runTests.py test/unit/math/mix/prob
python.exe runTests.py test/unit/math/mix/*_test.cpp
python.exe runTests.py test/unit/math/fwd -j2
python.exe runTests.py test/unit/math/mix/core -j2
python.exe runTests.py test/unit/math/mix/functor -j2
python.exe runTests.py test/unit/math/mix/meta -j2
python.exe runTests.py test/unit/math/mix/prob -j2
python.exe runTests.py test/unit/math/mix/*_test.cpp -j2
- name: Upload gtest_output xml
uses: actions/upload-artifact@v3
Expand All @@ -130,7 +134,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '2.x'
python-version: '3.x'
- uses: r-lib/actions/setup-r@v2
with:
r-version: 4.1.3
Expand All @@ -150,7 +154,9 @@ jobs:

- name: Build Math libs
shell: powershell
run: mingw32-make -f make/standalone math-libs
run: |
Add-Content make\local "O=1`n"
mingw32-make -f make/standalone math-libs -j2
- name: Add TBB to PATH
shell: powershell
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
Expand All @@ -176,7 +182,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '2.x'
python-version: '3.x'
- uses: r-lib/actions/setup-r@v2
with:
r-version: 4.1.3
Expand All @@ -196,7 +202,9 @@ jobs:

- name: Build Math libs
shell: powershell
run: mingw32-make -f make/standalone math-libs
run: |
Add-Content make\local "O=1`n"
mingw32-make -f make/standalone math-libs -j2
- name: Add TBB to PATH
shell: powershell
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
Expand Down
Loading

0 comments on commit 0a53c7d

Please sign in to comment.