23028 Commits

Author SHA1 Message Date
Kai Lueke
89495373d9 ci-automation: Ensure to use latest container image
The container image was only created if it didn't exist locally. This
would result in fixes not being in a downstream job that is scheduled
to a different worker node on Jenkins that has a stale copy.
For the build automation we will now always download the latest
container tar ball based on comparing the image ID from a new artifact,
and for registry images we pull the container image to make sure that
we don't use a stale copy when we rebuild.
2022-09-29 10:04:23 +02:00
flatcar-ci
07edb890a1 New version: main-3376.0.0-nightly-20220928-2100 2022-09-28 21:00:32 +00:00
flatcar-ci
bbfe6695a4 New version: main-3375.0.0-nightly-20220927-2100 2022-09-27 21:00:35 +00:00
Kai Lüke
dca21df916
Merge pull request #513 from flatcar/kai/container-fallback
ci-automation: Fallback also to the mirror for container download
2022-09-27 17:49:53 +02:00
Kai Lüke
270011d856
Merge pull request #512 from flatcar/kai/download-from-mirror
sdk_lib: Also look at the mirror to download the SDK tar ball
2022-09-27 17:10:17 +02:00
Kai Lueke
20643b260e ci-automation: Fallback also to the mirror for container download
When there is no SDK container image in the registry, the fallback
looks at bincache but bincache isn't backed up and may be cleaned of
old releases. While this won't be the regular case, the container
image registry may be unavailable (or renamed as happened now), or
people would like to rerun the image job which relies on the packages
container.
2022-09-27 15:53:33 +02:00
Krzesimir Nowak
0f73511f4e
Merge pull request #511 from flatcar/krnowak/mantle-lts-info
.github: Use lts-info
2022-09-27 15:12:38 +02:00
Kai Lueke
df41bc4a75 sdk_lib: Also look at the mirror to download the SDK tar ball
The bootstrap downloads the previous SDK currently only from bincache
but bincache isn't backed up and may be cleaned of old releases.
The SDK tar ball is also available on the mirror and allows the
bootstrap to succeed without copying the seed SDK to bincache first.
2022-09-27 15:04:01 +02:00
Krzesimir Nowak
65d21af086 .github: Use lts-info
We can use lts-info to optionally update mantle container in old LTS
branch too.
2022-09-27 13:02:27 +02:00
Dongsu Park
28896e7767 Merge pull request #365 from flatcar/dongsu/expat-2.4.9
dev-libs/expat: update to 2.4.9
2022-09-27 12:38:38 +02:00
Dongsu Park
9ce9a688e3 .github: add dev-libs/expat to packages-list 2022-09-27 12:17:13 +02:00
Krzesimir Nowak
a207dea73c
Merge pull request #390 from flatcar/krnowak/qemu-update-lts-info
Use lts-info to download correct previous image for LTS release
2022-09-27 12:17:09 +02:00
Dongsu Park
3b201cffb0 changelog: add changelog for expat 2.4.9 2022-09-27 12:16:55 +02:00
Dongsu Park
9667ee954c dev-libs/expat: update to 2.4.9
Update dev-libs/expat to 2.4.9, mainly to address CVE-2022-40674.
2022-09-27 12:16:55 +02:00
Mathieu Tortuyaux
acdc6ca870 Merge pull request #2187 from flatcar/tormath1/ign-converter
sys-apps/ignition: rework ignition patches
2022-09-27 11:58:29 +02:00
Krzesimir Nowak
24213a5c96 ci-automation: Download correct previous image for LTS release
qemu_update vendor test was downloading a wrong LTS image when it was
testing the old LTS image. This is because it was using a current
symlink, which for LTS channel will always point to the new LTS. Old
LTS is available under current-${YEAR} symlink. We can get the
information about year from the lts-info file.
2022-09-27 11:56:39 +02:00
Mathieu Tortuyaux
a8a793fa94 changelog: add entry
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-09-27 11:48:00 +02:00
Mathieu Tortuyaux
3e50a7fd12 sys-apps/ignition: rework ignition patches
`ign-converter` is now part of the Ignition codebase, it should ease the
maintaining of these patches.

Only the v24tov31 translation (and its tests) has been ported to the codebase.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-09-27 11:48:00 +02:00
flatcar-ci
b4427a99ab New version: main-3374.0.0-nightly-20220926-2100 2022-09-27 09:18:40 +00:00
Krzesimir Nowak
11b350526b
Merge pull request #510 from flatcar/krnowak/unbound-variable
ci-automation: Fix unbound variable errors
2022-09-27 11:16:45 +02:00
Krzesimir Nowak
2606380396 ci-automation: Fix unbound variable errors
FLATCAR_VERSION and FLATCAR_SDK_VERSION are defined in the version
file, so it should be sourced before trying to use those. Here we try
to do it in a limited scope.

Also, SDK container link should use the dockerized version in a
directory name.
2022-09-27 10:55:08 +02:00
Dongsu Park
5e7729a745 Merge pull request #2185 from flatcar/linux-5.15.70-main
Upgrade Linux Kernel in main from 5.15.67 to 5.15.70
2022-09-27 09:09:07 +02:00
flatcar-ci
805d2b46e6 New version: main-3370.0.0-nightly-20220922-2100 2022-09-26 15:30:08 +00:00
Kai Lueke
326c645647 ci-automation: Fix syntax error 2022-09-26 17:24:53 +02:00
Kai Lüke
9620468a81
Merge pull request #509 from flatcar/kai/nightly-after-failure
ci-automation: Don't skip nightly build when the previous one failed
2022-09-26 17:17:35 +02:00
Kai Lueke
bca6e6e41d ci-automation: Don't skip nightly build when the previous one failed
Currently we skip the nightly build if there are no changes. This
didn't work well because a new run doesn't fix any failure because the
rerun became a no-op.
Check if the main artifacts we expect from a step are found, as simple
heuristic on whether a rerun is needed.
2022-09-26 17:06:21 +02:00
Kai Lueke
18627499c1 Annotate a copied function
I found a duplicate function and verified that it's the only one via
comm -12 <(sort ci-automation/ci_automation_common.sh) <(sort sdk_lib/sdk_container_common.sh) | grep function
I'm not sure if this is due to a case where we only import one but
can't import the other, hence I'm not deleting it now.
2022-09-26 15:39:45 +02:00
Krzesimir Nowak
527d174b50
.github: Fix syntax error 2022-09-26 15:14:35 +02:00
Krzesimir Nowak
204a54bb76 Merge pull request #2186 from flatcar/krnowak/revert-old-lts-workarounds
.github: Revert old lts workarounds
2022-09-26 15:07:48 +02:00
Krzesimir Nowak
12bf11ad05
Merge pull request #508 from flatcar/krnowak/mantle-old-lts
.github: Update mantle in old LTS too
2022-09-26 15:07:37 +02:00
Krzesimir Nowak
610c41bcc5 .github: Partially revert some changes
It partially reverts commits 9ecbd31df40e8cf4361db7f638c089e4df3dc503
and 1b08c65f7b5797dd153898f148b98429feeacd2c. The reverted parts were
workarounds for old LTS, which used to have no run_sdk_container
stuff.
2022-09-26 14:43:36 +02:00
Krzesimir Nowak
4e4d0891e9 Revert ".github: make each apply script take parameters CHECKOUT_SCRIPTS"
This reverts commit f008fb5883afee1d83d636a06cc9c9b192705793.

This was introduced for old LTS that didn't use submodules in
scripts. Now it's backported, so this workaround is not needed.
2022-09-26 14:38:23 +02:00
Krzesimir Nowak
3ebbbd01cb .github: Update mantle in old LTS too 2022-09-26 14:23:47 +02:00
Krzesimir Nowak
3a4611fb68 Merge pull request #363 from flatcar/krnowak/automate-updates
.github: Add an automatic package updates workflow
2022-09-26 13:13:35 +02:00
Krzesimir Nowak
25883519d9
Merge pull request #504 from flatcar/mantle-update-main
Upgrade mantle container image to latest HEAD in main
2022-09-26 10:49:42 +02:00
Flatcar Buildbot
85fb522a5a Update mantle container image to latest HEAD 2022-09-26 08:48:18 +00:00
Flatcar Buildbot
bc5705c6e0 sys-kernel: Upgrade Kernel 5.15.67 to 5.15.70 2022-09-24 07:26:04 +00:00
Krzesimir Nowak
7187138bb7 .github: Add an automatic package updates workflow
It will run on every Monday and will try to update packages listed in
the package listing. This can be used to gradually add more and more
packages under the automation.
2022-09-23 14:31:39 +02:00
flatcar-ci
452a38a737 New version: main-3370.0.0-nightly-20220922-2100 2022-09-22 21:00:34 +00:00
Kai Lüke
a6b6645733
Merge pull request #501 from flatcar/mantle-update-main
Upgrade mantle container image to latest HEAD in main
2022-09-22 18:49:04 +02:00
Flatcar Buildbot
87b5565f5e Update mantle container image to latest HEAD 2022-09-22 16:45:00 +00:00
Kai Lüke
d6cb1009c6
Merge pull request #475 from flatcar/kai/plume-release
ci-automation/release.sh: Run plume to release cloud images
2022-09-22 18:44:39 +02:00
Kai Lueke
3fef1eb801 ci-automation/release: Set up secret envs 2022-09-22 18:31:50 +02:00
Kai Lueke
ffee812d32 ci-automation/release: Run plume release only once
We need to run plume only once for each arch, move it out of the loop.
Also, address some smaller things that shellcheck complains about.
2022-09-22 18:31:50 +02:00
Kai Lueke
79d89faf91 ci-automation/secret_to_file: Fix usage from subshell
This failed when used from ( secret_to_file ... VAR ; cat $VAR )
because ( ) starts a new subshell PID and secret_to_file's returned
/proc/PID/fd/X path was then using the wrong PID.
2022-09-22 18:31:50 +02:00
Kai Lueke
ef8f20f9dd ci-automation/release: Disable GCS auth for plume pre-release
When GCS auth is expected, plume would upload the AMI list to GCS.
2022-09-22 18:31:50 +02:00
Mathieu Tortuyaux
593cf19a7a release: get product IDs from Jenkins
the JSON object is passed from the Groovy script to the release script,
we just need to extract the correct AWS Marketplace product ID based on
the "<channel>-<arch>".

Exception for the stable-amd64 where we also need to get the stable-pro
product ID.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-09-22 18:31:50 +02:00
Mathieu Tortuyaux
27b62deb81 sdk_container: publish the SDK on a Docker registry
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-09-22 18:31:50 +02:00
Kai Lueke
20ed1ad3a4 ci-automation/release.sh: Run plume to release cloud images
The mantle plume tool has two steps, pre-release is the mere upload and
release is the publication. In the past this was used to run the tests
inbetween but we don't do this anymore.
Run plume pre-release and release in a single job. Since plume can't
push to GCS in our case, we upload the files to bincache. Also do the
cloudformation update which was previously done in
flatcar-build-scripts but could only be run after the sync to Origin.
It requires the "aws" tool in the mantle container until we implement
this in plume directly.
2022-09-22 18:31:48 +02:00
flatcar-ci
fcc3b86ff2 New version: main-3369.0.0-nightly-20220921-2100 2022-09-21 21:00:27 +00:00