Re: Upload only the failed tests logs to the Postgres CI (Cirrus CI)
Nazir Bilal Yavuz <byavuz81@gmail.com>
From: Nazir Bilal Yavuz <byavuz81@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-06-05T12:23:52Z
Lists: pgsql-hackers
Attachments
- v3-0001-ci-Don-t-collect-successful-tests-logs.patch (text/x-patch) patch v3-0001
Hi, On Thu, 9 Apr 2026 at 11:01, Nazir Bilal Yavuz <byavuz81@gmail.com> wrote: > On Tue, 7 Apr 2026 at 19:27, Nazir Bilal Yavuz <byavuz81@gmail.com> wrote: > > > Here is v2, which addresses the issues I mentioned earlier. > > I have updated the design since this will only be used for Meson > builds. I decided to invoke the script using 'meson compile > clear_testrun_folder', as this avoids the need to manually call > python3. This approach prevents issues on NetBSD, where the python3 > environment may not be found. > > I don’t expect the 'ci_meson_clear_testrun_folder' script to be used > outside of CI, so I placed it in the 'src/tools/ci/' directory. > However, if you think it could be useful beyond CI, we could consider > renaming it and moving it to 'src/tools/'. Here is the v3, it is modified for Github Actions. I implemented it as another step which will run if the job fails. Alternatively, we can put 'the clearing command' into the meson_test_world step, this makes the change simpler but then this command will run although tests don't fail. With this change, the compressed size of the log decreases from ~8MB to ~1MB. Also, it is much easier to find which tests failed. You can see example GHA run, which intentionally failed: https://github.com/nbyavuz/postgres/actions/runs/27013199064 -- Regards, Nazir Bilal Yavuz Microsoft