Skip to content

Commit

Permalink
adjust nightly test sdcheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Sep 28, 2024
1 parent 814e8f3 commit 5f2745c
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,29 @@ name: Nightly Tests Intel GPUs
on:
schedule:
- cron: '* * * * *'
workflow_dispatch: # Allows manual triggering

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
check-queue:
runs-on: ubuntu-latest
outputs:
should_run: ${{ steps.check.outputs.should_run }}
steps:
- name: Check workflow status
id: check
run: |
queued_or_in_progress=$(gh run list --workflow "${{ github.workflow }}" --json status --jq '.[] | select(.status=="queued" or .status=="in_progress") | .status' | wc -l)
echo "Number of queued or in-progress runs: $queued_or_in_progress"
if [ "$queued_or_in_progress" -eq "0" ]; then
echo "should_run=true" >> $GITHUB_OUTPUT
else
echo "should_run=false" >> $GITHUB_OUTPUT
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

unit-tests-llvm-19-release:
needs: check-queue
if: needs.check-queue.outputs.should_run == 'true'
runs-on: [self-hosted, X64]
steps:
- name: Checkout repository
Expand All @@ -23,3 +38,4 @@ jobs:
shell: bash
run: |
cp -r /space/chipStar/build ./ && ./scripts/unit_tests.sh release llvm-19 --skip-build --num-tries 10

0 comments on commit 5f2745c

Please sign in to comment.