Skip to content

Commit

Permalink
Self hosted runners (#898)
Browse files Browse the repository at this point in the history
Description of the problem
Our Debug CI using Github Actions is very slow (taking over 4 hours and a half to complete).

Description of the solution
I have deployed two local machines here to become our DEBUG CI. They take around 50 minutes to complete everything, which is a significant improvement.

How Has This Been Tested?
Ran them for a day and it seems everything is still good.

Comments
-More machines will be added in the following weeks. Hoping to reach like 5.
  • Loading branch information
blaisb authored Oct 2, 2023
1 parent 82a8a36 commit 5ece29c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/main_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ concurrency:


env:
COMPILE_JOBS: 2
MULTI_CORE_TESTS_REGEX: "mpirun=2"
COMPILE_JOBS: 8
TEST_JOBS: 5


jobs:
build:
name: Build (deal.ii:${{ matrix.dealii_version }})
runs-on: ubuntu-latest
runs-on: self-hosted

strategy:
fail-fast: false
Expand Down Expand Up @@ -67,19 +68,7 @@ jobs:
export OMPI_ALLOW_RUN_AS_ROOT=1
export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
cd build-debug
# Print the tests to be executed
ctest -N --exclude-regex ${{ env.MULTI_CORE_TESTS_REGEX }}
# Run in parallel
ctest --output-on-failure -j${{ env.COMPILE_JOBS }} --exclude-regex ${{ env.MULTI_CORE_TESTS_REGEX }}
ctest -N
# These tests require two cores each so we will run them sequencially
- name: Run multi-core Lethe tests (Debug-deal.ii:${{ matrix.dealii_version }})
run: |
#Allow OMPI to run as root
export OMPI_ALLOW_RUN_AS_ROOT=1
export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
cd build-debug
# Print the tests to be executed
ctest -N --tests-regex ${{ env.MULTI_CORE_TESTS_REGEX }}
# Run sequencially
ctest --output-on-failure --tests-regex ${{ env.MULTI_CORE_TESTS_REGEX }}
# Run in parallel
ctest --output-on-failure -j${{ env.TEST_JOBS }}
2 changes: 1 addition & 1 deletion .github/workflows/main_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: true

env:
COMPILE_JOBS: 2
COMPILE_JOBS: 8
MULTI_CORE_TESTS_REGEX: "mpirun=2"

jobs:
Expand Down

0 comments on commit 5ece29c

Please sign in to comment.