Skip to content

Commit 8241f22

Browse files
committed
ci: use -silent in more jobs that produce a lot of OK lines normally (for test-cleancode, test-self, build-examples, build-tools)
1 parent f83c8bf commit 8241f22

11 files changed

Lines changed: 78 additions & 82 deletions

File tree

‎.github/workflows/alpine.test.sh‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ du -s .
1010

1111
ls -lat
1212

13-
##./v test-all
13+
##./v -silent test-all
1414

1515
## try running the known failing tests first to get faster feedback
16-
./v test vlib/builtin/string_test.v vlib/strings/builder_test.v
16+
./v vlib/builtin/string_test.v
17+
./v vlib/strings/builder_test.v
1718

18-
./v test-cleancode
19+
./v -silent test-cleancode
1920

20-
./v test-self
21+
./v -silent test-self
2122

2223
./v build-vbinaries
2324

‎.github/workflows/debug.yml‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,14 @@ jobs:
2727
./v cmd/tools/test_if_v_test_system_works.v
2828
./cmd/tools/test_if_v_test_system_works
2929
- name: All code is formatted
30-
run: ./v test-cleancode
30+
run: ./v -silent test-cleancode
3131
- name: Self tests
32-
run: |
33-
./v -cg cmd\tools\vtest-self.v
34-
./v test-self
32+
run: ./v -silent test-self
3533
- name: Test v->js
3634
run: ./v -o hi.js examples/js_hello_world.v && node hi.js
3735
- name: Test v binaries
3836
run: ./v build-vbinaries
3937
- name: Build examples
40-
run: ./v build-examples
38+
run: ./v -silent build-examples
4139
- name: v2 self compilation
4240
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v

‎.github/workflows/docker_ci.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
- name: Build V
5050
run: CC=gcc make
5151
- name: All code is formatted
52-
run: VJOBS=1 ./v test-cleancode
52+
run: ./v -silent test-cleancode
5353
- name: Run only essential tests
54-
run: VTEST_JUST_ESSENTIAL=1 ./v test-self
54+
run: VTEST_JUST_ESSENTIAL=1 ./v -silent test-self
5555

5656
docker-ubuntu-musl:
5757
runs-on: ubuntu-24.04
@@ -74,6 +74,6 @@ jobs:
7474
./v cmd/tools/test_if_v_test_system_works.v
7575
./cmd/tools/test_if_v_test_system_works
7676
- name: All code is formatted
77-
run: ./v test-cleancode
77+
run: ./v -silent test-cleancode
7878
- name: Test V fixed tests
79-
run: ./v test-self vlib
79+
run: ./v -silent test-self vlib

‎.github/workflows/other_ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ jobs:
5757
- name: Build local v
5858
run: make -j4 && ./v symlink
5959
- name: v test-cleancode
60-
run: ./v test-cleancode
60+
run: ./v -silent test-cleancode
6161
- name: v test-fmt
62-
run: ./v test-fmt
62+
run: ./v -silent test-fmt
6363

6464
performance-regressions:
6565
runs-on: ubuntu-24.04

‎.github/workflows/periodic_ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
if: runner.os == 'Windows'
3838
run: ./make.bat -msvc && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor
3939
- name: Test
40-
run: ./v -d network test-self vlib/net
40+
run: ./v -d network -silent test-self vlib/net

‎.github/workflows/sanitized_ci.yml‎

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
- name: Build V
8989
run: make -j4 && ./v symlink
9090
- name: Ensure code is well formatted
91-
run: ./v test-cleancode
91+
run: ./v -silent test-cleancode
9292
- name: Install dependencies
9393
run: |
9494
./v retry -- sudo apt update
@@ -100,9 +100,9 @@ jobs:
100100
- name: Self tests (-fsanitize=undefined)
101101
run: |
102102
./v -cflags -fsanitize=undefined -o v2 cmd/v
103-
./v2 -cflags -fsanitize=undefined test-self vlib
103+
./v2 -cflags -fsanitize=undefined -silent test-self vlib
104104
- name: Build examples (V compiled with -fsanitize=undefined)
105-
run: ./v2 build-examples
105+
run: ./v2 -silent build-examples
106106

107107
sanitize-undefined-gcc:
108108
runs-on: ubuntu-22.04
@@ -117,7 +117,7 @@ jobs:
117117
- name: Build V
118118
run: make -j4 && ./v symlink
119119
- name: Ensure code is well formatted
120-
run: ./v test-cleancode
120+
run: ./v -silent test-cleancode
121121
- name: Install dependencies
122122
run: |
123123
./v retry -- sudo apt update
@@ -128,9 +128,9 @@ jobs:
128128
- name: Self tests (-fsanitize=undefined)
129129
run: |
130130
./v -cflags -fsanitize=undefined -o v2 cmd/v
131-
./v2 -cflags -fsanitize=undefined test-self vlib
131+
./v2 -cflags -fsanitize=undefined -silent test-self vlib
132132
- name: Build examples (V compiled with -fsanitize=undefined)
133-
run: ./v2 build-examples
133+
run: ./v2 -silent build-examples
134134

