4903 Commits

Author SHA1 Message Date
flatcar-ci
13eddc2129 New version: stable-3139.2.3-nightly-20220719-2100 2022-07-19 21:00:29 +00:00
Kai Lueke
3e862e9290 Merge pull request #386 from flatcar-linux/scripts
ci-automation: Move git tagging into own script
2022-07-19 19:37:03 +02:00
Kai Lueke
dfe4ee621d ci-automation: Move git tagging into own script
When the build system runs the packages jobs for both architectures in
parallel and has to create a new tag, tagging fails due to the race in
the tagging.
Move the git tagging to its own script that is run from a new top-level
job that starts the packages jobs for both architectures.
2022-07-19 19:37:03 +02:00
Kai Lueke
df60c9f2b6 Merge pull request #387 from flatcar-linux/scripts
.github: Specify remote when checking out c-o/p-s ref in workflow
2022-07-18 20:34:24 +02:00
Kai Lueke
2f13a65500 .github: Specify remote when checking out c-o/p-s ref in workflow
When the specified remote contains a same-named branch as origin,
the checkout fails with "fatal: 'X' matched multiple (Y) remote
tracking branches".
Add the remote name as prefix to make the reference unambiguous.
2022-07-18 20:34:23 +02:00
flatcar-ci
531069ce85 New version: stable-3139.2.3-nightly-20220715-2100 2022-07-15 21:02:15 +00:00
Kai Lueke
eeb7f1a3a1 Merge pull request #384 from flatcar-linux/scripts
.github: Use lxc containers for amd64 kola tests, too
2022-07-15 12:32:25 +02:00
Kai Lueke
b2c66dbe0a .github: Use lxc containers for amd64 kola tests, too
While we moved the arm64 tests to lxc containers, amd64 stayed on VMs
which were not easy to scale up.
Now the GitHub Action runner is running on lxc containers and we can
spawn more VMs in parallel because it has no memory limit.
2022-07-15 12:32:25 +02:00
flatcar-ci
3673c712d7 New version: stable-3139.2.3-nightly-20220714-2100 2022-07-14 21:02:08 +00:00
Krzesimir Nowak
e73c691c05 Merge pull request #377 from flatcar-linux/scripts
build_library: Try to clean up unused stuff
2022-07-14 17:09:50 +02:00
Krzesimir Nowak
1ea4d51ce7 build_library: Try to clean up unused stuff
There is some cruft left after grub hashes generation. After the
contents are zipped into archive, they don't need to be around any
more.

Try to remove the rootfs directory after unmounting the
image. disk_util can recreate it again if there is a need for it.

Remove the build directory used for generating ACI images - it's not
needed after successful installation.
2022-07-14 17:09:50 +02:00
Kai Lueke
86441290d1 Merge pull request #376 from flatcar-linux/scripts
ci-automation: Generate digests for artifacts
2022-07-14 16:54:37 +02:00
Krzesimir Nowak
4b15753085 ci-automation: Generate digests files for the built artifacts 2022-07-14 16:54:37 +02:00
Krzesimir Nowak
7e366e8a69 ci-automation: Add a function for generating digests
It works in a similar way to sign_artifacts - it takes a signer, a
list of files and directories, and generates digests next to the
respective files.
2022-07-14 16:54:37 +02:00
Krzesimir Nowak
4054ab200c ci-automation: Factor out listing files into a separate function
This will come in handy when listing files for creating digests files.
2022-07-14 16:54:37 +02:00
Kai Lueke
df6b8a7e1b Merge pull request #375 from flatcar-linux/scripts
ci-automation: Show changes by finding the previous channel
2022-07-14 13:45:30 +02:00
Kai Lueke
bd3b32f321 ci-automation: Show changes by finding the previous channel
The image comparison was done against the old release in the channel
we release to instead of the previous release with the same major
version. This means when a channel transition happens we see a large
diff instead of the diff against the previous release. While not bad
for finding problems, this is normally not needed. However, we want
to have two changelogs generated, one against the old release in the
channel we relese to and one against the previous release with the same
major version when a transition happens. There was no changelog
printing yet, and this is added now.
2022-07-14 13:45:30 +02:00
flatcar-ci
43fd9548a1 New version: stable-3139.2.3-nightly-20220713-2100 2022-07-13 21:02:23 +00:00
Kai Lüke
5d18c399aa
Merge pull request #379 from flatcar-linux/mantle-update-flatcar-3139
Upgrade mantle container image to latest HEAD in flatcar-3139
2022-07-13 18:25:21 +02:00
Kai Lueke
295356af8d Merge pull request #356 from flatcar-linux/scripts
.github: Run CI workflow only for PR events
2022-07-13 18:19:46 +02:00
Kai Lueke
84bd950d4e .github: Run CI workflow only for PR events
Building for the branch push event causes two builds per PR and is not
needed anyway (we have nightly builds for the main branch).
Only consider PR events to trigger the CI build.
2022-07-13 18:19:46 +02:00
Kai Lueke
ef040ae67d Merge pull request #374 from flatcar-linux/scripts
Make the kola test workflow reusable
2022-07-13 18:15:44 +02:00
Gabriel Adrian Samfira
d036e39cde Update kola test workflow
* arm64 tests now run in LXD containers instead of VMs
  * parallelism increased for arm64
  * some setup steps are skipped on arm64

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-13 18:15:44 +02:00
Gabriel Adrian Samfira
7d83d89385 Disable image mangle in qemu tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-13 18:15:44 +02:00
Gabriel Adrian Samfira
66d02a69a3 Make QEMU_UEFI_BIOS configurable
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-13 18:15:44 +02:00
Gabriel Adrian Samfira
292874bb52 Remove customizations for now
Remove arch and parallel options. Hardcode them for now.
2022-07-13 18:15:44 +02:00
Gabriel Adrian Samfira
674f11b213 Make the kola test workflow reusable
* Adds a reusable workflow that can run tests
  * Adapts the ci.yaml to use reusable workflow
  * Creates a new workflow that helps trigger tests using an arbitrary
    workflow run.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-13 18:15:44 +02:00
