Re: Upload only the failed tests logs to the Postgres CI (Cirrus CI)

From: Andres Freund <andres(at)anarazel(dot)de>
To: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Upload only the failed tests logs to the Postgres CI (Cirrus CI)
Date: 2026-06-08 15:10:31
Message-ID: vyy6jmcbjpih6ariid3h2uqlushizit755i4mpfeeyebqcpqpt@tdzbwuxnqrro
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2026-06-05 15:23:52 +0300, Nazir Bilal Yavuz wrote:
> 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.

I think it's the right thing to have it as a dedicated step. That way it can
work with things like the running tests etc as well.

>
> + # Clear test folder so only failed tests are left

FWIW, I'd much rather see this copy the to-be-archived logs to a different
location, instead of removing the unneeded logs.

> + - &clear_test_folder_step
> + name: Clear test folder
> + if: failure() && !cancelled()
> + run: |
> + meson compile clear_testrun_folder -C build

I don't think I see what we gain from invoking this via meson compile, given
that we invoke ninja directly elsewhere. Not that that's going to make the
difference, but meson compile, which internally invokes ninja, is noticeably
slower than going through ninja directly.

But I suspect this shouldn't be integrated into the build system directly, as
I think we should eventually make this work for autoconf as well.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2026-06-08 15:27:13 Re: Subquery pull-up increases jointree search space
Previous Message Andres Freund 2026-06-08 14:59:27 Re: ci: CCache churns through available space too quickly