135135
tests-sanitize-address-clang:
136136
runs-on: ubuntu-22.04
@@ -146,7 +146,7 @@ jobs:
146146
- name: Build V
147147
run: make -j4 && ./v symlink
148148
- name: Ensure code is well formatted
149-
run: ./v test-cleancode
149+
run: ./v -silent test-cleancode
150150
- name: Install dependencies
151151
run: |
152152
./v retry -- sudo apt update
@@ -156,13 +156,13 @@ jobs:
156156
- name: Recompile V with -cstrict
157157
run: ./v -cg -cstrict -o v cmd/v
158158
- name: Self tests (-fsanitize=address)
159-
run: ./v -cflags -fsanitize=address,pointer-compare,pointer-subtract test-self vlib
159+
run: ./v -cflags -fsanitize=address,pointer-compare,pointer-subtract -silent test-self vlib
160160
- name: Self tests (V compiled with -fsanitize=address)
161161
run: |
162162
./v -cflags -fsanitize=address -o v cmd/v
163-
./v -cc tcc test-self -asan-compiler vlib
163+
./v -cc tcc -silent test-self -asan-compiler vlib
164164
- name: Build examples (V compiled with -fsanitize=address)
165-
run: ./v build-examples
165+
run: ./v -silent build-examples
166166

167167
sanitize-address-msvc:
168168
runs-on: windows-2019
@@ -180,13 +180,13 @@ jobs:
180180
.\make.bat -msvc
181181
.\v.exe self
182182
- name: Ensure code is well formatted
183-
run: .\v.exe test-cleancode
183+
run: .\v.exe -silent test-cleancode
184184
# - name: Install dependencies
185185
# run: |
186186
# .\v.exe setup-freetype
187187
# .\.github\workflows\windows-install-sqlite.bat
188188
# - name: Self tests (/fsanitize=address) # TODO:
189-
# run: .\v.exe -cflags "/fsanitize=address" test-self vlib
189+
# run: .\v.exe -cflags "/fsanitize=address" -silent test-self vlib
190190

191191
sanitize-address-gcc:
192192
runs-on: ubuntu-22.04
@@ -202,7 +202,7 @@ jobs:
202202
- name: Build V
203203
run: make -j4 && ./v symlink
204204
- name: Ensure code is well formatted
205-
run: ./v test-cleancode
205+
run: ./v -silent test-cleancode
206206
- name: Install dependencies
207207
run: |
208208
./v retry -- sudo apt update
@@ -212,13 +212,13 @@ jobs:
212212
- name: Recompile V with -cstrict
213213
run: ./v -cg -cstrict -o v cmd/v
214214
- name: Self tests (-fsanitize=address)
215-
run: ./v -cflags -fsanitize=address test-self vlib
215+
run: ./v -cflags -fsanitize=address -silent test-self vlib
216216
- name: Self tests (V compiled with -fsanitize=address)
217217
run: |
218218
./v -cflags -fsanitize=address,pointer-compare,pointer-subtract -o v cmd/v
219-
./v -cc tcc test-self -asan-compiler vlib
219+
./v -cc tcc -silent test-self -asan-compiler vlib
220220
- name: Build examples (V compiled with -fsanitize=address)
221-
run: ./v build-examples
221+
run: ./v -silent build-examples
222222

223223
sanitize-memory-clang:
224224
runs-on: ubuntu-22.04
@@ -232,7 +232,7 @@ jobs:
232232
- name: Build V
233233
run: make -j4 && ./v symlink
234234
- name: Ensure code is well formatted
235-
run: ./v test-cleancode
235+
run: ./v -silent test-cleancode
236236
- name: Install dependencies
237237
run: |
238238
./v retry -- sudo apt update
@@ -242,10 +242,10 @@ jobs:
242242
- name: Recompile V with clang and -cstrict
243243
run: ./v -cc clang -cg -cstrict -o v cmd/v
244244
- name: Self tests (-fsanitize=memory)
245-
run: ./v -cflags -fsanitize=memory test-self -msan-compiler vlib
245+
run: ./v -cflags -fsanitize=memory -silent test-self -msan-compiler vlib
246246
- name: Self tests (V compiled with -fsanitize=memory)
247247
run: |
248248
./v -cflags -fsanitize=memory -o v cmd/v
249-
./v -cc tcc test-self -msan-compiler vlib
249+
./v -cc tcc -silent test-self -msan-compiler vlib
250250
- name: Build examples (V compiled with -fsanitize=memory)
251-
run: ./v build-examples
251+
run: ./v -silent build-examples

