327 Commits

Author SHA1 Message Date
Thilo Fromm
af686c0f41 workflows/pr-comment-dispatcher: post link to workflow run
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-05-26 10:07:00 +02:00
Thilo Fromm
a14a89f2b8 workflows/pr-comment,run-kola: fix concurrency + results comment
This change includes 2 unrelated small fixes to the "PR comment command"
build+test feature:

1. The concurrency group now contains the PR number, ensuring that
   builds for multiple PRs can run in parallel. This addresses an issue
   in which starting a build on a PR would cancel a running build of
   another PR.
2. Post test results to the PR where the build command was issued on.
   The add-pr-comment step's condition was not updated when switching
   to PR comment commands for starting builds, so the step would only
   run if the action was triggered by a PR change event. Since we now
   trigger on issue_comment, the step never ran.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-05-26 09:48:49 +02:00
Krzesimir Nowak
f32eb01fc3 .github: Update the packages list 2023-05-24 07:04:24 +02:00
Gabriel Adrian Samfira
55c9ab49b9
Fix typo, address some linting
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-05-23 12:41:08 +03:00
Gabriel Adrian Samfira
5b721518fa
Set explicit step ID
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-05-23 12:40:54 +03:00
Thilo Fromm
f41211d87e
Merge pull request #800 from flatcar/t-lo/github-actions-add-sdk-update
Trigger build workflow via PR comment instead of PR state; add a workflow to build an updated SDK container,
2023-05-22 14:01:08 +02:00
Krzesimir Nowak
6fcb6111de .github: Add new packages to automation list 2023-05-17 08:52:50 +02:00
Krzesimir Nowak
391f1d1298
Merge pull request #811 from flatcar/krnowak/sys-packages-dev-glob
Automate updates of system packages: dev-*
2023-05-17 08:48:51 +02:00
Krzesimir Nowak
ca22e6b5b4 .github: Automate updates of just added/updated packages 2023-05-11 15:33:29 +02:00
Thilo Fromm
f66d24dec7
Update .github/workflows/pr-comment-build-dispatcher.yaml
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
2023-05-11 12:00:12 +02:00
Thilo Fromm
f71f453950 workflows: build_sdk => update_sdk
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-05-11 08:01:17 +02:00
Krzesimir Nowak
46e7727953 .github: Add more system packages to automation 2023-05-10 16:30:26 +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
Thilo Fromm
0e8cde89fe pr-comment-build-dispatcher.yaml: dispatch SDK and OS image builds
This change updates dispatching of SDK and OS image builds from changes
to a PR to an explicit comment. PRs will only be built if that comment
was added by a member of the Flatcar maintainers team.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-05-09 17:29:31 +02:00
Thilo Fromm
f5d1a3c2f0 pr-comment-build-dispatcher.yaml: Check team membership
This change is a building block for PR builds triggered by PR commands.
It checks for membership of the commenter in the Flatcar Maintainers
team.

Note that the "issue comment" event (which is also triggered on PR
comments) is only emitted to workflows in the "main" branch. So in order
to test / trigger this workflow, a transient "PR update" event is used,
and the "commenter" user's login is hard-coded for testing.

This will be updated to using the actual commenter's login before merge.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-05-09 12:13:06 +02:00
Thilo Fromm
d92589280b workflows: add update-sdk.yaml
This change adds a github actions workflow to build a new SDK container
based on an existing SDK container. This can be used for CI testing
intrusive changes that also affect the SDK without bootstrapping a whole
new SDK.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-05-09 12:13:06 +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