Skip to content

Commit 9ec1fcf

Browse files
authored
ci: move timing tests to nightly gauntlet (#7910)
Test_Runner_Timing was one of our flakiest tests before.
1 parent fcca639 commit 9ec1fcf

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

.github/workflows/nightly-flake.yaml renamed to .github/workflows/nightly-gauntlet.yaml

+24-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
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
24
on:
35
schedule:
46
# Every day at midnight
57
- cron: "0 0 * * *"
68
workflow_dispatch:
7-
# For testing purposes
8-
# push:
9-
# paths:
10-
# - ".github/workflows/nightly-flake.yaml"
9+
push:
10+
branch:
11+
- nightly-gauntlet
1112
jobs:
12-
test-go-race:
13+
go-race:
1314
# While GitHub's toaster runners are likelier to flake, we want consistency
1415
# between this environment and the regular test environment for DataDog
1516
# statistics and to only show real workflow threats.
@@ -38,3 +39,20 @@ jobs:
3839
if: always()
3940
with:
4041
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 }}

scaletest/agentconn/run_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ func Test_Runner(t *testing.T) {
109109

110110
//nolint:paralleltest // Measures timing as part of the test.
111111
func Test_Runner_Timing(t *testing.T) {
112+
testutil.SkipIfNotTiming(t)
112113
//nolint:paralleltest
113114
t.Run("Direct+Hold", func(t *testing.T) {
114115
client, agentID := setupRunnerTest(t)

0 commit comments

Comments
 (0)