4799 Commits

Author SHA1 Message Date
Kai Lueke
9be829fe2d Merge pull request #366 from flatcar-linux/scripts
Add concurency setting to CI workflow
2022-07-13 18:14:11 +02:00
Gabriel Adrian Samfira
b34fc75ee1 Add concurency setting to CI workflow
This change will prompt the CI workflow to cancel a currently running
job, if a new push is sent in a PR. This should prevent duplicate jobs
running for the same PR simultaneously.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-13 18:14:11 +02:00
Kai Lueke
909b43a190 Merge pull request #354 from flatcar-linux/scripts
Add CI workflow
2022-07-13 18:11:42 +02:00
Gabriel Adrian Samfira
1568aa3f45 Add CI workflow 2022-07-13 18:11:42 +02:00
flatcar-ci
8c105c4c41 New version: lts-3033.3.2-nightly-20220711-2100 2022-07-11 21:02:20 +00:00
Kai Lüke
6c2a318cf1
Merge pull request #370 from flatcar-linux/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-07-11 12:11:06 +02:00
Flatcar Buildbot
732cc6e2e1 Update mantle container image to latest HEAD 2022-07-11 07:10:35 +00:00
flatcar-ci
6ab4f94c58 New version: lts-3033.3.2-nightly-20220707-2100 2022-07-07 21:00:32 +00:00
flatcar-ci
fdf7a2c346 New version: lts-3033.3.2-nightly-20220706-2100 2022-07-06 21:02:17 +00:00
Kai Lueke
4b3516fc28 Merge pull request #365 from flatcar-linux/scripts
ci-automation: Only store compressed images
2022-07-06 15:55:51 +02:00
Kai Lueke
1455fe3f25 ci-automation: Only store compressed images
The new build pipeline compresses images already but uploaded both the
compressed and uncompressed files because the whole build folder gets
uploaded.
Add a new flag "--only_store_compressed" to the image generation which
deletes the uncompressed file after compression is done. Uncompressed
images are still supported if specified in the flag
"image_compression_formats".

Closes https://github.com/flatcar-linux/Flatcar/issues/793
2022-07-06 15:55:51 +02:00
flatcar-ci
40bfe39aaa New version: lts-3033.3.2-nightly-20220701-2100 2022-07-01 21:02:01 +00:00
Kai Lueke
5ae4c6ebb6 Merge pull request #332 from flatcar-linux/scripts
ci-automation: Do not rerun tests on unrelated instances
2022-07-01 14:46:39 +02:00
Krzesimir Nowak
af5b04d2f5 ci-automation: Fix potential use of unbound variable error
`local -a stuff` does not make `stuff` a bound array variable, so
checking length of the array will trigger an error about unbound
variable. Fortunately, `local stuff=()` does the trick.
2022-07-01 14:46:39 +02:00
Krzesimir Nowak
577628ce1e ci-automation: Do not rerun tests on unrelated instances
We forgot to clear the array with instance tests to rerun, so the list
grew from one iteration to another when going over all the instance
types. I did not spot it before, because I tested it with only one
extra instance.
2022-07-01 14:46:39 +02:00
Kai Lueke
787e7689b8 Merge pull request #233 from flatcar-linux/scripts
Make image compression format configurable
2022-07-01 14:42:49 +02:00
Gabriel
dec0d31420 Update changelog/changes/2022-02-22-configurable-image-compression.md
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
2022-07-01 14:42:49 +02:00
Gabriel
94aa4a6c14 Update jenkins/vms.sh
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
2022-07-01 14:42:49 +02:00
Gabriel Adrian Samfira
716c15a729 Rename zstd to zst
Rename sztd to zst and amend the changelog. The zstd binary generates a
compressed file with the .zst extension by default.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-01 14:42:49 +02:00
Gabriel Adrian Samfira
4c86576bc4 Remove commented code 2022-07-01 14:42:49 +02:00
Gabriel Adrian Samfira
43c031ae00 Allow specifying multiple compression formats
Add the ability to specify a comma separated list of compression formats.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-01 14:42:49 +02:00
Gabriel Adrian Samfira
7a7eec19ad Use gzip compression for OpenStack images
This change makes the Jenkins job output openstack images using gzip
compression format. This allows OpenStack users to directly consume images
by simply specifying the URL to the image. Glance will then download the
image, unarchive it and add it to it's catalogue.

Fixes #575

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-01 14:42:49 +02:00
Gabriel Adrian Samfira
5a14212c65 Make image compression format configurable
This change adds a new flag called --image_compression_format which
allows us to output the final VM image as one of the supported formats:

bz2 (default), gz, zip or none

