63 Commits

Author SHA1 Message Date
Krzesimir Nowak
ca22e6b5b4 .github: Automate updates of just added/updated packages 2023-05-11 15:33:29 +02:00
Jeremi Piotrowski
68db2e0a04 .github: add acl to portage-stable-packages-list
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2023-05-10 15:27:19 +02:00
Dongsu Park
3b3fbccc74
Merge pull request #790 from flatcar/dongsu/gh-fetch-remote
.github: check for remote branches with git ls-remote
2023-05-08 17:13:57 +02:00
Dongsu Park
c4a99b4376 .github: check for remote branches with git ls-remote
git show-ref in check_remote_branch is not working at all, because the
GitHub Actions checkout fetches a git repo with only depth 1 by default.
That means only main branch is available, not any other remote branches.
As a result, git show-ref always fails.

Fix that by checking for remote branches by git ls-remote.
2023-05-08 17:00:43 +02:00
Krzesimir Nowak
c708687b8c .github: Add updated packages to the list 2023-05-04 16:36:47 +02:00
Dongsu Park
6d31354e9f
Merge pull request #785 from flatcar/dongsu/c-ares-1.19
net-dns/c-ares: update to 1.19
2023-05-04 12:05:52 +02:00
Dongsu Park
8d8fd0990e
Merge pull request #784 from flatcar/dongsu/gh-check-remote-branch
.github: check remote branch, add correct changelog
2023-05-03 17:39:43 +02:00
Dongsu Park
0902d3cd64 .github: add correct changelog
Changelog directory is now located under flatcar scripts, not under
coreos overlay. Fix the location to add correct changelog to the git
commit.

Also use a correct path SDK_OUTER_TOPDIR in cleanup_repo.
2023-05-03 17:37:37 +02:00
Dongsu Park
425473f11d .github: add back ready_for_review
In case of a draft PR created first, no CI gets triggered at the time.
So we should trigger CI afterwards when it is being set to a
ready_for_review state.
2023-05-03 17:37:37 +02:00
Dongsu Park
b2e55c063a .github: skip touching open PRs when the remote branch exists
To avoid noise of touching existing PRs, check first if the remote
branch already exists. If that exists, skip creating or updating the PR.
2023-05-03 17:37:34 +02:00
Dongsu Park
9ed87f8540 .github: add c-ares to portage-stable-packages-list 2023-05-03 14:51:27 +02:00
Krzesimir Nowak
0e2da60edb .github: Add new packages to package automation list 2023-05-03 07:51:51 +02:00
Krzesimir Nowak
f15cd647b6 virtual/perl-version: Drop unused package
It used to be pulled in by dev-perl/libintl-perl, but this package was
also dropped.
2023-05-03 07:51:51 +02:00
Dongsu Park
702e2a1a6d
Merge pull request #749 from flatcar/dongsu/gh-pull-request-types
.github: get build and CI triggered by opened, synchronize
2023-05-02 09:49:19 +02:00
Dongsu Park
9597661ead .github: use personal access token for bot PRs
Use a dedicated personal access token BOT_PR_TOKEN for bot PRs instead
of the default GITHUB_TOKEN. It is needed for triggering another
workflow from pull requests created by Github Actions. The default
GITHUB_TOKEN is by design not able to trigger another workflow.

See also
https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
2023-04-28 15:13:57 +02:00
Dongsu Park
bbc3ae71dd .github: get build and CI triggered by opened, synchronize
Build and CI tests should run automatically whenever a pull request is
opened, reopened or updated. On the other hand, it is not necessary to
run build and CI tests on the events ready_for_review and
review_requested.
2023-04-26 17:35:09 +02:00
Krzesimir Nowak
152b12e063
Merge pull request #716 from flatcar/krnowak/flatcar-calico
.github: Move workflow mirroring calico docker packages to mantle
2023-04-26 11:22:35 +02:00
Krzesimir Nowak
4352fc6323 .github: Fix changelog generation 2023-04-24 19:48:35 +02:00
Krzesimir Nowak
cc6724090e .github: Move mirroring workflows to mantle
These workflows were mostly for docker stuff used by kola tests in
mantle, so move and fix them there.
2023-04-19 18:23:05 +02:00
Krzesimir Nowak
380e6820f2 .github: Port vmware update action from old coreos-overlay 2023-04-17 17:25:29 +02:00
Krzesimir Nowak
165e99713b .github: Port rust update action from old coreos-overlay 2023-04-17 17:25:19 +02:00
Krzesimir Nowak
5aee2d4849 .github: Port runc update action from old coreos-overlay 2023-04-17 17:25:08 +02:00
Krzesimir Nowak
8c9e2b0abc Port mirror calico action from old coreos-overlay 2023-04-17 17:24:37 +02:00
Krzesimir Nowak
49cbb5d3dc .github: Port kernel update action from old coreos-overlay 2023-04-17 17:24:30 +02:00
Krzesimir Nowak
7029a3e97b .github: Port go update action from old coreos-overlay 2023-04-17 17:24:20 +02:00
Krzesimir Nowak
40bb5da43d .github: Port linux firmware update action from old coreos-overlay 2023-04-17 17:24:15 +02:00
Krzesimir Nowak
236edb133a .github: Port docker update action from old coreos-overlay 2023-04-17 17:24:09 +02:00
Krzesimir Nowak
2c5381ccc1 .github: Port containerd update action from old coreos-overlay 2023-04-17 17:24:03 +02:00
Krzesimir Nowak
b594f36900 .github: Port cacert update action from old coreos-overlay 2023-04-17 17:23:53 +02:00
Krzesimir Nowak
b6fc418fe5 .github: Port common update action code from old coreos-overlay 2023-04-17 17:23:44 +02:00
Krzesimir Nowak
adbd4a48f4 .github: Port update GLSA metadata action from old portage-stable 2023-04-17 17:23:38 +02:00
Krzesimir Nowak
066bc2e7b1 .github: Port update packages action from old portage-stable 2023-04-17 17:23:28 +02:00
Thilo Fromm
401af830d1 scripts, CI, workflows: remove submodule handling (main) 2023-04-13 12:26:36 +02:00
Thilo Fromm
ce2bf9bb75 run-kola-tests.yaml: fix path of PR comment file
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-31 10:04:48 +02:00
Thilo Fromm
f8bf7fa4c7 run-kola-tests.yaml: test report merge job
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-30 13:07:52 +02:00
Thilo Fromm
f07cb5f781 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-29 21:05:47 +02:00
Thilo Fromm
ab2000e3e4 run-kola-tests.yaml: fix test-summary TAP formatting
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-28 21:09:11 +02:00
Thilo Fromm
ae760903a3 run-kola-tests: improve test results archive globs
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-28 16:22:28 +02:00
Thilo Fromm
3653c9a8e5 [ci,run-kola-tests].yaml: use HEAD commit ref for PR builds
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-28 16:22:14 +02:00
Thilo Fromm
43bbabec4b ci.yaml: extract + upload build logs also on failure
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-28 10:02:17 +02:00
Thilo Fromm
6f97e85590 dispatch-kola-tests.yaml: Elaborated comments on inputs 2023-03-28 10:02:17 +02:00
Thilo Fromm
54c61a046b ci.yaml: run only when ready and / or review requested 2023-03-28 10:02:17 +02:00
Thilo Fromm
27d540692f 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-28 10:02:17 +02:00
Thilo Fromm
28b26c87c1 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-28 10:02:17 +02:00
Kai Lueke
38b0fe946b Make mantle ref bump action more robust
The curl call to download the current version.txt file failed, causing
branch to be "flatcar-" which later lets the git checkout fail. This
was hidden somewhere in the logs of successful steps.
To directly stop execution, use saner settings for curl and bash.
2023-03-27 12:54:47 +09:00
Kai Lueke
d53d415ef8 Run kola without --qemu-skip-mangle on Jenkins
For the GitHub CI we have to use --qemu-skip-mangle because the LXC
containers don't have access to loop devices. Running with
--qemu-skip-mangle means that the serial console does not get captured
completely because systemd and dracut messages are missing, and thus we
don't catch these errors in kola.
Make the skipping conditional and use it in Jenkins at least for the
nightlies and releases.
2023-03-24 22:17:13 +09:00
Krzesimir Nowak
f865792916 .github: Fix mantle update action
The variable is actually lowercase. Not sure how I ended up having
uppercase variant of it.
2022-11-18 14:36:42 +01:00
Krzesimir Nowak
de9d464635 .github: Modernize mantle update action
This is to avoid warnings about deprecated node 12 actions and
deprecated save-state and set-output commands.
2022-11-09 12:56:13 +01:00
Krzesimir Nowak
65d21af086 .github: Use lts-info
We can use lts-info to optionally update mantle container in old LTS
branch too.
2022-09-27 13:02:27 +02:00
Krzesimir Nowak
527d174b50
.github: Fix syntax error 2022-09-26 15:14:35 +02:00