23 Commits

Author SHA1 Message Date
Thilo Fromm
14bc644b50 scripts, CI, workflows: remove submodule handling (flatcar-3033) 2023-04-13 13:27:11 +02:00
Thilo Fromm
0bbf732582 run-kola-tests.yaml: fix path of PR comment file
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-31 12:26:06 +02:00
Thilo Fromm
b60922129b run-kola-tests.yaml: test report merge job
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-30 13:41:38 +02:00
Thilo Fromm
27409430d7 tapfile_helper ff.: support TAP and Markdown output
This change adds markdown output support to tapfile helper.
tap_generate_report() has been refactored to use low-level output
functions to write tests; TAP and markdown output is supported and both
are generated by default. Also, it should be straightforward to add
other output formats by implementing the respective low level print
functions.

The markdown output is now used by run-kola-tests.yaml to generate step
output and, if run from a PR, add a comment with test results to the PR.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-30 13:41:38 +02:00
Thilo Fromm
95d06f430d run-kola-tests.yaml: fix test-summary TAP formatting
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-30 13:41:38 +02:00
Thilo Fromm
2c599725ed run-kola-tests: improve test results archive globs
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-30 13:41:38 +02:00
Thilo Fromm
690297f9e2 .yaml: use HEAD commit ref for PR builds
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-30 13:41:38 +02:00
Thilo Fromm
fbf9cb215b ci.yaml: extract + upload build logs also on failure
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-30 13:41:38 +02:00
Thilo Fromm
fd5b6a1b82 dispatch-kola-tests.yaml: Elaborated comments on inputs 2023-03-30 13:41:38 +02:00
Thilo Fromm
1dcc0cdf43 ci.yaml: run only when ready and / or review requested 2023-03-30 13:41:38 +02:00
Thilo Fromm
59f6905b8a run-kola-tests.yaml: use new artifacts, local web server
This change updates the github actions kola test runner workflow to use
the new, separated artifacts produced by ci.yaml.

Further, it adds a fix for the devcontainer tests. Devcontainer and bin
packages used in the devcontainer tests are now served from a local
temporary web server.

The change also adds the qemu_update test and provides the respective
update payload.

Lastly, the tests now use a local torcx_manifest.json produced by
ci.yaml, which points to a torcx tarball also served by the local
temporary web server.
2023-03-30 13:41:38 +02:00
Thilo Fromm
4ae1b0c717 ci.yaml: re-use build container, finer grained artifact upload
This change removes "docker commit" at the end of each step and instead
makes build steps re-use the build container, saving some build time.

It also makes artifact upload more granular, so build logs, images, and
dev container can be downloaded individually.

Lastly, it exports torcx tarball and binary packages as a separate
artifact each, for successive re-use in the kola tests.
2023-03-30 13:39:32 +02:00
Kai Lueke
e0d0ac82fc Use new github org name "flatcar"
The "flatcar-linux" github org was renamed to "flatcar". There are no
github redirections in place and we have to update all links.
2022-09-14 14:50:57 +02:00
Kai Lueke
baa886db0a .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:12 +02:00
Kai Lueke
26b1e43aef .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:59 +02:00
Kai Lueke
9f90d5d8a4 .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:57 +02:00
Gabriel Adrian Samfira
3811a9952b 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:33 +02:00
Gabriel Adrian Samfira
be9298f45d Remove customizations for now
Remove arch and parallel options. Hardcode them for now.
2022-07-13 18:15:33 +02:00
Gabriel Adrian Samfira
3cbb6cbd04 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:33 +02:00
Mathieu Tortuyaux
6f10a231ce .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:33 +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
Gabriel Adrian Samfira
1568aa3f45 Add CI workflow 2022-07-13 18:11:42 +02:00
Kai Lueke
a8727cebf2 Run CI container pipeline kola tests with the new mantle image
The SDK container does not exist for arm64 and is quite heavy. We
currently also resort to a unconditional rebuilding of mantle inside
the SDK.
Use the new mantle container image to run kola tests, and pin its
version through a text file that gets updated by GitHub Actions.
2022-04-26 12:58:57 +09:00