Skip to content

Commit c4e70cc

Browse files
committed
feat: add daily scheduled full test run
Add a cron schedule trigger (daily at 06:00 UTC) that runs the complete integration test suite against main. Scheduled runs skip the authorization check and always produce the 'all' test matrix, identical to merge_group behavior.
1 parent 2b13af3 commit c4e70cc

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

proposed/integration-test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [main]
66
merge_group: # Run tests in merge queue
77
types: [checks_requested]
8+
schedule:
9+
- cron: '0 6 * * *' # Daily full run at 6:00 AM UTC
810

911
jobs:
1012
authorization-check:
@@ -18,7 +20,7 @@ jobs:
1820
id: auth
1921
uses: strands-agents/devtools/authorization-check@main
2022
with:
21-
skip-check: ${{ github.event_name == 'merge_group' }}
23+
skip-check: ${{ github.event_name == 'merge_group' || github.event_name == 'schedule' }}
2224
username: ${{ github.event.pull_request.user.login || 'invalid' }}
2325
allowed-roles: 'maintain,triage,write,admin'
2426

@@ -33,7 +35,7 @@ jobs:
3335
has-tests: ${{ steps.set-matrix.outputs.has-tests }}
3436
steps:
3537
- name: Detect changed paths
36-
if: github.event_name != 'merge_group'
38+
if: github.event_name == 'pull_request_target'
3739
uses: dorny/paths-filter@v3
3840
id: filter
3941
with:
@@ -77,7 +79,7 @@ jobs:
7779
- name: Build test matrix
7880
id: set-matrix
7981
env:
80-
IS_MERGE_GROUP: ${{ github.event_name == 'merge_group' }}
82+
IS_MERGE_GROUP: ${{ github.event_name == 'merge_group' || github.event_name == 'schedule' }}
8183
FILTER_RUN_ALL: ${{ steps.filter.outputs.run-all }}
8284
FILTER_MODELS: ${{ steps.filter.outputs.models }}
8385
FILTER_BEDROCK: ${{ steps.filter.outputs.bedrock-specific }}
@@ -99,7 +101,7 @@ jobs:
99101
}
100102
101103
if [ "$IS_MERGE_GROUP" = "true" ] || [ "$FILTER_RUN_ALL" = "true" ]; then
102-
# Run ALL tests for merge queue or when foundational code changes
104+
# Run ALL tests for merge queue, scheduled runs, or when foundational code changes
103105
# (types, handlers, telemetry, CI config, test infra, pyproject.toml)
104106
add_group "all" "tests_integ"
105107
else

0 commit comments

Comments
 (0)