Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Run BPF lints on workflow definition changes #28122

Merged
merged 1 commit into from Sep 13, 2023

Conversation

qmonnet
Copy link
Member

@qmonnet qmonnet commented Sep 12, 2023

In the past, we have merged automated updates to the coccicheck image version (for example) without realising they may break the workflow, because the workflow wouldn't run on the PR, which contained no BPF-related changes.

Let's make the workflow run when its definition file is updated, to make sure we can catch similar issues in the future.

@qmonnet qmonnet added area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/ci This PR makes changes to the CI. needs-backport/1.12 needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch labels Sep 12, 2023
@qmonnet qmonnet requested review from a team as code owners September 12, 2023 15:34
@qmonnet qmonnet requested review from aanm and nebril September 12, 2023 15:34
@qmonnet
Copy link
Member Author

qmonnet commented Sep 12, 2023

/test

@qmonnet
Copy link
Member Author

qmonnet commented Sep 12, 2023

Hmm the file change was correctly detected, but the jobs were skipped anyway 🤔
[EDIT: I had not added the filter results to the outputs of the first job]

@qmonnet qmonnet marked this pull request as draft September 12, 2023 16:13
In the past, we have merged automated updates to the coccicheck image
version (for example, [0]) without realising they may break the
workflow, because the workflow wouldn't run on the PR, which contained
no BPF-related changes.

Let's make the workflow run when its definition file is updated, to make
sure we can catch similar issues in the future.

[0] cilium#27947

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
@qmonnet qmonnet force-pushed the pr/bpf-checks-on-workflow-def branch from 338fe00 to 96ee1c4 Compare September 12, 2023 22:41
@qmonnet qmonnet marked this pull request as ready for review September 12, 2023 22:41
@qmonnet
Copy link
Member Author

qmonnet commented Sep 12, 2023

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Sep 13, 2023
@nebril nebril merged commit 071c2af into cilium:main Sep 13, 2023
61 checks passed
@qmonnet qmonnet deleted the pr/bpf-checks-on-workflow-def branch September 13, 2023 11:01
@doniacld doniacld mentioned this pull request Sep 22, 2023
10 tasks
@doniacld doniacld added backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. and removed needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Sep 22, 2023
@giorio94 giorio94 added backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. and removed needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch labels Sep 26, 2023
@giorio94 giorio94 mentioned this pull request Sep 26, 2023
12 tasks
@aanm aanm added backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. and removed backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. backport-pending/1.12 labels Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI-improvement Topic or proposal to improve the Continuous Integration workflow backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants