From: "Oliver Steffen" <osteffen@redhat.com>
To: devel@edk2.groups.io
Cc: Oliver Steffen <osteffen@redhat.com>,
Andrew Fish <afish@apple.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>,
Bob Feng <bob.c.feng@intel.com>,
Bret Barkelew <Bret.Barkelew@microsoft.com>,
Eric Dong <eric.dong@intel.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Jiewen Yao <jiewen.yao@intel.com>,
Jordan Justen <jordan.l.justen@intel.com>,
Leif Lindholm <quic_llindhol@quicinc.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Michael D Kinney <michael.d.kinney@intel.com>,
Rahul Kumar <rahul1.kumar@intel.com>, Ray Ni <ray.ni@intel.com>,
Sami Mujawar <sami.mujawar@arm.com>,
Sean Brogan <sean.brogan@microsoft.com>,
Yuwei Chen <yuwei.chen@intel.com>,
Ard Biesheuvel <ardb@kernel.org>
Subject: [PATCH v4 0/4] CI: Use Fedora 35 container for Linux jobs
Date: Wed, 10 Aug 2022 14:03:09 +0200 [thread overview]
Message-ID: <20220810120313.203609-1-osteffen@redhat.com> (raw)
Update CI, run all Linux (aka Ubuntu-GCC5) based jobs in custom
containers.
The container image provides the required compiler toolchains and Qemu
for the supported architectures. These are then no longer downloaded at
runtime, avoiding CI failures due to download errors. This approach also
makes it easier to switch to other or newer compilers. It makes the CI
setup independent from the default images that Azure DevOps provides.
It can also help debugging CI problems, because the CI environment
can be reproduced on a local machine.
The container images are hosted on ghcr.io and are automatically
generated using GitHub Actions. The Dockerfiles are maintained in the
Tianocore "containers" repository:
https://github.com/tianocore/containers.
The current image is based on Fedora 35, with gcc 11. Fedora was chosen
because of its fast release cycle which makes it easy to keep the
toolchains up-to-date.
Some further possible changes not included in this series:
- The Tianocore/containers repository provides stack of layered images.
One image for general purpose (build+test) and build-only jobs.
The build+test image is based on the build-only one and adds Qemu,
for the testing job that involve Qemu. This reduces the total download
size. This was suggested by Chris Fernald. The work in the image side
is done, we just need to change the CI setup accordingly.
This patch set uses the build+test images for all jobs.
- Further reduce the number of external dependencies that need to be
downloaded at runtime. Candidates are iasl and nasm, which are already
included in the image but not used yet.
PR: https://github.com/tianocore/edk2/pull/2935
v4:
- Use the latest image from the tianocode/containers repository which
- does not include acpica-tools
- includes Pyhton 3.10
v3:
- Use the latest image from the tianocode/containers repository which
pins down version numbers of gcc, iasl, and nasm in the Dockerfile.
v2:
- Images are now hosted under the Tianocore Organization
https://github.com/tianocore/containers
v1:
- Thread: https://edk2.groups.io/g/devel/message/89058
- Images were hosted at https://github.com/osteffenrh/edk2-build-images
Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Oliver Steffen (4):
CI: don't force python verison (Linux only)
CI: add ~/.local/bin to PATH (Linux only)
CI: Use Fedora 35 container (Linux only)
BaseTools: Remove ext. gcc dependencies (Linux only)
.../templates/basetools-build-steps.yml | 9 --------
.../templates/platform-build-run-steps.yml | 7 ++++++
.../templates/pr-gate-build-job.yml | 3 +++
.azurepipelines/templates/pr-gate-steps.yml | 7 ++++++
.../.azurepipelines/Ubuntu-GCC5.yml | 6 ++---
BaseTools/Bin/gcc_aarch64_linux_ext_dep.yaml | 21 ------------------
BaseTools/Bin/gcc_arm_linux_ext_dep.yaml | 21 ------------------
.../Bin/gcc_riscv64_unknown_ext_dep.yaml | 22 -------------------
.../.azurepipelines/Ubuntu-GCC5.yml | 2 ++
.../.azurepipelines/Ubuntu-GCC5.yml | 6 ++---
10 files changed, 23 insertions(+), 81 deletions(-)
delete mode 100644 BaseTools/Bin/gcc_aarch64_linux_ext_dep.yaml
delete mode 100644 BaseTools/Bin/gcc_arm_linux_ext_dep.yaml
delete mode 100644 BaseTools/Bin/gcc_riscv64_unknown_ext_dep.yaml
--
2.37.1
next reply other threads:[~2022-08-10 12:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-10 12:03 Oliver Steffen [this message]
2022-08-10 12:03 ` [PATCH v4 1/4] CI: don't force python verison (Linux only) Oliver Steffen
2022-08-10 12:03 ` [PATCH v4 2/4] CI: add ~/.local/bin to PATH " Oliver Steffen
2022-08-10 12:03 ` [PATCH v4 3/4] CI: Use Fedora 35 container " Oliver Steffen
2022-08-10 12:03 ` [PATCH v4 4/4] BaseTools: Remove ext. gcc dependencies " Oliver Steffen
2022-08-11 3:34 ` [edk2-devel] " Daniel Schaefer
2022-08-11 10:49 ` Oliver Steffen
2022-08-15 3:48 ` Daniel Schaefer
2022-08-15 6:58 ` Oliver Steffen
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-list 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=20220810120313.203609-1-osteffen@redhat.com \
--to=devel@edk2.groups.io \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox