File tree 2 files changed +25
-6
lines changed
2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 1
- name : nightly-flake
1
+ # The nightly-gauntlet runs tests that are either too flaky or too slow to block
2
+ # every PR.
3
+ name : nightly-gauntlet
2
4
on :
3
5
schedule :
4
6
# Every day at midnight
5
7
- cron : " 0 0 * * *"
6
8
workflow_dispatch :
7
- # For testing purposes
8
- # push:
9
- # paths:
10
- # - ".github/workflows/nightly-flake.yaml"
9
+ push :
10
+ branch :
11
+ - nightly-gauntlet
11
12
jobs :
12
- test- go-race :
13
+ go-race :
13
14
# While GitHub's toaster runners are likelier to flake, we want consistency
14
15
# between this environment and the regular test environment for DataDog
15
16
# statistics and to only show real workflow threats.
38
39
if : always()
39
40
with :
40
41
api-key : ${{ secrets.DATADOG_API_KEY }}
42
+
43
+ go-timing :
44
+ # We run these tests with p=1 so we don't need a lot of compute.
45
+ runs-on : " buildjet-2vcpu-ubuntu-2204"
46
+ timeout-minutes : 10
47
+ steps :
48
+ - uses : actions/checkout@v3
49
+
50
+ - uses : ./.github/actions/setup-go
51
+ - name : Run Tests
52
+ run : |
53
+ gotestsum --junitfile="gotests.xml" -- --tags="timing" -p=1 -run='_Timing/' ./...
54
+
55
+ - uses : ./.github/actions/upload-datadog
56
+ if : always()
57
+ with :
58
+ api-key : ${{ secrets.DATADOG_API_KEY }}
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ func Test_Runner(t *testing.T) {
109
109
110
110
//nolint:paralleltest // Measures timing as part of the test.
111
111
func Test_Runner_Timing (t * testing.T ) {
112
+ testutil .SkipIfNotTiming (t )
112
113
//nolint:paralleltest
113
114
t .Run ("Direct+Hold" , func (t * testing.T ) {
114
115
client , agentID := setupRunnerTest (t )
You can’t perform that action at this time.
0 commit comments