4968 Commits

Author SHA1 Message Date
flatcar-ci
0c2341b9dc New version: lts-3033.3.5-nightly-20221004-2100 2022-10-04 21:00:45 +00:00
Kai Lueke
b1ac28db6b Merge pull request #522 from flatcar/scripts
ci-automation/release: Only upload SDK if a new one was built
2022-10-04 15:21:51 +02:00
Kai Lueke
e041934ea3 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:51 +02:00
flatcar-ci
a3f8f1fcb6 New version: lts-3033.3.5-nightly-20220930-2100 2022-09-30 21:00:34 +00:00
flatcar-ci
411cf7a035 New version: lts-3033.3.5-nightly-20220929-2100 2022-09-29 21:00:32 +00:00
Kai Lüke
8fbf36b1d3
Merge pull request #518 from flatcar/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-09-29 18:52:49 +02:00
Flatcar Buildbot
2df1e391c4 Update mantle container image to latest HEAD 2022-09-29 16:32:34 +00:00
Mathieu Tortuyaux
9e42937024
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:53:00 +02:00
flatcar-ci
97378b48be New version: lts-3033.3.5-nightly-20220928-2100 2022-09-28 21:00:32 +00:00
flatcar-ci
62cc20c372 New version: lts-3033.3.5-nightly-20220927-2100 2022-09-27 21:00:32 +00:00
Kai Lueke
6f1cd2d93e Merge pull request #513 from flatcar/scripts
ci-automation: Fallback also to the mirror for container download
2022-09-27 17:50:48 +02:00
Kai Lueke
45ab5fb920 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:48 +02:00
Kai Lueke
630d871b9b 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:47 +02:00
Kai Lueke
2053feb42a 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:47 +02:00
Krzesimir Nowak
972df22cbd Merge pull request #390 from flatcar/scripts
Use lts-info to download correct previous image for LTS release
2022-09-27 12:18:22 +02:00
Krzesimir Nowak
9151ca4e5a 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:18:22 +02:00
Kai Lueke
65fdcad7ff Merge pull request #510 from flatcar/scripts
ci-automation: Fix unbound variable errors
2022-09-27 11:42:55 +02:00
Krzesimir Nowak
9e8d724673 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:55 +02:00
flatcar-ci
8a3d7de31a New version: lts-3033.3.5-nightly-20220926-2100 2022-09-26 21:00:26 +00:00
Kai Lueke
3b218a12d3 ci-automation: Fix syntax error 2022-09-26 17:26:27 +02:00
Kai Lueke
587eccd451 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:45 +02:00
Kai Lueke
6a6faf79dd 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:45 +02:00
Kai Lueke
c4b1b38810 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:45 +02:00
Krzesimir Nowak
4a6ac4f839
Merge pull request #505 from flatcar/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-09-26 10:49:42 +02:00
Flatcar Buildbot
da238acea3 Update mantle container image to latest HEAD 2022-09-26 08:48:20 +00:00
flatcar-ci
fae7b8ae61 New version: lts-3033.3.5-nightly-20220922-2100 2022-09-22 21:00:33 +00:00
Kai Lüke
5a070d47ef
Merge pull request #500 from flatcar/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-09-22 19:17:45 +02:00
Flatcar Buildbot
4f0454ac07 Update mantle container image to latest HEAD 2022-09-22 16:49:18 +00:00
Kai Lueke
cbda575681 Merge pull request #475 from flatcar/scripts
ci-automation/release.sh: Run plume to release cloud images
2022-09-22 18:46:13 +02:00
Kai Lueke
fe018789e1 ci-automation/release: Set up secret envs 2022-09-22 18:46:13 +02:00
Kai Lueke
e4515d8d29 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:13 +02:00
Kai Lueke
c8fe4f8f4c 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:13 +02:00
Kai Lueke
27f90e330c 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:13 +02:00
Mathieu Tortuyaux
23da2ac8d0 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:46:13 +02:00
Mathieu Tortuyaux
abb597d34a sdk_container: publish the SDK on a Docker registry
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-09-22 18:46:13 +02:00
Kai Lueke
b9e23a70db 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:46:13 +02:00
flatcar-ci
ec6a259695 New version: lts-3033.3.5-nightly-20220921-2100 2022-09-21 21:00:26 +00:00
Krzesimir Nowak
ffd2f0d05e
Merge pull request #496 from flatcar/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-09-21 17:20:09 +02:00
Flatcar Buildbot
47174bc8bd Update mantle container image to latest HEAD 2022-09-21 15:12:17 +00:00
flatcar-ci
c55f676f88 New version: lts-3033.3.5-nightly-20220920-2100 2022-09-20 21:00:39 +00:00
Mathieu Tortuyaux
6967b4e8bd
Merge pull request #488 from flatcar/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-09-20 15:40:59 +02:00
Flatcar Buildbot
26b23d34fc Update mantle container image to latest HEAD 2022-09-20 12:38:08 +00:00
flatcar-ci
7b930da5af New version: lts-3033.3.5-nightly-20220919-2100 2022-09-19 21:00:40 +00:00
Kai Lüke
0988bb3de8
Merge pull request #482 from flatcar/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-09-19 15:58:06 +02:00
Flatcar Buildbot
1d05324f4c Update mantle container image to latest HEAD 2022-09-19 13:56:25 +00:00
Krzesimir Nowak
51043985e1 Merge pull request #481 from flatcar/scripts
ci-automation: Implement a stricter image version check
2022-09-19 15:04:40 +02:00
Krzesimir Nowak
0a492a4290 ci-automation: Implement a stricter image version check
I made a mistake and wrote a version like main-3363-0.0-stuff (note a
dash instead of a dot after the first number). Surprisingly the build
chugged along just fine almost until the end of the image job - it
detected invalid version string when the job wanted to create a
version.txt file:

ERROR   build_image: script called: build_image '--board=amd64-usr' '--group=developer' '--output_root=/home/sdk/build/images' '--only_store_compressed' '--torcx_root=/home/sdk/build/torcx' 'prodtar' 'container'
ERROR   build_image: Backtrace:  (most recent call is last)
ERROR   build_image:   file build_image, line 196, called: split_ver '3363' 'SPLIT'
ERROR   build_image:   file common.sh, line 192, called: die 'Invalid version string '3363''
ERROR   build_image:
ERROR   build_image: Error was:
ERROR   build_image:   Invalid version string '3363'

Let's have a stricter version check in the beginning of the build
process, so the process fails sooner rather than later.
2022-09-19 15:04:40 +02:00
flatcar-ci
fbd7a3b4b7 New version: lts-3033.3.5-nightly-20220916-2100 2022-09-16 21:00:30 +00:00
Kai Lüke
b0192ca956
Merge pull request #479 from flatcar/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-09-16 10:07:46 +02:00
Flatcar Buildbot
753f1f3b9d Update mantle container image to latest HEAD 2022-09-15 21:00:47 +00:00