Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wRxJt-002pyb-35 for pgsql-hackers@arkaria.postgresql.org; Tue, 26 May 2026 19:20:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wRxJr-005iPu-39 for pgsql-hackers@arkaria.postgresql.org; Tue, 26 May 2026 19:20:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wRxJr-005iPl-26 for pgsql-hackers@lists.postgresql.org; Tue, 26 May 2026 19:20:04 +0000 Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wRxJj-00000000u2w-3GTZ for pgsql-hackers@lists.postgresql.org; Tue, 26 May 2026 19:19:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8B0HnzNSfCok3gujEZuUuEq8MuvTYRfccHEAyFmJ5sY=; b=kIT8NtwwbXBpcFSDgjbt6jTpoi 9sZTwLeGS3ICUm47AXTv84eMWQffo63nXmLy7z2xurdMoOejEkNdRn+46Jy6nijJ5o6Sc6Si2E5td h1vHjXEpVUmYdLeImDD032MC8oiBZwyoJyFzDoPxhJMqaT3+hFjs/xHj0zp4NCqzjD3QicZ0hoJ4e u5EP2KqDQGWVz8owNEHnLh69xA17fE+6A4sGntPScRfzI3s6znhtMtE4EsJ9gF0f73MslV3weszGq U79ngJXjc9Vjf/kfxR11u0+DAkAdWT0gBUte+fJg+X5S/eHqVbdSIbGgG1d7178/h2Q85vB01HOZG q72gGi1Q==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1wRxJf-002ZPq-0E; Tue, 26 May 2026 19:19:51 +0000 Date: Tue, 26 May 2026 21:19:49 +0200 From: Christoph Berg To: Jelte Fennema-Nio Cc: Andrew Dunstan , Peter Eisentraut , Corey Huinker , Zsolt Parragi , Nazir Bilal Yavuz , Andres Freund , PostgreSQL Hackers Subject: Re: meson: Make test output much more useful on failure (both in CI and locally) Message-ID: References: <83961e31-18f6-4a2f-983a-942e3335ba0a@dunslane.net> <96944093-b890-4a03-8f03-aa043d1e2ec9@eisentraut.org> <5311d487-5116-46c4-aac5-a5148d919b99@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Debian-User: myon List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Jelte Fennema-Nio > 5. Reduce the default diff truncation limit to 50. Could we also get a "show everything" mode, perhaps based on an env var? Debian's build and test machinery doesn't provide means to get at files from the build/test run, so all evidence needs to be in the build log. The debian/rules file for the PG server currently has this contraption: override_dh_auto_test-arch: ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS))) # when tests fail, print newest log files # initdb doesn't like LANG and LC_ALL to contradict, unset LANG and LC_CTYPE here # temp-install wants to be invoked from a top-level make, unset MAKELEVEL here # tell pg_upgrade to create its sockets in /tmp to avoid too long paths unset LANG LC_CTYPE MAKELEVEL; ulimit -c unlimited; \ if ! make -C build check-world \ PGSOCKETDIR="/tmp" \ PG_TEST_EXTRA='ssl' \ PROVE_FLAGS="--verbose"; \ then \ for l in `find build -name 'regression.*' -o -name '*.log' -o -name '*_log_*' | perl -we 'print map { "$$_\n"; } sort { (stat $$a)[9] <=> (stat $$b)[9] } map { chomp; $$_; } <>' | tail -n 10`; do \ echo "******** $$l ********"; \ cat $$l; \ done; \ for c in `find build -name 'core*'`; do \ echo "******** $$c ********"; \ gdb -batch -ex 'bt full' build/tmp_install/usr/lib/postgresql/$(MAJOR_VER)/bin/postgres $$c || :; \ done; \ $(TEST_FAIL_COMMAND); \ fi ifeq ($(WITH_PG_BSD_INDENT),y) $(MAKE) -C build/src/tools/pg_bsd_indent test DESTDIR=$(CURDIR)/debian/tmp endif endif The part with the TAP output files is ugly, and the "sort files by mtime and show the 10 newest ones" even more so. I would welcome anything that allowed me to simplify this. Thanks, Christoph