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

[CI] Allow skipping GPU test pipelines with a tag in commit message #604

Open
wants to merge 29 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ba4f0e5
try adding a skip gpu commit tag
NicolasGensollen May 30, 2024
07786fa
[skip gpu] trigger CI
NicolasGensollen May 30, 2024
33ab60c
[skip gpu] try something different
NicolasGensollen May 30, 2024
b9d6dab
[ci skip] test
NicolasGensollen May 30, 2024
ca40a24
[skip gpu] try using bash instead...
NicolasGensollen May 30, 2024
5dae6c9
[skip gpu] try again with success exit code
NicolasGensollen May 30, 2024
68291db
[skip gpu] test
NicolasGensollen May 30, 2024
3b6effc
skip gpu test
NicolasGensollen May 30, 2024
60ea204
[skip gpu] test again
NicolasGensollen May 30, 2024
3235b20
[skip gpu] test again 2
NicolasGensollen May 30, 2024
e0fedb5
[skip gpu] test again 3
NicolasGensollen May 30, 2024
8241ac6
[skip gpu] test on all GPU pipelines
NicolasGensollen May 30, 2024
27502f6
trigger CI
NicolasGensollen May 30, 2024
2e5f349
test
NicolasGensollen May 30, 2024
65a458a
test
NicolasGensollen May 30, 2024
5d2ed90
[skip gpu] trigger CI
NicolasGensollen May 30, 2024
7f027f8
[skip gpu] test
NicolasGensollen May 30, 2024
d162d77
[skip gpu] test
NicolasGensollen May 30, 2024
985c693
[skip gpu] test
NicolasGensollen May 30, 2024
41e17ad
[run gpu] test
NicolasGensollen May 30, 2024
75efb5b
[skip gpu] test
NicolasGensollen May 30, 2024
e128711
[skip gpu] test
NicolasGensollen May 30, 2024
81be962
[skip gpu] debug
NicolasGensollen May 30, 2024
01468ec
[skip gpu] debug 2
NicolasGensollen May 30, 2024
956a9eb
[skip gpu] trigger CI
NicolasGensollen May 30, 2024
739bbfa
[skip gpu] trigger CI
NicolasGensollen May 30, 2024
a0f65a1
[skip gpu] trigger CI
NicolasGensollen May 30, 2024
cc41201
[skip gpu] test something different
NicolasGensollen May 30, 2024
4965451
[skip gpu] test something different 2
NicolasGensollen May 30, 2024
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
4 changes: 3 additions & 1 deletion .github/workflows/test_interpret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ env:

jobs:
test-interpret-gpu:
if: github.event.pull_request.draft == false
if: |
github.event.pull_request.draft == false &&
contains(github.event.head_commit.message, '[skip gpu]') == 'false'
runs-on:
- self-hosted
- Linux
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_random_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ env:

jobs:
test-random-search-gpu:
if: github.event.pull_request.draft == false
if: |
github.event.pull_request.draft == false &&
contains(github.event.head_commit.message, '[skip gpu]') == 'false'
runs-on:
- self-hosted
- Linux
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_resume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ env:

jobs:
test-resume-gpu:
if: github.event.pull_request.draft == false
if: |
github.event.pull_request.draft == false &&
contains(github.event.head_commit.message, '[skip gpu]') == 'false'
runs-on:
- self-hosted
- Linux
Expand Down
26 changes: 25 additions & 1 deletion .github/workflows/test_train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,38 @@ env:
PYTHON_VERSION: '3.11'

jobs:
check_commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: check if message contain keywords
id: check_commit
run: |
message=$(git log -1 --pretty=format:'%s')
re="\[(skip gpu)\]"
if [[ $message =~ $re ]]; then
echo "::set-output name=match::true"
echo "$message -> Match is true"
else
echo "$message -> Match is false"
fi
outputs:
match: ${{ steps.check_commit.outputs.match }}
test-train-gpu:
if: github.event.pull_request.draft == false
needs: check_commit
runs-on:
- self-hosted
- Linux
- ubuntu
- gpu
if: ${{ needs.check_commit.outputs.match != 'true' }}
steps:
- name: echo
run: |
echo "${{ github.event.head_commit.message }}"
echo "${{ contains(github.event.head_commit.message, '[skip gpu]') }}"
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_transfer_learning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ env:

jobs:
test-transfer-learning-gpu:
if: github.event.pull_request.draft == false
if: |
github.event.pull_request.draft == false &&
contains(github.event.head_commit.message, '[skip gpu]') == 'false'
runs-on:
- self-hosted
- Linux
Expand Down
Loading