Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb2bdb97

Browse files
committed
meson: ci: ensure tests are built before running them
Meson 1.7 stopped building all the dependencies of tests as part of thedefault build target. But it does breaks CI because we only built the defaulttarget before running the test, and ran the tests with --no-rebuild.The simplest fix would be to remove --no-rebuild from MTEST_ARGS, but it seemsbetter to explicitly build the test dependencies, so compiler warnings /errors are visible as part of the build step.Discussion:https://postgr.es/m/CAGECzQSvM3iSDmjF+=Kof5an6jN8UbkP_4cKKT9w6GZavmb5yQ@mail.gmail.comBackpatch: 16-, where meson was added
1 parent26aca4d commitb2bdb97

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

‎.cirrus.tasks.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ env:
1717
CHECK:check-world PROVE_FLAGS=$PROVE_FLAGS
1818
CHECKFLAGS:-Otarget
1919
PROVE_FLAGS:--timer
20+
# Build test dependencies as part of the build step, to see compiler
21+
# errors/warnings in one place.
22+
MBUILD_TARGET:all testprep
2023
MTEST_ARGS:--print-errorlogs --no-rebuild -C build
2124
PGCTLTIMEOUT:120# avoids spurious failures during parallel tests
2225
TEMP_CONFIG:${CIRRUS_WORKING_DIR}/src/tools/ci/pg_ci_base.conf
@@ -99,7 +102,7 @@ task:
99102
EOF
100103
build_script:|
101104
su postgres <<-EOF
102-
ninja -C build -j${BUILD_JOBS}
105+
ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}
103106
EOF
104107
upload_caches:ccache
105108

@@ -178,7 +181,7 @@ task:
178181
-Dextra_lib_dirs=/usr/local/lib -Dextra_include_dirs=/usr/local/include/ \
179182
build
180183
EOF
181-
build_script:su postgres -c 'ninja -C build -j${BUILD_JOBS}'
184+
build_script:su postgres -c 'ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}'
182185
upload_caches:ccache
183186

184187
test_world_script:|
@@ -381,8 +384,8 @@ task:
381384
build-32
382385
EOF
383386
384-
build_script:su postgres -c 'ninja -C build -j${BUILD_JOBS}'
385-
build_32_script:su postgres -c 'ninja -C build-32 -j${BUILD_JOBS}'
387+
build_script:su postgres -c 'ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}'
388+
build_32_script:su postgres -c 'ninja -C build-32 -j${BUILD_JOBS} ${MBUILD_TARGET}'
386389

387390
upload_caches:ccache
388391

@@ -503,7 +506,7 @@ task:
503506
-Duuid=e2fs -Ddtrace=auto \
504507
build
505508
506-
build_script:ninja -C build -j${BUILD_JOBS}
509+
build_script:ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}
507510
upload_caches:ccache
508511

509512
test_world_script:|
@@ -576,7 +579,7 @@ task:
576579
577580
build_script:|
578581
vcvarsall x64
579-
ninja -C build
582+
ninja -C build %MBUILD_TARGET%
580583
581584
check_world_script:|
582585
vcvarsall x64
@@ -634,7 +637,7 @@ task:
634637
%BASH% -c "meson setup -Ddebug=true -Doptimization=g -Dcassert=true -Dinjection_points=true -Db_pch=true -Dnls=disabled -DTAR=%TAR% build"
635638
636639
build_script:|
637-
%BASH% -c "ninja -C build"
640+
%BASH% -c "ninja -C build ${MBUILD_TARGET}"
638641
639642
upload_caches:ccache
640643

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp