5030 Commits

Author SHA1 Message Date
flatcar-ci
395094cfe6 New version: alpha-3277.0.0-nightly-20220719-2100 2022-07-19 21:00:29 +00:00
Kai Lueke
516b35830c Merge pull request #386 from flatcar-linux/scripts
ci-automation: Move git tagging into own script
2022-07-19 19:35:43 +02:00
Kai Lueke
11e25ab0c9 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:35:43 +02:00
Sayan Chowdhury
198527a101
New version: beta-3277.1.0 beta-3277.1.0 2022-07-19 03:08:38 +05:30
Kai Lueke
da6d3175a8 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:50 +02:00
Kai Lueke
4031775741 .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:50 +02:00
flatcar-ci
33206bbae8 New version: alpha-3277.0.0-nightly-20220715-2100 2022-07-15 21:02:30 +00:00
Kai Lueke
a07323f77a Merge pull request #384 from flatcar-linux/scripts
.github: Use lxc containers for amd64 kola tests, too
2022-07-15 12:31:10 +02:00
Kai Lueke
41c30fe232 .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:31:10 +02:00
flatcar-ci
dac3c483ec New version: alpha-3277.0.0-nightly-20220714-2100 2022-07-14 21:02:33 +00:00
Krzesimir Nowak
29d9c7e871 Merge pull request #377 from flatcar-linux/scripts
build_library: Try to clean up unused stuff
2022-07-14 17:10:00 +02:00
Krzesimir Nowak
6b9699facb 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:10:00 +02:00
Kai Lueke
7b687482c6 Merge pull request #376 from flatcar-linux/scripts
ci-automation: Generate digests for artifacts
2022-07-14 16:55:01 +02:00
Krzesimir Nowak
6d9526be84 ci-automation: Generate digests files for the built artifacts 2022-07-14 16:55:00 +02:00
Krzesimir Nowak
f618600f63 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:55:00 +02:00
Krzesimir Nowak
ee7d5ed044 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:55:00 +02:00
Kai Lueke
55977a316d Merge pull request #375 from flatcar-linux/scripts
ci-automation: Show changes by finding the previous channel
2022-07-14 13:45:05 +02:00
Kai Lueke
ce588b9d01 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:04 +02:00
flatcar-ci
9b6a9e922b New version: alpha-3277.0.0-nightly-20220713-2100 2022-07-13 21:02:27 +00:00
Kai Lüke
b8d1d7fc8e
Merge pull request #382 from flatcar-linux/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-07-13 18:25:46 +02:00
Kai Lueke
89e2c6bd67 Merge pull request #356 from flatcar-linux/scripts
.github: Run CI workflow only for PR events
2022-07-13 18:19:05 +02:00
Kai Lueke
6cd8c62942 .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:05 +02:00
Kai Lueke
0e49302576 Merge pull request #374 from flatcar-linux/scripts
Make the kola test workflow reusable
2022-07-13 18:16:12 +02:00
Gabriel Adrian Samfira
d2b7cc1338 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:16:12 +02:00
Gabriel Adrian Samfira
479fe8cefc Disable image mangle in qemu tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-13 18:16:12 +02:00
Gabriel Adrian Samfira
2593063eea Make QEMU_UEFI_BIOS configurable
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-07-13 18:16:12 +02:00
Gabriel Adrian Samfira
2f7beb66b8 Remove customizations for now
Remove arch and parallel options. Hardcode them for now.
2022-07-13 18:16:12 +02:00
Gabriel Adrian Samfira
04f1729e31 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:16:12 +02:00
Gabriel Adrian Samfira
c869260f82 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:16:12 +02:00
Mathieu Tortuyaux
b68b906989 .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:16:12 +02:00
Kai Lueke
3679f5dbfa Merge pull request #366 from flatcar-linux/scripts
Add concurency setting to CI workflow
2022-07-13 18:13:26 +02:00
Gabriel Adrian Samfira
33a462850a 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:25 +02:00
Kai Lueke
05e0cb47f4 Merge pull request #354 from flatcar-linux/scripts
Add CI workflow
2022-07-13 18:12:23 +02:00
Gabriel Adrian Samfira
19ac76082b Add CI workflow 2022-07-13 18:12:23 +02:00
Flatcar Buildbot
444dd8639e Update mantle container image to latest HEAD 2022-07-13 16:10:04 +00:00
flatcar-ci
f0bb1e2745 New version: alpha-3277.0.0-nightly-20220711-2100 2022-07-11 21:02:10 +00:00
Kai Lüke
184c0ae8bd
Merge pull request #372 from flatcar-linux/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-07-11 12:10:47 +02:00
Flatcar Buildbot
c64aebf241 Update mantle container image to latest HEAD 2022-07-11 07:10:36 +00:00
flatcar-ci
bac6ffbd0e New version: alpha-3277.0.0-nightly-20220706-2100 2022-07-06 21:02:03 +00:00
Kai Lueke
a45dd8049b Merge pull request #365 from flatcar-linux/scripts
ci-automation: Only store compressed images
2022-07-06 15:56:31 +02:00
Kai Lueke
7e119be27a 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:31 +02:00
flatcar-ci
2e0d8248d9 New version: alpha-3277.0.0-nightly-20220701-2100 2022-07-01 21:02:12 +00:00
Kai Lüke
e94cd5e192
Merge pull request #361 from flatcar-linux/mantle-update-flatcar-3277
Upgrade mantle container image to latest HEAD in flatcar-3277
2022-06-30 23:28:16 +02:00
flatcar-ci
3bfafd6e46 New version: alpha-3277.0.0-nightly-20220630-2100 2022-06-30 21:02:24 +00:00
Flatcar Buildbot
e5f4f5dbee Update mantle container image to latest HEAD 2022-06-30 21:00:45 +00:00
flatcar-ci
1dfec50581 New version: alpha-3277.0.0-nightly-20220629-2100 2022-06-29 21:02:13 +00:00
Kai Lueke
aebceca89c Merge pull request #355 from flatcar-linux/scripts
ci-automation: Use the package container for VM image building
2022-06-29 15:37:32 +02:00
Kai Lueke
8dffd734a6 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:32 +02:00
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