Skip to content

Commit 73370b1

Browse files
authored
Merge pull request #2974 from ERGO-Code/bzl-san
Bazel sanitizer test action
2 parents 12dba7b + 4350a78 commit 73370b1

2 files changed

Lines changed: 62 additions & 59 deletions

File tree

.github/workflows/action-sanitizers-bazel.yml

Lines changed: 61 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
asan:
8-
runs-on: ${{ matrix.os }}
9-
strategy:
10-
matrix:
11-
os: [ubuntu-latest]
7+
# asan:
8+
# runs-on: ${{ matrix.os }}
9+
# strategy:
10+
# matrix:
11+
# os: [ubuntu-latest]
1212

13-
steps:
14-
- uses: actions/checkout@v4
13+
# steps:
14+
# - uses: actions/checkout@v4
1515

16-
- uses: bazelbuild/setup-bazelisk@v3
16+
# - uses: bazelbuild/setup-bazelisk@v3
1717

18-
- name: Bazel clean
19-
run: bazel clean
18+
# - name: Bazel clean
19+
# run: bazel clean
2020

21-
- name: Bazel build
22-
run: bazel build -c dbg --config=asan //...
21+
# - name: Bazel build
22+
# run: bazel build -c dbg --config=asan //...
2323

24-
- name: Bazel test
25-
run: bazel test -c dbg --config=asan --runs_per_test 3000 //...
24+
# - name: Bazel test
25+
# run: bazel test -c dbg --config=asan --runs_per_test 3 //...
2626

27-
# - name: Upload bazel-testlogs
28-
# uses: actions/upload-artifact@v4
29-
# with:
30-
# name: bazel-testlogs-asan
31-
# path: bazel-testlogs/
27+
# # - name: Upload bazel-testlogs
28+
# # uses: actions/upload-artifact@v4
29+
# # with:
30+
# # name: bazel-testlogs-asan
31+
# # path: bazel-testlogs/
3232

3333
tsan:
3434
runs-on: ${{ matrix.os }}
@@ -48,62 +48,65 @@ jobs:
4848
run: bazel build -c dbg --config=tsan //...
4949

5050
- name: Bazel test
51-
run: bazel test -c dbg --config=tsan --runs_per_test 3000 //...
51+
run: bazel test -c dbg --config=tsan --runs_per_test 3 //:TestMipSolver
52+
53+
- name: Bazel test 2
54+
run: bazel test -c dbg --config=tsan --runs_per_test 3 //:TestHighsParallel
5255

5356
# - name: Upload bazel-testlogs
5457
# uses: actions/upload-artifact@v4
5558
# with:
5659
# name: bazel-testlogs-tsan
5760
# path: bazel-testlogs/
5861

59-
lsan:
60-
runs-on: ${{ matrix.os }}
61-
strategy:
62-
matrix:
63-
os: [ubuntu-latest]
62+
# lsan:
63+
# runs-on: ${{ matrix.os }}
64+
# strategy:
65+
# matrix:
66+
# os: [ubuntu-latest]
6467

65-
steps:
66-
- uses: actions/checkout@v4
68+
# steps:
69+
# - uses: actions/checkout@v4
6770

68-
- uses: bazelbuild/setup-bazelisk@v3
71+
# - uses: bazelbuild/setup-bazelisk@v3
6972

70-
- name: Bazel clean
71-
run: bazel clean
73+
# - name: Bazel clean
74+
# run: bazel clean
7275

73-
- name: Bazel build
74-
run: bazel build -c dbg --config=lsan //...
76+
# - name: Bazel build
77+
# run: bazel build -c dbg --config=lsan //...
7578

76-
- name: Bazel test
77-
run: bazel test -c dbg --config=lsan --runs_per_test 3000 //...
79+
# - name: Bazel test
80+
# run: bazel test -c dbg --config=lsan --runs_per_test 3 //...
7881

79-
# - name: Upload bazel-testlogs
80-
# uses: actions/upload-artifact@v4
81-
# with:
82-
# name: bazel-testlogs-lsan
83-
# path: bazel-testlogs/
82+
# # - name: Upload bazel-testlogs
83+
# # uses: actions/upload-artifact@v4
84+
# # with:
85+
# # name: bazel-testlogs-lsan
86+
# # path: bazel-testlogs/
8487

85-
ubsan:
86-
runs-on: ${{ matrix.os }}
87-
strategy:
88-
matrix:
89-
os: [ubuntu-latest]
88+
# ubsan:
89+
# runs-on: ${{ matrix.os }}
90+
# strategy:
91+
# matrix:
92+
# os: [ubuntu-latest]
9093

91-
steps:
92-
- uses: actions/checkout@v4
94+
# steps:
95+
# - uses: actions/checkout@v4
9396

94-
- uses: bazelbuild/setup-bazelisk@v3
97+
# - uses: bazelbuild/setup-bazelisk@v3
9598

96-
- name: Bazel clean
97-
run: bazel clean
99+
# - name: Bazel clean
100+
# run: bazel clean
98101

99-
- name: Bazel build
100-
run: bazel build -c dbg --config=ubsan //...
102+
# - name: Bazel build
103+
# run: bazel build -c dbg --config=ubsan //...
101104

102-
- name: Bazel test
103-
run: bazel test -c dbg --config=ubsan --runs_per_test 3000 //...
105+
# - name: Bazel test
106+
# run: bazel test -c dbg --config=ubsan --runs_per_test 3000 //...
104107

105-
# - name: Upload bazel-testlogs
106-
# uses: actions/upload-artifact@v4
107-
# with:
108-
# name: bazel-testlogs-ubsan
109-
# path: bazel-testlogs/
108+
# # - name: Upload bazel-testlogs
109+
# # uses: actions/upload-artifact@v4
110+
# # with:
111+
# # name: bazel-testlogs-ubsan
112+
# # path: bazel-testlogs/

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ TEST_NAMES = [
202202
"TestHighsHessian",
203203
"TestHighsIntegers",
204204
"TestHighsModel",
205-
# "TestHighsParallel",
205+
"TestHighsParallel",
206206
"TestHighsRbTree",
207207
"TestHSet",
208208
"TestICrash",

0 commit comments

Comments
 (0)