-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
startupGracePeriod
in wait-list (#821)
Resolves #820 There are many changes to apply new option and the semantics in wait-list Notable changes are listed as follows * Use TC39 `Temporal` for duration unit, but keep current settings `wait-seconds-before-first-polling` and `min-interval-seconds` for compatibility * Started to adding reporting unit tests without snapshots, using snapshots is hard to be updated * Mark the new option `startupGracePeriod` as required and apply for all items in wait-list with small seconds * Refine complex loggers by adding severity and structured
- Loading branch information
Showing
25 changed files
with
38,742 additions
and
1,612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: GH-820 - Grace Period | ||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- '**GH-820**' | ||
- 'action.yml' | ||
- 'dist/**' | ||
pull_request: | ||
paths: | ||
- '**GH-820**' | ||
- 'action.yml' | ||
- 'dist/**' | ||
workflow_dispatch: | ||
|
||
# Disable all permissions in workflow global as to setup clean room | ||
# However PRs will have read permissions because this project is on a public repository | ||
permissions: {} | ||
|
||
jobs: | ||
quickstarter-success: | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- run: echo ':)' | ||
intermediate: | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- run: sleep 15 | ||
slowstarter-success: | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 5 | ||
needs: [intermediate] | ||
steps: | ||
- run: echo ':)' | ||
slowstarter-fail: | ||
if: github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 5 | ||
needs: [intermediate] | ||
steps: | ||
- run: | | ||
echo ':<' | ||
false | ||
wait-success: | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
- uses: ./ | ||
with: | ||
retry-method: 'equal_intervals' | ||
wait-seconds-before-first-polling: '0' | ||
min-interval-seconds: '5' | ||
attempt-limits: '100' | ||
wait-list: | | ||
[ | ||
{ | ||
"workflowFile": "GH-820-graceperiod.yml", | ||
"optional": false, | ||
"jobName": "quickstarter-success" | ||
}, | ||
{ | ||
"workflowFile": "GH-820-graceperiod.yml", | ||
"optional": false, | ||
"jobName": "slowstarter-success", | ||
"startupGracePeriod": { "seconds": 60 } | ||
} | ||
] | ||
wait-fail: | ||
if: github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
- uses: ./ | ||
with: | ||
retry-method: 'equal_intervals' | ||
wait-seconds-before-first-polling: '0' | ||
min-interval-seconds: '5' | ||
attempt-limits: '100' | ||
wait-list: | | ||
[ | ||
{ | ||
"workflowFile": "GH-820-graceperiod.yml", | ||
"optional": false, | ||
"jobName": "quickstarter-success" | ||
}, | ||
{ | ||
"workflowFile": "GH-820-graceperiod.yml", | ||
"optional": false, | ||
"jobName": "slowstarter-fail", | ||
"startupGracePeriod": { "seconds": 60 } | ||
} | ||
] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.