if the compression format is "none" or "", the image will not be compressed.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-01 14:42:49 +02:00
Kai Lüke
e7ee88a955
Merge pull request #360 from flatcar-linux/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-06-30 23:27:59 +02:00
flatcar-ci
3f32228bae New version: lts-3033.3.2-nightly-20220630-2100 2022-06-30 21:02:14 +00:00
Flatcar Buildbot
ae7c4d9186 Update mantle container image to latest HEAD 2022-06-30 21:00:44 +00:00
flatcar-ci
672e92cf50 New version: lts-3033.3.2-nightly-20220629-2100 2022-06-29 21:02:01 +00:00
Kai Lueke
487ca7a8b8 Merge pull request #355 from flatcar-linux/scripts
ci-automation: Use the package container for VM image building
2022-06-29 15:38:07 +02:00
Kai Lueke
daa8bcefc3 ci-automation: Run package-diff to report image changes
The original pipeline has package-diff commands to print out image
differences compared to the last release. This is used for the release
Go/No-Go QA checks.
Add the same logic to the new pipeline.
2022-06-29 15:38:07 +02:00
Kai Lueke
cb20e19002 ci-automation: Use the package container for VM image building
The image job builds an image container that is multiple GBs big and
takes >10 mins to be loaded in the vms job. The vms job can also do its
work by running from the packages container from the packages job when
it fetchs the built image from bincache first and assuming the images
job copies it there.
Skip generating the image container and instead use the packages
container for VM image building by copying the image folder first to
bincache and then retrieving it from there. While reworking this we
also address the issue that the VMs container had used the same name
for both architectures, causing a race when both run in parallel on
the same worker.
2022-06-29 15:38:07 +02:00
Kai Lueke
49760ccd41 Merge pull request #359 from flatcar-linux/scripts
Add retag-for-jenkins helper
2022-06-29 15:30:41 +02:00
Kai Lueke
13c13d3187 Add retag-for-jenkins helper
When testing "scripts" changes with Jenkins and a leaf job fails, we
currently would have to restart the whole build or update the git tag
manually. Since dealing with the git tag is not straightforward, add
a helper to update it.
2022-06-29 15:30:41 +02:00
Kai Lueke
db4ed369b6 Merge pull request #358 from flatcar-linux/scripts
ci-automation: align VM image compression with existing pipeline
2022-06-29 11:40:08 +02:00
Kai Lueke
077c9a5604 ci-automation: align VM image compression with existing pipeline
In jenkins/vms.sh the Digital Ocean and OpenStack images get also
compressed as gzip.
Do so for the new pipeline, too.
2022-06-29 11:40:07 +02:00
Kai Lüke
4be7c10c20
Merge pull request #351 from flatcar-linux/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-06-29 11:37:14 +02:00
Flatcar Buildbot
7db50a5c65 Update mantle container image to latest HEAD 2022-06-29 09:35:38 +00:00
flatcar-ci
8711bf7af1 New version: lts-3033.3.2-nightly-20220628-2100 2022-06-28 21:02:05 +00:00
flatcar-ci
3f1f0b9790 New version: lts-3033.3.2-nightly-20220624-2100 2022-06-24 21:02:04 +00:00
Sayan Chowdhury
01c821e9be
New version: lts-3033.3.2 lts-3033.3.2 2022-06-21 04:10:19 +05:30
flatcar-ci
c3c995878e New version: lts-3033.3.1-nightly-20220617-2100 2022-06-17 21:02:20 +00:00
flatcar-ci
f16643c690 New version: lts-3033.3.1-nightly-20220615-2100 2022-06-15 21:02:06 +00:00
flatcar-ci
c9c2837196 New version: lts-3033.3.1-nightly-20220613-2100 2022-06-13 21:02:15 +00:00
Kai Lüke
1a63e671c8
Merge pull request #344 from flatcar-linux/mantle-update-flatcar-3033
Upgrade mantle container image to latest HEAD in flatcar-3033
2022-06-13 15:44:15 +02:00
Flatcar Buildbot
e848f235dc Update mantle container image to latest HEAD 2022-06-09 21:00:51 +00:00
flatcar-ci
b9b32482f0 New version: lts-3033.3.1-nightly-20220603-2100 2022-06-03 21:02:14 +00:00
Krzesimir Nowak
ed5cb2c4f3 Merge pull request #334 from flatcar-linux/scripts
ci-automation: Sign the artifacts
2022-06-03 17:56:56 +02:00
Krzesimir Nowak
474b58b93f ci-automation: Sign artifacts and upload the signatures
It uses the SIGNER environment variable to decide whether the
signatures should be created or not. It expect the key of the SIGNER
to exist in GPGHOME, and that's what gpg_setup.sh is already doing.

In some places we need to recursively change the owner of the
directory that contains artifacts to be signed, otherwise we won't be
able to create new files with signatures there. This is because some
of the artifacts are either created inside the SDK container (so the
created files belong to root outside the container) or are created
with `sudo`.
2022-06-03 17:56:56 +02:00
Krzesimir Nowak
36d0a36e60 sdk: Forward SIGNER environment variable
Some of the signing may happen inside the SDK container, so make sure
to forward the SIGNER environment variable, as it will be used by the
signing function, when it's introduced.
2022-06-03 17:56:56 +02:00
Krzesimir Nowak
e9ddc2eda7 ci-automation: Set up keys for signing
Not used for anything yet. This sets up a temporary GPGHOME directory
and a trap that will remove it after we are done.
2022-06-03 17:56:56 +02:00
Krzesimir Nowak
3aadfc2bfc ci-automation: Run functions in subshells
The functions are sourcing other files that define global variables,
so they will spill into the callers shell unnecessarily. We will also
add some functionality that uses traps in follow-up commits, so it's
good to limit the scope of traps too.
2022-06-03 17:56:56 +02:00