Commit Graph

5075 Commits

Author SHA1 Message Date
Flatcar Buildbot
b1883b7c71 Update mantle container image to latest HEAD 2022-08-11 21:00:42 +00:00
flatcar-ci
022e8fda7a New version: main-3328.0.0-nightly-20220811-2100 2022-08-11 21:00:25 +00:00
Kai Lüke
5cd690cb02
Merge pull request #405 from flatcar-linux/mantle-update-main
Upgrade mantle container image to latest HEAD in main
2022-08-11 11:31:02 +02:00
Flatcar Buildbot
7ef47d9dbf Update mantle container image to latest HEAD 2022-08-11 09:29:08 +00:00
Kai Lüke
236e1b9a29
Merge pull request #402 from flatcar-linux/mantle-update-main
Upgrade mantle container image to latest HEAD in main
2022-08-11 11:28:52 +02:00
Flatcar Buildbot
6ce401bb52 Update mantle container image to latest HEAD 2022-08-10 21:00:46 +00:00
flatcar-ci
e418163741 New version: main-3327.0.0-nightly-20220810-2100 2022-08-10 21:00:26 +00:00
flatcar-ci
152daf9a34 New version: main-3325.0.0-nightly-20220808-2100 2022-08-08 21:00:26 +00:00
Kai Lüke
d46d4bafab
Merge pull request #395 from flatcar-linux/mantle-update-main
Upgrade mantle container image to latest HEAD in main
2022-08-08 17:48:24 +02:00
Flatcar Buildbot
777ae4a872 Update mantle container image to latest HEAD 2022-08-05 21:00:50 +00:00
flatcar-ci
abaa46a39d New version: main-3322.0.0-nightly-20220805-2100 2022-08-05 21:00:31 +00:00
flatcar-ci
8ce2218719 New version: main-3321.0.0-nightly-20220804-2101 2022-08-05 12:24:42 +00:00
Krzesimir Nowak
fd0f8d49f9
Merge pull request #398 from flatcar-linux/krnowak/sync-em-region
ci-automation: Sync used EquinixMetal region to use for ARM64 servers
2022-08-05 12:04:06 +02:00
Krzesimir Nowak
1974033edd ci-automation: Sync used EquinixMetal region to use for ARM64 servers
Recently we changed the region from DA (Dallas) to DC (Washington),
because there are more ARM64 servers available. Reflect this change in
the new pipeline too.
2022-08-05 11:14:36 +02:00
flatcar-ci
53530aa3fa New version: main-3321.0.0-nightly-20220804-2100 2022-08-04 21:00:26 +00:00
flatcar-ci
a179c14cd2 New version: main-3320.0.0-nightly-20220803-2100 2022-08-03 21:00:27 +00:00
Krzesimir Nowak
a39c80023e
Merge pull request #397 from flatcar-linux/krnowak/azure-fixes
Fixes for azure vendor test
2022-08-03 18:07:08 +02:00
Krzesimir Nowak
661a4067a1 ci-automation/vendor-testing/azure.sh: Use an array for extra instance types 2022-08-03 16:23:15 +02:00
Krzesimir Nowak
23a05949c1 ci-automation/vendor-testing/azure.sh: Use proper machine size on arm64 2022-08-03 16:22:38 +02:00
Krzesimir Nowak
4d09ab35d6 ci-automation/vendor-testing/azure.sh: Fix unbound variable use
This gets triggered when the test is rerun and an existing image is
reused.
2022-08-03 15:21:00 +02:00
Krzesimir Nowak
7f5282e259 ci-automation/vendor-testing/azure.sh: Fix hyperv generation argument
The "v" must be a capital letter. It seems that Azure got picker about
parameters it accepts.
2022-08-03 15:21:00 +02:00
flatcar-ci
00ce08216d New version: main-3319.0.0-nightly-20220802-2100 2022-08-02 21:00:29 +00:00
flatcar-ci
9260fc3001 New version: main-3318.0.0-nightly-20220801-2100 2022-08-01 21:00:31 +00:00
flatcar-ci
948fd31440 New version: main-3314.0.0-nightly-20220728-2100 2022-07-28 21:00:36 +00:00
flatcar-ci
f854ca61c9 New version: main-3313.0.0-nightly-20220727-2100 2022-07-27 21:00:25 +00:00
Jeremi Piotrowski
6f1d7976f4
Merge pull request #385 from flatcar-linux/jepio/spdx-sbom
add SPDX SBOM generation using syft
2022-07-27 13:55:00 +02:00
Jeremi Piotrowski
3f39f48389 build_library: install initramfs/torcx SLSA reports into rootfs
Some packages are currently missing from the /usr/share/SLSA directory
compared to flatcar_production_image_packages.txt. For torcx packages,
extract the reports from the torcx bundle when adding it to the rootfs.
For initramfs packages, as a substitute we enumerate build dependencies
of coreos-kernel (image_packages_implicit()). At this time these are
bootengine and intel-microcode.
2022-07-27 13:00:20 +02:00
Jeremi Piotrowski
e20cf95bcb prod_image_util: unpack SLSA report along with gcc when building image
Prod images need libstdc++.so and other libraries produced by
sys-devel/gcc build, but because we don't want all of gcc in the image,
the binpkg is manually unpacked instead of installed with emerge. Make
sure to preserve SLSA metadata when unpacking as well.
2022-07-27 13:00:19 +02:00
Jeremi Piotrowski
7c87bb611f enable GENERATE_SLSA_PROVENANCE for board ROOT
This needs to be done in setup_board for ROOT=/build/$BOARD, but also in
toolchain_util because basic toolchains packages are built through
catalyst.
2022-07-27 12:59:49 +02:00
Jeremi Piotrowski
0eb44ea280 build_toolchains: add provenance metadata files to root overlay
Catalyst runs builds with copies of the portage/coreos overlays in a
chroot, which prevents us from accessing the git metadata necessary to
create provenance information. Copy some files over into the
root_overlay used by the toolchains catalyst build so that provenance
can be correctly captured.
2022-07-27 12:59:49 +02:00
Jeremi Piotrowski
95c5d94837 setup_board: fix building binpkgs for toolchain dependencies
install_cross_libs installs TOOLCHAIN_PKGS deps into /usr/$BOARD_CHOST,
so that TOOLCHAIN_PKGS binpkgs can be built. We also need binpkgs for
the TOOLCHAIN_PKGS deps so that we can install them into /build/$BOARD
later together with TOOLCHAIN_PKGS. This is where the flow is currently
broken. Due to a change in semantics, --emptyroot tries to rebuild host
packages as well, and dropping it leaves --onlydeps which results in no
binpkgs being built because they are already installed.

We can solve resolve this by reusing the dependency list generated by
install_cross_libs, and explicitly building those binpkgs. It is worth
remarking that this flow of building the toolchain binpkgs through
setup_board is not in use in Flatcar, because we normally build
toolchains with catalyst. We are interested in reviving it because we
want to build everything with SLSA provenance information.
2022-07-27 12:59:49 +02:00
Jeremi Piotrowski
a66bded4ce install_cross_libs: fix toolchain dependency installation
`./setup_board --nousepkg --nogetbinpkg` currently fails with a
circular dependency due to pulling in the whole systemd-cryptsetup-udev
dependency chain. This is due to several issue:

* `emerge --root=$ROOT --emptytree` considers ROOT=/ to also be empty,
  so it pulls in all host packages. This must've not always been the case.
  So we need to pipe the dependency package list through `egrep $ROOT`
  to filter only those that would get installed into the desired ROOT
* if SYSROOT=/ and not SYSROOT=ROOT, then virtual/os-headers is missing
  from $ROOT package list
* the final filter expression tries to previously looked like this:
  (=sys-devel/gcc|sys-devel/binutils-0.9) which also matches
  sys-devel/gcc-config and sys-devel/binutils-config, which are
  necessary dependencies. Rework the match expression to not filter
  those out.
2022-07-27 12:59:49 +02:00
Jeremi Piotrowski
13889874e3
Merge pull request #391 from flatcar-linux/jepio/libgcc-fix
prod_image_util: extract gcc libs to /usr/lib64
2022-07-27 11:26:02 +02:00
flatcar-ci
99bb586c3a New version: main-3312.0.0-nightly-20220726-2100 2022-07-26 21:00:24 +00:00
flatcar-ci
a64011137b New version: main-3311.0.0-nightly-20220725-2100 2022-07-25 21:00:35 +00:00
Jeremi Piotrowski
6735a6d5c0
prod_image_util: extract gcc libs to /usr/lib64
This made no difference back when lib was a symlink to lib64, but now that they are separate,
libs belongs in /usr/lib64. This  mostly doesn't show up because ldconfig configures the ld.so cache
to include both locations, but when updating from an older release ld.so.cache is out of date.
Unfortunately ld.so.cache does not get updated until after multipathd, which causes
multipathd to dump core. This may also affect other packages that need access to
libgcc early.

See also: https://github.com/flatcar-linux/Flatcar/issues/809
2022-07-25 17:33:08 +02:00
flatcar-ci
1d47a32cc3 New version: main-3306.0.0-nightly-20220720-2100 2022-07-20 21:00:27 +00:00
Dongsu Park
39dc428bc1
Merge pull request #389 from flatcar-linux/dongsu/equinix-metal-arm64-dc
jenkins: fix PACKET_REGION to DC for more servers available
2022-07-20 15:21:56 +02:00
Dongsu Park
cb7b53188d jenkins: fix PACKET_REGION to DC for more servers available
`c3.large.arm64` instances of Equinix Metal are available in metro
either `DA` or `DC`. However, recently arm64 CI builds started to fail
due to too few servers available in the DA metro. As the DC metro has
more servers available, let's change metro to DC.

How to check how many servers are available in a specific metro:

```
curl -X POST \
  -H "Content-Type: application/json" -H "X-Auth-Token: ..." \
  https://api.equinix.com/metal/v1/capacity/metros \
  -d '{"servers": [ { \
    "metro": "dc", \
    "plan": "c3.large.arm64", \
     "quantity": 34 \
  } ] }'
curl -X POST \
  -H "Content-Type: application/json" -H "X-Auth-Token: ..." \
  https://api.equinix.com/metal/v1/capacity/metros \
  -d '{"servers": [ { \
    "metro": "da", \
    "plan": "c3.large.arm64", \
    "quantity": 17 \
  } ] }'
```
2022-07-20 14:58:59 +02:00
flatcar-ci
cc4a96ed6d New version: main-3305.0.0-nightly-20220719-2100 2022-07-19 21:00:25 +00:00
Kai Lüke
a2e0b7b233
Merge pull request #386 from flatcar-linux/kai/new-packages-top-job
ci-automation: Move git tagging into own script
2022-07-19 19:35:13 +02:00
flatcar-ci
7e796bf561 New version: main-3304.0.0-nightly-20220718-2100 2022-07-18 21:00:27 +00:00
Kai Lüke
a21daa36c0
Merge pull request #387 from flatcar-linux/kai/checkout-test
.github: Specify remote when checking out c-o/p-s ref in workflow
2022-07-18 20:33:51 +02:00
Kai Lueke
71510fb117 .github: Specify remote when checking out c-o/p-s ref in workflow
When the specified remote contains a same-named branch as origin,
the checkout fails with "fatal: 'X' matched multiple (Y) remote
tracking branches".
Add the remote name as prefix to make the reference unambiguous.
2022-07-18 20:12:06 +02:00
Kai Lueke
5e0dc0a85d ci-automation: Move git tagging into own script
When the build system runs the packages jobs for both architectures in
parallel and has to create a new tag, tagging fails due to the race in
the tagging.
Move the git tagging to its own script that is run from a new top-level
job that starts the packages jobs for both architectures.
2022-07-18 19:20:44 +02:00
flatcar-ci
51f740a2a8 New version: main-3301.0.0-nightly-20220715-2100 2022-07-15 21:00:30 +00:00
Jeremi Piotrowski
d3edc97063 build_image: use syft to generate SBOM for prod image
Since v0.51.0 syft supports generating parsing the gentoo package
database. This is a first go at integrating that into our image build
process. This doesn't yet include packages inside torcx packages, or the
kernel, or initramfs-only packages.
2022-07-15 11:52:33 +00:00
Kai Lüke
256885527c
Merge pull request #384 from flatcar-linux/kai/ga-runner-amd64-lxc
.github: Use lxc containers for amd64 kola tests, too
2022-07-15 12:30:47 +02:00
Kai Lueke
58927811b1 .github: Use lxc containers for amd64 kola tests, too
While we moved the arm64 tests to lxc containers, amd64 stayed on VMs
which were not easy to scale up.
Now the GitHub Action runner is running on lxc containers and we can
spawn more VMs in parallel because it has no memory limit.
2022-07-15 12:19:16 +02:00
flatcar-ci
60dc5f5065 New version: main-3300.0.0-nightly-20220714-2100 2022-07-14 21:00:27 +00:00