Allow CI to only run the compiler warnings task

Lists: pgsql-hackers
From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Allow CI to only run the compiler warnings task
Date: 2024-09-11 12:36:25
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

Hi hackers,

While working on a new pg_logicalinspect module ([1]), I reached a point where
all the CI tests were green except the compiler warnings one. Then, to save time
addressing the issue, I modified the .cirrus.tasks.yml file to $SUBJECT.

I think this could be useful for others too, so please find attached this tiny
patch.

Note that the patch does not add an extra "ci-task-only", but for simplicity it
it renames ci-os-only to ci-task-only.

[1]: https://www.postgresql.org/message-id/ZuF2Okt7aBR//bxu%40ip-10-97-1-34.eu-west-3.compute.internal

Looking forward to your feedback,

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment Content-Type Size
v1-0001-Allow-CI-to-only-run-the-compiler-warnings-task.patch text/x-diff 4.4 KB

From: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Allow CI to only run the compiler warnings task
Date: 2024-09-11 13:39:57
Message-ID: CAN55FZ1fT4TaymwgK3jQ+cBZHnD1YoZYO6dz0m_WevNVCdr7_Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

On Wed, 11 Sept 2024 at 15:36, Bertrand Drouvot
<bertranddrouvot(dot)pg(at)gmail(dot)com> wrote:
>
> Hi hackers,
>
> While working on a new pg_logicalinspect module ([1]), I reached a point where
> all the CI tests were green except the compiler warnings one. Then, to save time
> addressing the issue, I modified the .cirrus.tasks.yml file to $SUBJECT.
>
> I think this could be useful for others too, so please find attached this tiny
> patch.

+1 for this. I encountered the same issue before.

> Note that the patch does not add an extra "ci-task-only", but for simplicity it
> it renames ci-os-only to ci-task-only.

I think this change makes sense. I gave a quick try to your patch with
ci-task-only: ["", "linux", "compilerwarnings"] and it worked as
expected.

--
Regards,
Nazir Bilal Yavuz
Microsoft


From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Allow CI to only run the compiler warnings task
Date: 2024-09-12 05:21:43
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

On Wed, Sep 11, 2024 at 04:39:57PM +0300, Nazir Bilal Yavuz wrote:
> Hi,
>
> On Wed, 11 Sept 2024 at 15:36, Bertrand Drouvot
> <bertranddrouvot(dot)pg(at)gmail(dot)com> wrote:
> >
> > Hi hackers,
> >
> > While working on a new pg_logicalinspect module ([1]), I reached a point where
> > all the CI tests were green except the compiler warnings one. Then, to save time
> > addressing the issue, I modified the .cirrus.tasks.yml file to $SUBJECT.
> >
> > I think this could be useful for others too, so please find attached this tiny
> > patch.
>
> +1 for this. I encountered the same issue before.

Thanks for the feedback!

>
> > Note that the patch does not add an extra "ci-task-only", but for simplicity it
> > it renames ci-os-only to ci-task-only.
>
> I think this change makes sense. I gave a quick try to your patch with
> ci-task-only: ["", "linux", "compilerwarnings"] and it worked as
> expected.

And for the testing.

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com


From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Allow CI to only run the compiler warnings task
Date: 2025-03-11 07:25:17
Message-ID: Z8/[email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

On Thu, Sep 12, 2024 at 05:21:43AM +0000, Bertrand Drouvot wrote:
> Hi,
>
> On Wed, Sep 11, 2024 at 04:39:57PM +0300, Nazir Bilal Yavuz wrote:
> > Hi,
> >
> > On Wed, 11 Sept 2024 at 15:36, Bertrand Drouvot
> > <bertranddrouvot(dot)pg(at)gmail(dot)com> wrote:
> > >
> > > Hi hackers,
> > >
> > > While working on a new pg_logicalinspect module ([1]), I reached a point where
> > > all the CI tests were green except the compiler warnings one. Then, to save time
> > > addressing the issue, I modified the .cirrus.tasks.yml file to $SUBJECT.
> > >
> > > I think this could be useful for others too, so please find attached this tiny
> > > patch.
> >
> > +1 for this. I encountered the same issue before.
>
> Thanks for the feedback!
>
> >
> > > Note that the patch does not add an extra "ci-task-only", but for simplicity it
> > > it renames ci-os-only to ci-task-only.
> >
> > I think this change makes sense. I gave a quick try to your patch with
> > ci-task-only: ["", "linux", "compilerwarnings"] and it worked as
> > expected.
>
> And for the testing.

Mandatory rebase attached.

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment Content-Type Size
v2-0001-Allow-CI-to-only-run-the-compiler-warnings-task.patch text/x-diff 5.3 KB

From: Rustam ALLAKOV <rustamallakov(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Subject: Re: Allow CI to only run the compiler warnings task
Date: 2025-05-21 17:31:38
Message-ID: 174784869876.643.10367966151939662092.pgcf@coridan.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

The following review has been posted through the commitfest application:
make installcheck-world: not tested
Implements feature: not tested
Spec compliant: tested, failed
Documentation: tested, failed

Hi Hackers,

it might be better to list tasks in alphabetical order, and if I understand correctly
initially they were alphabetically sorted.

> ci-task-only: {(compilerwarnings|freebsd|linux|macos|mingw|netbsd|openbsd|windows)}

also it may increase readability if you sort tasks alphabetically within the .cirrust.tasks.yml

Kindest regards.
Rustam

The new status of this patch is: Waiting on Author


From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Rustam ALLAKOV <rustamallakov(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Subject: Re: Allow CI to only run the compiler warnings task
Date: 2025-06-04 18:08:17
Message-ID: CAKFQuwa6BPoW3Cg6r=JGFxwCp_TGYBoou8KTu1+5hyNTp8Be2g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, May 21, 2025 at 10:32 AM Rustam ALLAKOV <rustamallakov(at)gmail(dot)com>
wrote:

> The following review has been posted through the commitfest application:
> make installcheck-world: not tested
> Implements feature: not tested
> Spec compliant: tested, failed
> Documentation: tested, failed
>
> Hi Hackers,
>
> it might be better to list tasks in alphabetical order, and if I
> understand correctly
> initially they were alphabetically sorted.
>
> > ci-task-only:
> {(compilerwarnings|freebsd|linux|macos|mingw|netbsd|openbsd|windows)}

Appending the option and matching the yml file is proper for this patch
given its goal.

I do feel like there is something a bit off. Specifically:

I'd keep ci-os-only as a deprecated alias for a while - let it accept the
new compilerwarnings task name. I'd rather not break people's muscle
memory and the fact they are unlikely to realize this change until they run
one through and see everything running despite their directive. The "mess"
is quite minimal for the benefit.
(this is the only one I'd say is a - soft - patch blocker for me)

I'd like to communicate the always-runs versus the manual runs here in some
way.
Keeping the flavors together would seem to have merit.
I feel like the yml file itself should put these in a comment block.

> also it may increase readability if you sort tasks alphabetically within
> the .cirrust.tasks.yml
>
>
That should be done as a dedicated refactoring patch. I wouldn't consider
it high priority though. I'd love to find something that makes my outliner
display the task names as maximum collapse though (VS Code).

I'm apt to propose a refactoring patch here at some point to address these
things - but this patch to extend the yml file in an obvious way need not
take on such responsibilities.

David J.