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: don't write github commit status on push event #29404

Merged

Conversation

mhofstetter
Copy link
Member

Currently, some GitHub workflows are reporting their status via GitHub Commit Status. The main reason is to link the status of the workflow run to a specific commit SHA. This is necessary for workflows that are triggered via Ariane (trigger workflows_dispatch).

However, if the same workflow is triggered via push (e.g. after a PR being merged), reporting the status via commit status is unnecessary, as the workflow is already linked to the correct commit SHA. it only results in displaying a duplicated check for the same workflow run.

Therefore, this commit suppresses the commit status reporting in case of a push trigger.

Currently, some GitHub workflows are reporting back their status via
GitHub Commit Status. The main reason is to link the status of the
workflow run to a specific commit SHA. This is necessary for workflows
that are triggered via Ariane (trigger `workflows_dispatch`).

However, if the same workflow is triggered via `push` (e.g. after a PR being
merged), reporting the status via commit status is unnecessary, as the workflow
is already linked to the correct commit SHA.

Therefore, this commit suppresses the commit status reprting in case of a
`push` trigger.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter added area/CI Continuous Integration testing issue or flake kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. labels Nov 27, 2023
@mhofstetter
Copy link
Member Author

/test

@mhofstetter mhofstetter marked this pull request as ready for review November 27, 2023 16:11
@mhofstetter mhofstetter requested review from a team as code owners November 27, 2023 16:11
@mhofstetter mhofstetter added release-note/ci This PR makes changes to the CI. and removed release-note/misc This PR makes changes that have no direct user impact. labels Nov 27, 2023
Copy link
Contributor

@viktor-kurchenko viktor-kurchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@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 Nov 28, 2023
@tklauser tklauser added this pull request to the merge queue Nov 28, 2023
Merged via the queue into cilium:main with commit 4c3e157 Nov 28, 2023
44 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/remove-commit-status-on-push branch November 28, 2023 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake kind/cleanup This includes no functional changes. 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.

3 participants