Skip to content

Commit

Permalink
Print diff if pre-commit fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebar committed Apr 18, 2024
1 parent bdcfbde commit 335075b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ jobs:
cmake/*.txt
- name: Detect if enough time has passed since last post-submit run
id: detect-time
if: github.event_name == 'push'
#if: github.event_name == 'push' # TODO: re-enable this once we've verified it works
run: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
REPO_NAME="${{ github.repository }}"
WORKFLOW_ID="$(basename ${{ github.workflow }})"
# ID of integration-tests workflow
WORKFLOW_ID="11678186"
# Fetch the last run time of this workflow
LAST_RUN=$(curl -s \
Expand Down Expand Up @@ -139,6 +140,10 @@ jobs:
# If first run of yapf worked and made changes reset the tree to the original state
git reset --hard
python3 -m pre_commit run --all-files --verbose
- name: Print diff of changes if pre-commit failed
if: failure()
run: |
git diff
Integration-Tests:
needs: Runner-Preparation
runs-on: ${{ matrix.runner }}
Expand Down Expand Up @@ -361,16 +366,17 @@ jobs:
cd python/test/unit
pytest --capture=tee-sys -rfs -vvv -n 32 language operators \
--ignore=language/test_conversions.py \
--ignore=language/test_line_info.py \
--ignore=operators/test_blocksparse.py
--ignore=language/test_line_info.py
# Run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0
TRITON_DISABLE_LINE_INFO=0 python3 -m pytest -vvv -n 8 language/test_line_info.py
# Run runtime tests serially to avoid race condition with cache handling
python3 -m pytest -vvv runtime
# Run hopper tests
python3 -m pytest -vs hopper/test_mixed_io.py \
hopper/test_tma_store_gemm.py
hopper/test_gemm.py \
hopper/test_tma_store_gemm.py \
hopper/test_persistent_warp_specialized_fused-attention.py
- name: Run C++ unittests
run: |
cd python
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/integration-tests.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ jobs:

- name: Detect if enough time has passed since last post-submit run
id: detect-time
if: github.event_name == 'push'
#if: github.event_name == 'push' # TODO: re-enable this once we've verified it works
run: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
REPO_NAME="${{ github.repository }}"
WORKFLOW_ID="$(basename ${{ github.workflow }})"
# ID of integration-tests workflow
WORKFLOW_ID="11678186"

# Fetch the last run time of this workflow
LAST_RUN=$(curl -s \
Expand Down Expand Up @@ -154,6 +155,11 @@ jobs:
git reset --hard
python3 -m pre_commit run --all-files --verbose

- name: Print diff of changes if pre-commit failed
if: failure()
run: |
git diff

Integration-Tests:
needs: Runner-Preparation

Expand Down

0 comments on commit 335075b

Please sign in to comment.