Skip to content

Commit

Permalink
Constantly run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Sep 22, 2024
1 parent 85cf3fc commit c7eb270
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/check-unit-tests-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ concurrency:
cancel-in-progress: true

jobs:
cancel-nightly:
runs-on: ubuntu-latest
steps:
- name: Cancel Nightly Tests
uses: styfle/cancel-workflow-action@0.11.0
with:
workflow_id: nightly-tests.yml
all_but_latest: true

unit-tests-llvm-16-debug:
needs: cancel-nightly
runs-on: X64
steps:
- uses: actions/checkout@v3
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Nightly Tests

on:
schedule:
- cron: '0 0 * * *' # Runs at midnight every day
- cron: '* * * * *' # Always trigger
workflow_dispatch: # Allows manual triggering

concurrency:
group: ci-group
cancel-in-progress: true

jobs:
unit-tests-llvm-19-release:
runs-on: [self-hosted, X64]
Expand All @@ -25,10 +29,7 @@ jobs:
restore-keys: |
nightly-build-
- name: Run Tests Continuously for 6 Hours
- name: Run Intel GPU Unit Tests
shell: bash
run: |
end_time=$(($(date +%s) + 21600)) # Current time + 6 hours
while [ $(date +%s) -lt $end_time ]; do
./scripts/unit_tests.sh release llvm-19 --skip-build --num-tries=10
done
./scripts/unit_tests.sh release llvm-19 --skip-build

0 comments on commit c7eb270

Please sign in to comment.