-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: introduce nightly run for robustness
Signed-off-by: Wei Fu <fuweid89@gmail.com>
- Loading branch information
Showing
4 changed files
with
61 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Robustness Nightly | ||
permissions: read-all | ||
on: | ||
schedule: | ||
- cron: '25 9 * * *' # runs every day at 09:25 UTC | ||
# workflow_dispatch enables manual testing of this job by maintainers | ||
workflow_dispatch: | ||
|
||
jobs: | ||
main: | ||
# GHA has a maximum amount of 6h execution time, we try to get done within 3h | ||
uses: ./.github/workflows/robustness_template.yaml | ||
with: | ||
count: 100 | ||
testTimeout: 200m | ||
runs-on: "['ubuntu-latest-8-cores']" |
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,38 @@ | ||
--- | ||
name: Reusable Robustness Workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
count: | ||
required: true | ||
type: number | ||
testTimeout: | ||
required: false | ||
type: string | ||
default: '30m' | ||
runs-on: | ||
required: false | ||
type: string | ||
default: "['ubuntu-latest']" | ||
permissions: read-all | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 210 | ||
runs-on: ${{ fromJson(inputs.runs-on) }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: goversion | ||
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ steps.goversion.outputs.goversion }} | ||
- name: test-robustness | ||
run: | | ||
set -euo pipefail | ||
make gofail-enable | ||
# build bbolt with failpoint | ||
go install ./cmd/bbolt | ||
sudo -E PATH=$PATH make ROBUSTNESS_TESTFLAGS="--count ${{ inputs.count }} --timeout ${{ inputs.testTimeout }} -failfast" test-robustness |
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