5120 Commits

Author SHA1 Message Date
Kai Lueke
d112e60390 ci-automation: Use plain AMI image for uploads
Recently we ran into sporadic corruption issues for AWS EC2 AMIs.
We use the streamOptimized VMDK format and it seems to cause problems
at the AWS side, regardless if created by qemu-img or vmdk-convert.
Switch to using the plain AMI images for uploading as workaround.
2022-10-31 10:34:18 +01:00
Kai Lueke
95b515d000 New version: stable-3227.2.4 2022-10-27 13:56:37 +02:00
Kai Lueke
27b15c1047 Merge pull request #538 from flatcar/scripts
ci-automation: Support local patches
2022-10-27 13:02:31 +02:00
Kai Lueke
b3acb7cf69 ci-automation: Support local patches
For embargoed releases it is useful to apply patches locally to build
with them before they are public. This allows to push the same patches
to the repo during the Flatcar release at the embargo lift. The result
is the same (as long as the scripts patches did not change parts of the
setup logic that was running before they got applied), we can just build
earlier and thus do the Flatcar release directly on the embargo lift
instead of having to wait with the build because it would require the
patches to be in the repos.
2022-10-27 13:02:31 +02:00
flatcar-ci
eaa3537d74 New version: stable-3227.2.3-nightly-20221025-2100 2022-10-25 21:00:28 +00:00
Kai Lüke
c6bd9f7c38
Merge pull request #535 from flatcar/mantle-update-flatcar-3227
Upgrade mantle container image to latest HEAD in flatcar-3227
2022-10-25 19:51:55 +02:00
Flatcar Buildbot
65c3f3baec Update mantle container image to latest HEAD 2022-10-24 21:00:46 +00:00
flatcar-ci
f754613309 New version: stable-3227.2.3-nightly-20221021-2100 2022-10-21 21:00:30 +00:00
flatcar-ci
ebf52241d5 New version: stable-3227.2.3-nightly-20221018-2100 2022-10-18 21:00:27 +00:00
Kai Lueke
b72be35e7f New version: stable-3227.2.3 stable-3227.2.3 2022-10-11 19:35:46 +02:00
Kai Lüke
6b91c930d8
Merge pull request #528 from flatcar/mantle-update-flatcar-3227
Upgrade mantle container image to latest HEAD in flatcar-3227
2022-10-11 16:27:38 +02:00
Flatcar Buildbot
dd810db52b Update mantle container image to latest HEAD 2022-10-11 14:26:05 +00:00
Krzesimir Nowak
1b52bf05d7 Merge pull request #523 from flatcar/scripts
ci-automation/vendor-testing/vmware.sh: Fix unbound variable use
2022-10-11 16:22:16 +02:00
Krzesimir Nowak
a8a3cbb40d ci-automation/vendor-testing/vmware.sh: Fix unbound variable use
This gets triggered when the test is rerun and an existing image is
reused.
2022-10-11 16:22:16 +02:00
flatcar-ci
1b1d7175fc New version: stable-3227.2.2-nightly-20221010-2100 2022-10-10 21:00:30 +00:00
flatcar-ci
0fc80bcf49 New version: stable-3227.2.2-nightly-20221004-2100 2022-10-04 21:00:32 +00:00
Kai Lueke
894ad61509 Merge pull request #522 from flatcar/scripts
ci-automation/release: Only upload SDK if a new one was built
2022-10-04 15:21:38 +02:00
Kai Lueke
eeeb394b2e ci-automation/release: Only upload SDK if a new one was built
A release includes an SDK if its SDK version is the release version.
Only then we need to upload a new SDK container image.
2022-10-04 15:21:38 +02:00
flatcar-ci
e1de79a403 New version: stable-3227.2.2-nightly-20220929-2100 2022-09-29 21:00:32 +00:00
Kai Lüke
0bc7ff1d76
Merge pull request #519 from flatcar/mantle-update-flatcar-3227
Upgrade mantle container image to latest HEAD in flatcar-3227
2022-09-29 18:52:36 +02:00
Flatcar Buildbot
6d407fcd96 Update mantle container image to latest HEAD 2022-09-29 16:32:38 +00:00
Mathieu Tortuyaux
24b5b0dca9
automation/gc: add openstack garbage collector
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-09-29 11:42:31 +02:00
Mathieu Tortuyaux
0dd367fa17
ci-automation: add openstack to tested vendors
Missing link to enable the tests in the Flatcar test suite.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-09-29 11:42:31 +02:00
Kai Lueke
af9969458e Merge pull request #514 from flatcar/scripts
ci-automation: Ensure to use latest container image
2022-09-29 10:09:20 +02:00
Kai Lueke
bb1c40bd3b 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:09:20 +02:00
flatcar-ci
5500cbe77c New version: stable-3227.2.2-nightly-20220928-2100 2022-09-28 21:00:27 +00:00
flatcar-ci
f1b0983e8d New version: stable-3227.2.2-nightly-20220927-2100 2022-09-27 21:00:32 +00:00
Kai Lueke
bdcaca3291 Merge pull request #513 from flatcar/scripts
ci-automation: Fallback also to the mirror for container download
2022-09-27 17:50:58 +02:00
Kai Lueke
ad1ff38192 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 17:50:58 +02:00
Kai Lueke
48c9c56da6 Merge pull request #512 from flatcar/scripts
sdk_lib: Also look at the mirror to download the SDK tar ball
2022-09-27 17:10:57 +02:00
Kai Lueke
86b382bbb6 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 17:10:57 +02:00
Krzesimir Nowak
aceae42e9d Merge pull request #390 from flatcar/scripts
Use lts-info to download correct previous image for LTS release
2022-09-27 12:17:56 +02:00
Krzesimir Nowak
d761bc8126 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 12:17:56 +02:00
Kai Lueke
5b489c81be Merge pull request #510 from flatcar/scripts
ci-automation: Fix unbound variable errors
2022-09-27 11:42:40 +02:00
Krzesimir Nowak
a7b9ab60d7 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 11:42:40 +02:00
flatcar-ci
59c6096553 New version: stable-3227.2.2-nightly-20220926-2100 2022-09-26 21:00:28 +00:00
Kai Lueke
74b830bec6 ci-automation: Fix syntax error 2022-09-26 17:26:41 +02:00
Kai Lueke
1566aa93a7 Merge pull request #509 from flatcar/scripts
ci-automation: Don&#39;t skip nightly build when the previous one failed
2022-09-26 17:19:33 +02:00
Kai Lueke
24768492ec 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:19:32 +02:00
Kai Lueke
378341b76b 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 17:19:32 +02:00
Krzesimir Nowak
53f5347d3e
Merge pull request #506 from flatcar/mantle-update-flatcar-3227
Upgrade mantle container image to latest HEAD in flatcar-3227
2022-09-26 10:49:43 +02:00
Flatcar Buildbot
4799867cd8 Update mantle container image to latest HEAD 2022-09-26 08:48:24 +00:00
flatcar-ci
cd2ac9868a New version: stable-3227.2.2-nightly-20220922-2100 2022-09-22 21:00:31 +00:00
Kai Lüke
94e0d1dcca
Merge pull request #499 from flatcar/mantle-update-flatcar-3227
Upgrade mantle container image to latest HEAD in flatcar-3227
2022-09-22 19:17:56 +02:00
Flatcar Buildbot
90dc5ed8fe Update mantle container image to latest HEAD 2022-09-22 16:49:22 +00:00
Kai Lueke
9b19ad648e Merge pull request #475 from flatcar/scripts
ci-automation/release.sh: Run plume to release cloud images
2022-09-22 18:46:01 +02:00
Kai Lueke
6b8c81ce2b ci-automation/release: Set up secret envs 2022-09-22 18:46:01 +02:00
Kai Lueke
9de51b849d 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:46:01 +02:00
Kai Lueke
cd679afbeb 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:46:01 +02:00
Kai Lueke
6692b3153f 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:46:01 +02:00