From: "Anthony PERARD" <anthony.perard@vates.tech>
To: "Andrew Cooper" <andrew.cooper3@citrix.com>
Cc: xen-devel@lists.xenproject.org,
"Doug Goldstein" <cardoe@cardoe.com>,
"Stefano Stabellini" <sstabellini@kernel.org>
Subject: Re: [XEN PATCH 0/3] CI: Allow automatic rebuild of rolling release containers
Date: Mon, 18 Nov 2024 12:48:25 +0000 [thread overview]
Message-ID: <Zzs3l_8qkLWzUzw_@l14> (raw)
In-Reply-To: <6344f8f9-5e02-4018-9646-a2b0734da9a2@citrix.com>
On Fri, Nov 15, 2024 at 05:13:13PM +0000, Andrew Cooper wrote:
> On 15/11/2024 5:07 pm, Anthony PERARD wrote:
> > Patch series available in this git branch:
> > https://xenbits.xenproject.org/git-http/people/aperard/xen-unstable.git br.gitlab-ci-rebuild-arch-container-v1
> >
> > Hi,
> >
> > This patch series would allow to setup a scheduled pipeline on GitLab which
> > would rebuild containers and run a test on them immediately (the container is
> > updated even if the test fail, but at least we can find out about it sooner
> > rather than later).
> >
> > To enable this, just running a pipeline with XEN_CI_REBUILD_CONTAINERS=1 will
> > do.
> >
> > I intend to add a scheduled pipeline to run once a month.
>
> Oh excellent. Thanks for looking into this.
>
> One thing I was going to look into doing was to push the new containers
> to a temporary repository (or a temp name in the main repository), kick
> off a regular pipeline overriding image:, and on success doing a rename.
>
> That would avoid pushing a container with problems into main CI.
I tried something like that before, but I probably didn't approch the
problem from the right angle:
[RFC XEN PATCH 0/7] automation, RFC prototype, Have GitLab CI built its own containers
https://lore.kernel.org/xen-devel/20230302175332.56052-1-anthony.perard@citrix.com/#r
I was trying to automatically rebuild container whose Dockerfile had
changed, while also having logic to rebuild containers based on
rolling-release distributions. But I did end-up duplicating
"build.yaml".
There's logic in that old series to test a container before "renaming
it" (which involve pulling then pushing the container with a new tag)
With this new series, I've introduced XEN_REGISTRY, so we could schedule
a pipeline by setting XEN_REGISTRY variable to a staging area, and
finish the pipeline by pushing to the main location.
But, the two containers been updated in this series are used in jobs
that are allowed to fail, so updating them don't have any consequence.
Also, there's no value in keeping to test with outdated container as
that mean we test with an environment that doesn't exist anymore.
Cheers,
--
Anthony Perard | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
prev parent reply other threads:[~2024-11-18 12:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-15 17:07 [XEN PATCH 0/3] CI: Allow automatic rebuild of rolling release containers Anthony PERARD
2024-11-15 17:07 ` [XEN PATCH 3/3] CI: New stage "containers" to rebuild some containers Anthony PERARD
2024-11-16 0:34 ` Stefano Stabellini
2024-11-18 14:03 ` Anthony PERARD
2024-11-19 0:04 ` Stefano Stabellini
2024-11-15 17:07 ` [XEN PATCH 2/3] CI: Define XEN_REGISTRY variable Anthony PERARD
2024-11-16 0:34 ` Stefano Stabellini
2024-11-15 17:07 ` [XEN PATCH 1/3] CI: Remove deprecated "only:variables" in favor of "rules:if" Anthony PERARD
2024-11-16 0:34 ` Stefano Stabellini
2024-11-15 17:13 ` [XEN PATCH 0/3] CI: Allow automatic rebuild of rolling release containers Andrew Cooper
2024-11-18 12:48 ` Anthony PERARD [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zzs3l_8qkLWzUzw_@l14 \
--to=anthony.perard@vates.tech \
--cc=andrew.cooper3@citrix.com \
--cc=cardoe@cardoe.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.