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

Mark tests as successful if they are not supposed to run #23847

Merged
merged 2 commits into from Feb 21, 2023

Conversation

aanm
Copy link
Member

@aanm aanm commented Feb 17, 2023

See per commit message

In certain cases where the `bpf/` and `test/verifier` directories are
unmodified, the `ci-verifier` tests can now be safely marked as successful.
Previously, this was not possible because the `Sibz/github-status-action` was
part of an unexecuted step due to the lack of changes in these directories,
preventing the Github action from setting the commit status as successful.
This commit updates the Github workflow to address this issue.

Signed-off-by: André Martins <andre@cilium.io>
In certain cases where none of the following directories have changes:
`pkg/**`, `daemon/**`, `bpf/**`, `test/l4lb/**`, `images/**`, the `ci-l4lb-*`
tests can now be marked as successful. Previously, this was not possible
because the `Sibz/github-status-action` was part of an unexecuted step due to
the lack of changes in these directories, preventing the Github action from
setting the commit status as successful. This commit updates the Github
workflow to address this issue.

Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm requested review from a team as code owners February 17, 2023 14:06
@aanm aanm requested a review from nbusseneau February 17, 2023 14:06
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Feb 17, 2023
@aanm aanm added the release-note/misc This PR makes changes that have no direct user impact. label Feb 17, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Feb 17, 2023
@sayboras
Copy link
Member

/test

@aanm aanm merged commit add0f67 into cilium:master Feb 21, 2023
@aanm aanm deleted the pr/skip-test branch February 21, 2023 19:38
@sayboras
Copy link
Member

After this PR is merged, seems like ci-verifier is still pending

#22680

jibi added a commit that referenced this pull request Mar 1, 2023
this job is currently failing as the sha parameter of the github-status
action is left unset, as we are skipping the "Retrieve pull request's
base and head" step.

This commit fixes this by setting the appropriate workflow sha variable
in the previous step.

Fixes: #23847
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
aanm pushed a commit that referenced this pull request Mar 1, 2023
this job is currently failing as the sha parameter of the github-status
action is left unset, as we are skipping the "Retrieve pull request's
base and head" step.

This commit fixes this by setting the appropriate workflow sha variable
in the previous step.

Fixes: #23847
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants