4922 Commits

Author SHA1 Message Date
Kai Lueke
1daa0993df Merge pull request #365 from flatcar-linux/scripts
ci-automation: Only store compressed images
2022-07-06 15:56:20 +02:00
Kai Lueke
cf53962736 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:56:20 +02:00
flatcar-ci
2961ed45d4 New version: beta-3227.1.1-nightly-20220701-2100 2022-07-01 21:02:03 +00:00
Kai Lueke
61c8503e0e Merge pull request #332 from flatcar-linux/scripts
ci-automation: Do not rerun tests on unrelated instances
2022-07-01 14:46:16 +02:00
Krzesimir Nowak
ef55393488 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:16 +02:00
Krzesimir Nowak
6763461fef 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:16 +02:00
Kai Lüke
6df5061e1d
Merge pull request #362 from flatcar-linux/mantle-update-flatcar-3227
Upgrade mantle container image to latest HEAD in flatcar-3227
2022-06-30 23:28:32 +02:00
flatcar-ci
b472dc00ff New version: beta-3227.1.1-nightly-20220630-2100 2022-06-30 21:01:59 +00:00
Flatcar Buildbot
5d87f60d8a Update mantle container image to latest HEAD 2022-06-30 21:00:46 +00:00
flatcar-ci
fad21fe9d9 New version: beta-3227.1.1-nightly-20220629-2100 2022-06-29 21:01:56 +00:00
Kai Lueke
8fd63de1f0 Merge pull request #355 from flatcar-linux/scripts
ci-automation: Use the package container for VM image building
2022-06-29 15:37:43 +02:00
Kai Lueke
7ec8e4a8af 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:37:43 +02:00
Kai Lueke
5fb593bcca 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:37:43 +02:00
Kai Lueke
d9fe509154 Merge pull request #359 from flatcar-linux/scripts
Add retag-for-jenkins helper
2022-06-29 15:31:04 +02:00
Kai Lueke
08397dc439 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:31:04 +02:00
Kai Lueke
69f1b381e8 Merge pull request #358 from flatcar-linux/scripts
ci-automation: align VM image compression with existing pipeline
2022-06-29 11:40:59 +02:00
Kai Lueke
e17ac3e9f7 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:59 +02:00
Kai Lüke
5c068132f8
Merge pull request #349 from flatcar-linux/mantle-update-flatcar-3227
Upgrade mantle container image to latest HEAD in flatcar-3227
2022-06-29 11:36:57 +02:00
Flatcar Buildbot
9255b6e184 Update mantle container image to latest HEAD 2022-06-29 09:35:39 +00:00
flatcar-ci
af0ac6d0f3 New version: beta-3227.1.1-nightly-20220628-2100 2022-06-28 21:02:12 +00:00
Sayan Chowdhury
68ac92e817
New version: beta-3227.1.1 beta-3227.1.1 2022-06-21 03:58:40 +05:30
flatcar-ci
6e8ebb33a0 New version: beta-3227.1.0-nightly-20220617-2100 2022-06-17 21:02:02 +00:00
flatcar-ci
732ab73bbf New version: beta-3227.1.0-nightly-20220615-2100 2022-06-15 21:00:24 +00:00
flatcar-ci
20c64c179b New version: beta-3227.1.0-nightly-20220613-2100 2022-06-13 21:02:13 +00:00
Kai Lüke
3199441cfe
Merge pull request #340 from flatcar-linux/mantle-update-flatcar-3227
Upgrade mantle container image to latest HEAD in flatcar-3227
2022-06-13 15:44:50 +02:00
Flatcar Buildbot
a4ad436fb5 Update mantle container image to latest HEAD 2022-06-09 21:00:49 +00:00
flatcar-ci
d53984667f New version: beta-3227.1.0-nightly-20220603-2100 2022-06-03 21:02:11 +00:00
Krzesimir Nowak
f98d3dfc26 Merge pull request #334 from flatcar-linux/scripts
ci-automation: Sign the artifacts
2022-06-03 17:56:32 +02:00
Krzesimir Nowak
e55a01043b 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:32 +02:00
Krzesimir Nowak
361e4a4b19 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:32 +02:00
Krzesimir Nowak
d1fa6f6678 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:32 +02:00
Krzesimir Nowak
e01690c7e9 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:32 +02:00
Krzesimir Nowak
888b1a7061 ci-automation: Trivial fixes
Dropped some trailing whitespace, fixed a typo. Trivial.
2022-06-03 17:56:32 +02:00
Krzesimir Nowak
68995707cd Merge pull request #346 from flatcar-linux/scripts
ci-automation/vendor-testing/azure.sh: Small fixes
2022-06-03 17:56:27 +02:00
Krzesimir Nowak
97c81d141c ci-automation/vendor-testing/azure.sh: Small fixes
Fix some comments, quote some variables.
2022-06-03 17:56:27 +02:00
flatcar-ci
ee32793327 New version: beta-3227.1.0-nightly-20220602-2100 2022-06-02 21:02:12 +00:00
Kai Lueke
c65681f95c Merge pull request #345 from flatcar-linux/scripts
jenkins/kola/azure|packet.sh: Remove hardcoded arm64 parallel test limit and align the timeout with the GC duration
2022-06-02 20:40:51 +09:00
Kai Lueke
77201602e7 ci-automation/vendor-testing/azure.sh: Align timeout with GC duration
The kola test run time shouldn't be longer than the GC duration to
prevent failing tests caused by GC interference.
Align the Azure kola timeout with the GC duration.
2022-06-02 20:40:51 +09:00
Kai Lueke
9e6a55189d jenkins/kola/azure.sh: Align the timeout with the GC duration
The kola test run time shouldn't be longer than the GC duration to
prevent failing tests caused by GC interference.
Align the Azure kola timeout with the GC duration.
2022-06-02 20:40:51 +09:00
Kai Lueke
484b94ff7a jenkins/kola/packet.sh: Remove hardcoded arm64 parallel test limit
The arm64 tests on EM sometimes hit the timeout.
Remove the hardcoded limit of 3 tests to default to 4 and otherwise
use the overwritten parameter.
2022-06-02 20:40:51 +09:00
flatcar-ci
70c1777d0f New version: alpha-3227.0.0-nightly-20220601-2100 2022-06-01 21:02:05 +00:00
Kai Lueke
085ba23b0e Merge pull request #339 from flatcar-linux/scripts
run_sdk_container: Workaround for write-protected /etc/hosts bind-mount
2022-06-01 22:00:07 +09:00
Kai Lueke
02e9aee12c run_sdk_container: Workaround for write-protected /etc/hosts bind-mount
The baselayout package wants to manage the /etc/hosts file and thus
fails to emerge in the SDK container. One would have to build a new
SDK container instead.
To unblock the LTS 3033.3.1 release we can add a workaround to make the
SDK container environment more similar to how cork worked by removing
the /etc/hosts bind mount. This action has to be added to
run_sdk_container instead of sdk_lib/sdk_entry.sh because the existing
SDK's copy of sdk_lib/sdk_entry.sh won't have the change.
2022-06-01 22:00:07 +09:00
Sayan Chowdhury
4f1e84f80f
New version: beta-3227.1.0 beta-3227.1.0 2022-05-31 03:58:56 +05:30
Sayan Chowdhury
24c318d126
New version: beta-3227.1.0 2022-05-30 18:52:58 +05:30
flatcar-ci
017de80717 New version: alpha-3227.0.0-nightly-20220527-2100 2022-05-27 21:02:33 +00:00
Sayan Chowdhury
ff89ddb968 ci-automation/azure: Add initial container tests infra for Azure (#274)
The Azure tests use a similar logic as the GCE tests where an the
instance type parameter normally used in AWS/Equinix Metal tests is
here used to specify whether the VM gets started in Gen V1 or V2 mode.

Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
2022-05-27 15:06:56 +09:00
flatcar-ci
6d44c38b1b New version: alpha-3227.0.0-nightly-20220525-0155 2022-05-25 01:57:04 +00:00
Kai Lueke
1adac80315 Merge pull request #333 from flatcar-linux/scripts
ci-automation: Push version file early
2022-05-24 17:43:44 +09:00
Kai Lueke
192469ce20 ci-automation: Push version file early
When a nightly build is started that pushes the version file to the
branch it was doing so only at the end of the build, causing the push
to fail if something else got merged in between.
Push the version file early by generating it the same way it would be
generated by the run_sdk_container/bootstrap_sdk_container scripts.
In the case of the SDK the version file gets the same version for the
OS and the SDK. Add some explanations about the version formats. Note
that the scripts will still rewrite the file but it should be a no-op.
2022-05-24 17:43:44 +09:00