4932 Commits

Author SHA1 Message Date
Kai Lueke
a97dcfacee 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:32 +02:00
Kai Lueke
b25979687f Merge pull request #359 from flatcar-linux/scripts
Add retag-for-jenkins helper
2022-06-29 15:31:15 +02:00
Kai Lueke
9c3dd4f1ce 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:15 +02:00
Kai Lueke
5a7ce68bda Merge pull request #358 from flatcar-linux/scripts
ci-automation: align VM image compression with existing pipeline
2022-06-29 11:41:10 +02:00
Kai Lueke
44f62d5bc1 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:41:10 +02:00
Kai Lüke
ae81c776b2
Merge pull request #352 from flatcar-linux/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-06-29 11:36:20 +02:00
Flatcar Buildbot
606d6cf4be Update mantle container image to latest HEAD 2022-06-29 09:35:40 +00:00
flatcar-ci
628456908d New version: alpha-3277.0.0-nightly-20220628-2100 2022-06-28 21:02:12 +00:00
Sayan Chowdhury
b886a22463
New version: alpha-3277.0.0 alpha-3277.0.0 2022-06-21 03:46:11 +05:30
flatcar-ci
f12224d985 New version: main-3276.0.0-nightly-20220620-2100 2022-06-20 21:00:22 +00:00
flatcar-ci
11ab199dbb New version: main-3273.0.0-nightly-20220617-2100 2022-06-17 21:00:29 +00:00
flatcar-ci
63d08a2eac New version: main-3272.0.0-nightly-20220616-2100 2022-06-16 21:00:27 +00:00
flatcar-ci
2b0131a712 New version: main-3271.0.0-nightly-20220615-2100 2022-06-15 21:00:23 +00:00
flatcar-ci
9301997a7d New version: main-3270.0.0-nightly-20220614-2100 2022-06-14 21:00:30 +00:00
flatcar-ci
a158390aef New version: main-3269.0.0-nightly-20220613-2100 2022-06-13 21:00:27 +00:00
Kai Lüke
3c2e2de7c4
Merge pull request #341 from flatcar-linux/mantle-update-main
Upgrade mantle container image to latest HEAD in main
2022-06-13 15:42:43 +02:00
Flatcar Buildbot
7d6dbab23d Update mantle container image to latest HEAD 2022-06-10 21:00:54 +00:00
flatcar-ci
af61b1d12d New version: main-3266.0.0-nightly-20220610-2100 2022-06-10 21:00:34 +00:00
flatcar-ci
1908ef3cbe New version: main-3265.0.0-nightly-20220609-2100 2022-06-09 21:00:30 +00:00
flatcar-ci
4e9d6b5cb5 New version: main-3264.0.0-nightly-20220608-2100 2022-06-08 21:00:26 +00:00
flatcar-ci
70ee16daeb New version: main-3259.0.0-nightly-20220603-2100 2022-06-03 21:00:33 +00:00
Krzesimir Nowak
c3e5e754e9
Merge pull request #334 from flatcar-linux/krnowak/sign-images
ci-automation: Sign the artifacts
2022-06-03 17:29:13 +02:00
Krzesimir Nowak
53d3567b0c
Merge pull request #346 from flatcar-linux/krnowak/azure-fixes
ci-automation/vendor-testing/azure.sh: Small fixes
2022-06-03 17:26:09 +02:00
Krzesimir Nowak
527bd2237b 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 14:59:38 +02:00
Krzesimir Nowak
89e82185d0 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 14:59:26 +02:00
Krzesimir Nowak
0e0eb67ca2 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 14:59:26 +02:00
Krzesimir Nowak
090d7ec176 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 14:58:29 +02:00
Krzesimir Nowak
698d0de129 ci-automation: Trivial fixes
Dropped some trailing whitespace, fixed a typo. Trivial.
2022-06-03 14:56:51 +02:00
flatcar-ci
9b57d5ded6 New version: main-3258.0.0-nightly-20220602-2100 2022-06-02 21:00:31 +00:00
Krzesimir Nowak
cec96aeec5 ci-automation/vendor-testing/azure.sh: Small fixes
Fix some comments, quote some variables.
2022-06-02 18:40:06 +02:00
Kai Lüke
115c18fccb
Merge pull request #345 from flatcar-linux/kai/parallel-tests-arm64
jenkins/kola/azure|packet.sh: Remove hardcoded arm64 parallel test limit and align the timeout with the GC duration
2022-06-02 20:39:54 +09:00
Kai Lueke
6c0fb8959d 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 14:08:28 +09:00
Kai Lueke
41506d0e39 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 14:01:11 +09:00
Kai Lueke
730e07fd9e 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 13:59:34 +09:00
flatcar-ci
ba468c2e14 New version: main-3257.0.0-nightly-20220601-2100 2022-06-01 21:00:32 +00:00
Kai Lüke
6b29a89efd
Merge pull request #339 from flatcar-linux/kai/umount-hosts
run_sdk_container: Workaround for write-protected /etc/hosts bind-mount
2022-06-01 21:58:03 +09:00
Kai Lueke
677343ca2e 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 14:21:07 +09:00
flatcar-ci
a60ab28eaf New version: main-3252.0.0-nightly-20220527-2100 2022-05-27 21:00:26 +00:00
Sayan Chowdhury
42608d3c67
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 08:01:59 +02:00
flatcar-ci
70851bb403 New version: main-3250.0.0-nightly-20220525-2100 2022-05-25 21:00:29 +00:00
flatcar-ci
28357c6c22 New version: main-3250.0.0-nightly-20220525-0155 2022-05-25 01:55:24 +00:00
Kai Lüke
c9089cf8d0
Merge pull request #333 from flatcar-linux/kai/push-versionfile-early
ci-automation: Push version file early
2022-05-24 17:41:42 +09:00
Sayan Chowdhury
f615aac4a2
Merge pull request #335 from flatcar-linux/sayan/no-upload-to-private-ii
The LTS and Pro feature no longer requires the private bucket
2022-05-24 13:22:21 +05:30
Sayan Chowdhury
8492dc9329
The LTS and Pro feature no longer requires the private bucket
hence we can remove the --private argument to upload

Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2022-05-24 13:15:32 +05:30
flatcar-ci
9a95f40f45 New version: main-3249.0.0-nightly-20220524-0155 2022-05-24 04:46:39 +00:00
Kai Lueke
cee8a6aadf 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-23 22:40:02 +09:00
Kai Lueke
95367851fa ci-automation/sdk_bootstrap.sh: Allow omitting the optional parameters
The coreos/portage refs were allowed to be empty strings but the way
the function was run from Groovy the lack of quoting caused the empty
strings to be missing parameters.
Since the two parameters are meant to be optional, support omitting
them.
2022-05-23 19:29:39 +09:00
flatcar-ci
ea68ead086 New version: main-3246.0.0-nightly-20220521-0155 2022-05-21 04:45:52 +00:00
flatcar-ci
47321021f7 New version: main-3245.0.0-nightly-20220520-0155 2022-05-20 05:04:15 +00:00
flatcar-ci
7548405c99 New version: main-3244.0.0-nightly-20220519-0155 2022-05-19 04:46:29 +00:00