Skip to content

Commit 818edaf

Browse files
committed
github: consolidate instrumented nightly runs
This change adds testrace to the asan/msan runs and adds automatic issue posting.
1 parent 1ee9410 commit 818edaf

File tree

1 file changed

+61
-16
lines changed

1 file changed

+61
-16
lines changed

.github/workflows/nightly-instrumented.yaml

Lines changed: 61 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,77 @@
1-
name: Sanitizers
1+
name: Nightly instrumented tests
22

33
on:
44
schedule:
5-
- cron: "0 0 * * *" # Midnight UTC, daily.
5+
- cron: "0 7 * * *" # 7am UTC, daily.
6+
workflow_dispatch:
67

78
jobs:
9+
linux-race:
10+
name: linux-race
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v4
17+
with:
18+
go-version: "1.23"
19+
20+
- run: GOTRACEBACK=all make testrace TAGS=
21+
22+
- name: Post issue on failure
23+
if: failure()
24+
id: create-or-update-unique-issue
25+
uses: ./.github/actions/post-issue
26+
with:
27+
title: "nightly testrace failed"
28+
body: "The nightly testrace run failed on ${{ github.sha }}. Please review the run [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})."
29+
unique-title-includes: "nightly testrace failed"
30+
labels: "C-test-failure"
31+
832
linux-asan:
9-
name: go-linux-asan
33+
name: linux-asan
1034
runs-on: ubuntu-latest
1135
steps:
12-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v4
37+
38+
- name: Set up Go
39+
uses: actions/setup-go@v4
40+
with:
41+
go-version: "1.23"
1342

14-
- name: Set up Go
15-
uses: actions/setup-go@v2
16-
with:
17-
go-version: "1.23"
43+
- run: make testasan
1844

19-
- run: make testasan
45+
- name: Post issue on failure
46+
if: failure()
47+
id: create-or-update-unique-issue
48+
uses: ./.github/actions/post-issue
49+
with:
50+
title: "nightly testasan failed"
51+
body: "The nightly asan test run failed on ${{ github.sha }}. Please review the run [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})."
52+
unique-title-includes: "nightly testasan failed"
53+
labels: "C-test-failure"
2054

2155
linux-msan:
22-
name: go-linux-msan
56+
name: linux-msan
2357
runs-on: ubuntu-latest
2458
steps:
25-
- uses: actions/checkout@v2
59+
- uses: actions/checkout@v4
60+
61+
- name: Set up Go
62+
uses: actions/setup-go@v4
63+
with:
64+
go-version: "1.23"
65+
66+
- run: make testmsan
2667

27-
- name: Set up Go
28-
uses: actions/setup-go@v2
29-
with:
30-
go-version: "1.23"
68+
- name: Post issue on failure
69+
if: failure()
70+
id: create-or-update-unique-issue
71+
uses: ./.github/actions/post-issue
72+
with:
73+
title: "nightly testmsan failed"
74+
body: "The nightly msan test run failed on ${{ github.sha }}. Please review the run [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})."
75+
unique-title-includes: "nightly testmsan failed"
76+
labels: "C-test-failure"
3177

32-
- run: make testmsan

0 commit comments

Comments
 (0)