Skip to content

Commit

Permalink
try this (I want fails not in expected fails to flag a test failure)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Nov 19, 2024
1 parent 8c1d902 commit 6a13ce3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/derecho.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ on:
types: [ labeled ]

jobs:

setup:
if: ${{ github.event.label.name == 'run-pr-tests' }}
runs-on: hpc-runner

steps:
- name: Prepare system
run: |
rm $SCRATCH/cs.s*
rm -fr $SCRATCH/SMS_Ld2*
rm -fr $GITHUB_WORKSPACE/*
- name: Checkout code
uses: actions/checkout@v4
- name: Run git-fleximod
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
if: always()
if: success() || failure()
env:
CC: mpicc
FC: mpifort
Expand All @@ -28,4 +28,7 @@ jobs:
- name: check status
run: |
cd $SCRATCH
./cs.status.${GITHUB_RUN_ID} --expected-fails-file $GITHUB_WORKSPACE/cime_config/testfiles/ExpectedTestFails.xml
./cs.status.${GITHUB_RUN_ID} --expected-fails-file $GITHUB_WORKSPACE/cime_config/testfiles/ExpectedTestFails.xml --summary | grep FAIL
if [ $? == 0 ]; then
return -1
fi
8 changes: 4 additions & 4 deletions cime_config/testfiles/ExpectedTestFails.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
</phase>
</test>
-->
<test name="SMS_D.1x1_brazil.I1850Clm60BgcCrop.derecho_gnu.clm-mimics_matrixcn">
<phase name="RUN">
<test name="SMS_Ld2.ne30pg3_t232.BMT1850.derecho_nvhpc.allactive-defaultio">
<phase name="MODEL_BUILD">
<status>FAIL</status>
<issue>#2780</issue>
<comment>This file requires at least one entry</comment>
<issue></issue>
<comment></comment>
</phase>
</test>

Expand Down

0 comments on commit 6a13ce3

Please sign in to comment.