ci: use -silent for the longer test runs (suppress most OK lines, to reduce scrolling on failure)

This commit is contained in:
Delyan Angelov 2025-02-24 09:35:16 +02:00
parent 0f58a02c14
commit 252df04ceb
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
3 changed files with 30 additions and 23 deletions

View file

@ -29,19 +29,19 @@ fn build_fast_script() {
} }
fn check_math() { fn check_math() {
exec('v test vlib/math') exec('v -silent test vlib/math')
println('Test the math module, using only the pure V versions,') println('Test the math module, using only the pure V versions,')
println(' without the .c.v overrides.') println(' without the .c.v overrides.')
exec('v -exclude @vlib/math/*.c.v test vlib/math') exec('v -silent -exclude @vlib/math/*.c.v test vlib/math')
} }
fn check_compress() { fn check_compress() {
exec('v test vlib/compress') exec('v -silent test vlib/compress')
} }
fn run_essential_tests() { fn run_essential_tests() {
if common.is_github_job { if common.is_github_job {
exec('VTEST_JUST_ESSENTIAL=1 v test-self') exec('VTEST_JUST_ESSENTIAL=1 v -silent test-self')
} else { } else {
exec('VTEST_JUST_ESSENTIAL=1 v -progress test-self') exec('VTEST_JUST_ESSENTIAL=1 v -progress test-self')
} }

View file

@ -5,7 +5,7 @@ import common { Task, exec }
// //
fn all_code_is_formatted() { fn all_code_is_formatted() {
if common.is_github_job { if common.is_github_job {
exec('VJOBS=1 v test-cleancode') exec('VJOBS=1 v -silent test-cleancode')
} else { } else {
exec('v -progress test-cleancode') exec('v -progress test-cleancode')
} }
@ -18,12 +18,12 @@ fn verify_v_test_works() {
} }
fn test_pure_v_math_module() { fn test_pure_v_math_module() {
exec('v -exclude @vlib/math/*.c.v test vlib/math/') exec('v -silent -exclude @vlib/math/*.c.v test vlib/math/')
} }
fn self_tests() { fn self_tests() {
if common.is_github_job { if common.is_github_job {
exec('VJOBS=1 v test-self vlib') exec('VJOBS=1 v -silent test-self vlib')
} else { } else {
exec('v -progress test-self vlib') exec('v -progress test-self vlib')
} }
@ -31,7 +31,7 @@ fn self_tests() {
fn build_examples() { fn build_examples() {
if common.is_github_job { if common.is_github_job {
exec('v build-examples') exec('v -silent build-examples')
} else { } else {
exec('v -progress build-examples') exec('v -progress build-examples')
} }
@ -129,11 +129,11 @@ fn v_self_compilation_usecache_tcc() {
} }
fn test_password_input_tcc() { fn test_password_input_tcc() {
exec('v test examples/password/') exec('v -silent test examples/password/')
} }
fn test_readline_tcc() { fn test_readline_tcc() {
exec('v test examples/readline/') exec('v -silent test examples/readline/')
} }
fn test_leak_detector_tcc() { fn test_leak_detector_tcc() {
@ -178,12 +178,17 @@ fn run_sanitizers_gcc() {
} }
fn v_self_compilation_gcc() { fn v_self_compilation_gcc() {
exec('v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v') exec('v -o v2 cmd/v')
exec('./v2 -o v3 cmd/v')
exec('./v3 -o v4 cmd/v')
} }
fn v_self_compilation_usecache_gcc() { fn v_self_compilation_usecache_gcc() {
exec('unset VFLAGS') exec('unset VFLAGS')
exec('v -usecache examples/hello_world.v && examples/hello_world')
exec('v -usecache examples/hello_world.v')
exec('examples/hello_world')
exec('v -o v2 -usecache cmd/v') exec('v -o v2 -usecache cmd/v')
exec('./v2 -o v3 -usecache cmd/v') exec('./v2 -o v3 -usecache cmd/v')
exec('./v3 version') exec('./v3 version')
@ -203,11 +208,12 @@ fn self_tests_gcc() {
} }
fn self_tests_prod_gcc() { fn self_tests_prod_gcc() {
exec('v -o vprod -prod cmd/v && ./vprod test-self vlib') exec('v -o vprod -prod cmd/v')
exec('./vprod -silent test-self vlib')
} }
fn self_tests_cstrict_gcc() { fn self_tests_cstrict_gcc() {
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 v -cc gcc -cstrict test-self vlib') exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 v -cc gcc -cstrict -silent test-self vlib')
} }
fn build_examples_gcc() { fn build_examples_gcc() {
@ -313,11 +319,12 @@ fn self_tests_clang() {
} }
fn self_tests_vprod_clang() { fn self_tests_vprod_clang() {
exec('v -o vprod -prod cmd/v && ./vprod test-self vlib') exec('v -o vprod -prod cmd/v')
exec('./vprod -silent test-self vlib')
} }
fn self_tests_cstrict_clang() { fn self_tests_cstrict_clang() {
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 ./vprod -cstrict test-self vlib') exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 ./vprod -cstrict -silent test-self vlib')
} }
fn build_examples_clang() { fn build_examples_clang() {

View file

@ -15,7 +15,7 @@ fn build_with_cstrict() {
fn all_code_is_formatted() { fn all_code_is_formatted() {
if common.is_github_job { if common.is_github_job {
exec('VJOBS=1 v test-cleancode') exec('VJOBS=1 v -silent test-cleancode')
} else { } else {
exec('v -progress test-cleancode') exec('v -progress test-cleancode')
} }
@ -42,12 +42,12 @@ fn install_iconv() {
} }
fn test_pure_v_math_module() { fn test_pure_v_math_module() {
exec('v -progress -exclude @vlib/math/*.c.v test vlib/math/') exec('v -silent -exclude @vlib/math/*.c.v test vlib/math/')
} }
fn self_tests() { fn self_tests() {
if common.is_github_job { if common.is_github_job {
exec('VJOBS=1 v test-self vlib') exec('VJOBS=1 v -silent test-self vlib')
} else { } else {
exec('v -progress test-self vlib') exec('v -progress test-self vlib')
} }
@ -55,7 +55,7 @@ fn self_tests() {
fn build_examples() { fn build_examples() {
if common.is_github_job { if common.is_github_job {
exec('v build-examples') exec('v -silent build-examples')
} else { } else {
exec('v -progress build-examples') exec('v -progress build-examples')
} }
@ -65,7 +65,7 @@ fn build_examples_v_compiled_with_tcc() {
exec('v -o vtcc -cc tcc cmd/v') exec('v -o vtcc -cc tcc cmd/v')
if common.is_github_job { if common.is_github_job {
// ensure that examples/veb/veb_example.v etc compiles // ensure that examples/veb/veb_example.v etc compiles
exec('./vtcc build-examples') exec('./vtcc -silent build-examples')
} else { } else {
exec('./vtcc -progress build-examples') exec('./vtcc -progress build-examples')
} }
@ -104,11 +104,11 @@ fn v_self_compilation_parallel_cc() {
} }
fn test_password_input() { fn test_password_input() {
exec('v -progress test examples/password/') exec('v -silent test examples/password/')
} }
fn test_readline() { fn test_readline() {
exec('v -progress test examples/readline/') exec('v -silent test examples/readline/')
} }
const all_tasks = { const all_tasks = {