‎.github/workflows/tools_ci.yml‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@ jobs:
3838
- name: Code in cmd/ is formatted
3939
run: ./v fmt -verify cmd/
4040
- name: Check build-tools
41-
run: ./v -N -W -check build-tools
41+
run: ./v -silent -N -W -check build-tools
4242
- name: Test tools
43-
run: ./v test-self cmd
43+
run: ./v -silent test-self cmd
4444
- name: Test tools (-cstrict)
4545
if: ${{ matrix.cc != 'tcc' }}
46-
run: ./v -W -cstrict test-self cmd
46+
run: ./v -silent -W -cstrict test-self cmd
4747
- name: Test sanitized
4848
if: ${{ matrix.cc != 'tcc' }}
4949
run: |
5050
export VNATIVE_SKIP_LIBC_VV=1
5151
if [[ ${{ matrix.cc }} == "clang" ]]; then
52-
cmd="./v -cc clang -cflags -fsanitize=undefined test-self -ubsan-compiler cmd"
52+
cmd="./v -silent -cc clang -cflags -fsanitize=undefined test-self -ubsan-compiler cmd"
5353
echo $cmd && $cmd
54-
cmd="./v -cc clang -cflags -fsanitize=memory test-self -msan-compiler cmd"
54+
cmd="./v -silent -cc clang -cflags -fsanitize=memory test-self -msan-compiler cmd"
5555
echo $cmd && $cmd
5656
else
57-
cmd="./v -cc gcc -cflags -fsanitize=thread test-self cmd"
57+
cmd="./v -silent -cc gcc -cflags -fsanitize=thread test-self cmd"
5858
echo $cmd && $cmd
59-
cmd="./v -cc gcc -cflags -fsanitize=address,leak,undefined,shift,shift-exponent,shift-base,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,bounds-strict,alignment,object-size,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr test-self -asan-compiler cmd/tools"
59+
cmd="./v -silent -cc gcc -cflags -fsanitize=address,leak,undefined,shift,shift-exponent,shift-base,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,bounds-strict,alignment,object-size,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr test-self -asan-compiler cmd/tools"
6060
echo $cmd && $cmd
61-
## cmd="./v -cc gcc -cflags -fsanitize=kernel-address test-self -asan-compiler cmd"
61+
## cmd="./v -silent -cc gcc -cflags -fsanitize=kernel-address test-self -asan-compiler cmd"
6262
## echo $cmd && $cmd
6363
fi
6464
@@ -75,11 +75,11 @@ jobs:
7575
- name: Build V
7676
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
7777
- name: Check build-tools
78-
run: ./v -N -W -check build-tools
78+
run: ./v -silent -N -W -check build-tools
7979
- name: Test tools
80-
run: ./v test-self cmd
80+
run: ./v -silent test-self cmd
8181
- name: Test tools (-cstrict)
82-
run: ./v -W -cstrict test-self cmd
82+
run: ./v -silent -W -cstrict test-self cmd
8383

8484
tools-windows:
8585
runs-on: windows-2019
@@ -94,12 +94,12 @@ jobs:
9494
- name: Build V
9595
run: ./make.bat -${{ matrix.cc }} && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor
9696
- name: Check build tools
97-
run: ./v -N -W -check build-tools
97+
run: ./v -silent -N -W -check build-tools
9898
- name: Test tools
99-
run: ./v test-self cmd
99+
run: ./v -silent test-self cmd
100100
- name: Test tools (-cstrict)
101101
if: ${{ matrix.cc == 'msvc' }}
102-
run: ./v -W -cstrict test-self cmd
102+
run: ./v -silent -W -cstrict test-self cmd
103103

104104
tools-docker-ubuntu-musl:
105105
runs-on: ubuntu-24.04
@@ -124,8 +124,8 @@ jobs:
124124
./v cmd/tools/test_if_v_test_system_works.v
125125
./cmd/tools/test_if_v_test_system_works
126126
- name: Check build tools
127-
run: ./v -N -W -check build-tools
127+
run: ./v -silent -N -W -check build-tools
128128
- name: Test tools
129-
run: ./v test-self cmd
129+
run: ./v -silent test-self cmd
130130
- name: Test tools (-cstrict)
131-
run: ./v -W -cstrict test-self cmd
131+
run: ./v -silent -W -cstrict test-self cmd

‎.github/workflows/wasm_backend_ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ jobs:
6161
if: runner.os == 'Windows'
6262
run: ./make.bat
6363
- name: Build examples
64-
run: ./v build-examples
64+
run: ./v -silent build-examples
6565
- name: Setup Wasmer
6666
uses: wasmerio/setup-wasmer@v3.1
6767
- name: Test the WASM backend
68-
run: ./v test vlib/v/gen/wasm/tests/
68+
run: ./v -silent test vlib/v/gen/wasm/tests/

0 commit comments

Comments
 (0)