Skip to content

Commit 00a7a9d

Browse files
committed
reduce frequency of job runs
Signed-off-by: jwilber <jwilber@nvidia.com>
1 parent afd48cd commit 00a7a9d

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/convergence-tests.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,32 @@ on:
3232
required: false
3333
type: string
3434
schedule:
35-
- cron: "0 8 * * 1,3" # Mon/Wed at 1am PST (esm2)
36-
- cron: "0 8 * * 2,4" # Tue/Thu at 1am PST (codonfm)
35+
- cron: "0 8 * * 0" # Sun 00:00 PST (Sat night midnight), bi-weekly gated in job
3736

3837
jobs:
38+
# GitHub cron has no native bi-weekly, so gate on even ISO week number.
39+
gate-biweekly:
40+
runs-on: ubuntu-latest
41+
outputs:
42+
proceed: ${{ steps.check.outputs.proceed }}
43+
steps:
44+
- id: check
45+
run: |
46+
if [ "${{ github.event_name }}" != "schedule" ]; then
47+
echo "proceed=true" >> "$GITHUB_OUTPUT"
48+
elif [ $((10#$(date -u +%V) % 2)) -eq 0 ]; then
49+
echo "proceed=true" >> "$GITHUB_OUTPUT"
50+
else
51+
echo "proceed=false" >> "$GITHUB_OUTPUT"
52+
fi
53+
3954
submit-lepton-jobs:
55+
needs: gate-biweekly
56+
if: needs.gate-biweekly.outputs.proceed == 'true'
4057
runs-on: ubuntu-latest
4158
strategy:
4259
matrix:
43-
# Mon/Wed runs esm2, Tue/Thu runs codonfm
44-
model_config: ${{ github.event_name == 'schedule' && github.event.schedule == '0 8 * * 2,4' && fromJSON('["codonfm_ptl_te"]') || github.event_name == 'schedule' && github.event.schedule == '0 8 * * 1,3' && fromJSON('["esm2_native_te_650m", "esm2_native_te_15b"]') || fromJSON(format('["{0}"]', github.event.inputs.model_config)) }}
60+
model_config: ${{ github.event_name == 'schedule' && fromJSON('["esm2_native_te_650m", "esm2_native_te_15b", "codonfm_ptl_te"]') || fromJSON(format('["{0}"]', github.event.inputs.model_config)) }}
4561
fail-fast: false
4662
steps:
4763
- name: Checkout

.github/workflows/scdl-performance-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
required: false
1414
type: string
1515
schedule:
16-
- cron: "0 9 * * *" # everyday at 1am PST
16+
- cron: "0 22 * * 5" # Fridays at 2pm PST (weekly)
1717

1818
jobs:
1919
submit-lepton-jobs:

0 commit comments

Comments
 (0)