Gabriel Adrian Samfira
29d7d843af Add configuration options to test functions
* Add SKIP_COPY_TO_BINCACHE environment variable that will skip
    uploading test results to bincache. This is useful if we want to
    upload test results as artifacts on github.
  * make QEMU_IMAGE_NAME configurable

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-13 18:15:44 +02:00
Mathieu Tortuyaux
c740d57711 .github/ci: add kola qemu test
this initial attempt runs right after the "packages" jobs and downloads
the resulting artifacts.

The QEMU image is unzipped then the kola test is running using the
ci-automation scripts.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-07-13 18:15:44 +02:00
Kai Lueke
9878fe0590 Merge pull request #366 from flatcar-linux/scripts
Add concurency setting to CI workflow
2022-07-13 18:13:56 +02:00
Gabriel Adrian Samfira
7e1c4145e7 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:13:56 +02:00
Kai Lueke
d61132121d Merge pull request #354 from flatcar-linux/scripts
Add CI workflow
2022-07-13 18:11:58 +02:00
Gabriel Adrian Samfira
65c214d937 Add CI workflow 2022-07-13 18:11:58 +02:00
Flatcar Buildbot
f2f4472703 Update mantle container image to latest HEAD 2022-07-13 16:09:58 +00:00
flatcar-ci
874911137e New version: stable-3139.2.3-nightly-20220711-2100 2022-07-11 21:02:26 +00:00
Kai Lüke
4afe6f6975
Merge pull request #373 from flatcar-linux/mantle-update-flatcar-3139
Upgrade mantle container image to latest HEAD in flatcar-3139
2022-07-11 12:10:53 +02:00
Flatcar Buildbot
429e3ca843 Update mantle container image to latest HEAD 2022-07-11 07:10:36 +00:00
flatcar-ci
1905e8bdb3 New version: stable-3139.2.3-nightly-20220706-2100 2022-07-06 21:01:54 +00:00
Kai Lueke
de2ab6fa5a Merge pull request #365 from flatcar-linux/scripts
ci-automation: Only store compressed images
2022-07-06 15:56:07 +02:00
Kai Lueke
d465a1c280 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:06 +02:00
flatcar-ci
fdf4887d0e New version: stable-3139.2.3-nightly-20220701-2100 2022-07-01 21:02:36 +00:00
Kai Lueke
f2ab8abb17 Merge pull request #332 from flatcar-linux/scripts
ci-automation: Do not rerun tests on unrelated instances
2022-07-01 14:46:26 +02:00
Krzesimir Nowak
b1d307c3c7 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:26 +02:00
Krzesimir Nowak
35fd78ad7e 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:26 +02:00
Kai Lueke
c17157ca7a Merge pull request #233 from flatcar-linux/scripts
Make image compression format configurable
2022-07-01 14:42:32 +02:00
Gabriel
27bbafba2b 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:32 +02:00
Gabriel
3cb41f9303 Update jenkins/vms.sh
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
2022-07-01 14:42:32 +02:00
Gabriel Adrian Samfira
a63a18dee6 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:32 +02:00
Gabriel Adrian Samfira
599bca55c4 Remove commented code 2022-07-01 14:42:32 +02:00
Gabriel Adrian Samfira
466e4cb5d7 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:32 +02:00