mirror of
https://github.com/postgres/postgres.git
synced 2025-12-19 17:02:53 +03:00
ci: debian: Switch to Debian Trixie release
Debian Trixie CI images are generated now [1], so use them with the following changes: - detect_stack_use_after_return=0 option is added to the ASAN_OPTIONS because ASAN uses a "shadow stack" to track stack variable lifetimes and this confuses Postgres' stack depth check [2]. - Perl is updated to the newer version (perl5.40-i386-linux-gnu). - LLVM-14 is no longer default installation, no need to force using LLVM-16. - Switch MinGW CC/CXX to x86_64-w64-mingw32ucrt-* to fix build failure from missing _iswctype_l in mingw-w64 v12 headers. [1] https://github.com/anarazel/pg-vm-images/commit/35a144793f [2] https://postgr.es/m/20240130212304.q66rquj5es4375ab%40awork3.anarazel.de Author: Nazir Bilal Yavuz <byavuz81@gmail.com> Discussion: https://postgr.es/m/CAN55FZ1_B1usTskAv+AYt1bA7abVd9YH6XrUUSbr-2Z0d5Wd8w@mail.gmail.com Backpatch: 15-, where CI support was added
This commit is contained in:
@@ -68,7 +68,7 @@ task:
|
|||||||
CPUS: 4
|
CPUS: 4
|
||||||
BUILD_JOBS: 8
|
BUILD_JOBS: 8
|
||||||
TEST_JOBS: 8
|
TEST_JOBS: 8
|
||||||
IMAGE_FAMILY: pg-ci-bookworm
|
IMAGE_FAMILY: pg-ci-trixie
|
||||||
CCACHE_DIR: ${CIRRUS_WORKING_DIR}/ccache_dir
|
CCACHE_DIR: ${CIRRUS_WORKING_DIR}/ccache_dir
|
||||||
# no options enabled, should be small
|
# no options enabled, should be small
|
||||||
CCACHE_MAXSIZE: "150M"
|
CCACHE_MAXSIZE: "150M"
|
||||||
@@ -244,7 +244,7 @@ task:
|
|||||||
CPUS: 4
|
CPUS: 4
|
||||||
BUILD_JOBS: 4
|
BUILD_JOBS: 4
|
||||||
TEST_JOBS: 8 # experimentally derived to be a decent choice
|
TEST_JOBS: 8 # experimentally derived to be a decent choice
|
||||||
IMAGE_FAMILY: pg-ci-bookworm
|
IMAGE_FAMILY: pg-ci-trixie
|
||||||
|
|
||||||
CCACHE_DIR: /tmp/ccache_dir
|
CCACHE_DIR: /tmp/ccache_dir
|
||||||
DEBUGINFOD_URLS: "https://debuginfod.debian.net"
|
DEBUGINFOD_URLS: "https://debuginfod.debian.net"
|
||||||
@@ -265,7 +265,7 @@ task:
|
|||||||
# print_stacktraces=1,verbosity=2, duh
|
# print_stacktraces=1,verbosity=2, duh
|
||||||
# detect_leaks=0: too many uninteresting leak errors in short-lived binaries
|
# detect_leaks=0: too many uninteresting leak errors in short-lived binaries
|
||||||
UBSAN_OPTIONS: print_stacktrace=1:disable_coredump=0:abort_on_error=1:verbosity=2
|
UBSAN_OPTIONS: print_stacktrace=1:disable_coredump=0:abort_on_error=1:verbosity=2
|
||||||
ASAN_OPTIONS: print_stacktrace=1:disable_coredump=0:abort_on_error=1:detect_leaks=0
|
ASAN_OPTIONS: print_stacktrace=1:disable_coredump=0:abort_on_error=1:detect_leaks=0:detect_stack_use_after_return=0
|
||||||
|
|
||||||
# SANITIZER_FLAGS is set in the tasks below
|
# SANITIZER_FLAGS is set in the tasks below
|
||||||
CFLAGS: -Og -ggdb -fno-sanitize-recover=all $SANITIZER_FLAGS
|
CFLAGS: -Og -ggdb -fno-sanitize-recover=all $SANITIZER_FLAGS
|
||||||
@@ -315,7 +315,7 @@ task:
|
|||||||
#DEBIAN_FRONTEND=noninteractive apt-get -y install ...
|
#DEBIAN_FRONTEND=noninteractive apt-get -y install ...
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
- name: Linux - Debian Bookworm - Autoconf
|
- name: Linux - Debian Trixie - Autoconf
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SANITIZER_FLAGS: -fsanitize=address
|
SANITIZER_FLAGS: -fsanitize=address
|
||||||
@@ -349,7 +349,7 @@ task:
|
|||||||
on_failure:
|
on_failure:
|
||||||
<<: *on_failure_ac
|
<<: *on_failure_ac
|
||||||
|
|
||||||
- name: Linux - Debian Bookworm - Meson
|
- name: Linux - Debian Trixie - Meson
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CCACHE_MAXSIZE: "400M" # tests two different builds
|
CCACHE_MAXSIZE: "400M" # tests two different builds
|
||||||
@@ -376,7 +376,7 @@ task:
|
|||||||
${LINUX_MESON_FEATURES} \
|
${LINUX_MESON_FEATURES} \
|
||||||
-Dllvm=disabled \
|
-Dllvm=disabled \
|
||||||
--pkg-config-path /usr/lib/i386-linux-gnu/pkgconfig/ \
|
--pkg-config-path /usr/lib/i386-linux-gnu/pkgconfig/ \
|
||||||
-DPERL=perl5.36-i386-linux-gnu \
|
-DPERL=perl5.40-i386-linux-gnu \
|
||||||
-DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
|
-DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
|
||||||
build-32
|
build-32
|
||||||
EOF
|
EOF
|
||||||
@@ -655,7 +655,7 @@ task:
|
|||||||
env:
|
env:
|
||||||
CPUS: 4
|
CPUS: 4
|
||||||
BUILD_JOBS: 4
|
BUILD_JOBS: 4
|
||||||
IMAGE_FAMILY: pg-ci-bookworm
|
IMAGE_FAMILY: pg-ci-trixie
|
||||||
|
|
||||||
# Use larger ccache cache, as this task compiles with multiple compilers /
|
# Use larger ccache cache, as this task compiles with multiple compilers /
|
||||||
# flag combinations
|
# flag combinations
|
||||||
@@ -741,11 +741,11 @@ task:
|
|||||||
always:
|
always:
|
||||||
mingw_cross_warning_script: |
|
mingw_cross_warning_script: |
|
||||||
time ./configure \
|
time ./configure \
|
||||||
--host=x86_64-w64-mingw32 \
|
--host=x86_64-w64-mingw32ucrt \
|
||||||
--enable-cassert \
|
--enable-cassert \
|
||||||
--without-icu \
|
--without-icu \
|
||||||
CC="ccache x86_64-w64-mingw32-gcc" \
|
CC="ccache x86_64-w64-mingw32ucrt-gcc" \
|
||||||
CXX="ccache x86_64-w64-mingw32-g++"
|
CXX="ccache x86_64-w64-mingw32ucrt-g++"
|
||||||
make -s -j${BUILD_JOBS} clean
|
make -s -j${BUILD_JOBS} clean
|
||||||
time make -s -j${BUILD_JOBS} world-bin
|
time make -s -j${BUILD_JOBS} world-bin
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user