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-datapath: Fix issue where test were wrongly reported as passing #24813

Merged
merged 1 commit into from Apr 12, 2023

Conversation

gandro
Copy link
Member

@gandro gandro commented Apr 11, 2023

Before this commit, the ci-datapath workflow would update the PR status
for each setup-and-test matrix job. That however lead to the PR being
marked as green as soon as the first matrix job succeeded, even though
later tests might fail.

Worse, if an earlier matrix job failed, and a later one succeeded, the
latter job masked the failure of the earlier job and marked the PR as
green as well.

This commit fixes the issue by only updating the commit status once all
jobs have run. This technique is taken from #23865 and has
been used for the BPF verifier workflow for a while.

@gandro gandro added sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/ci This PR makes changes to the CI. labels Apr 11, 2023
@gandro gandro force-pushed the pr/gandro/fix-ci-datapath-error-reporting branch from 464eb85 to ccc6263 Compare April 11, 2023 16:07
@gandro
Copy link
Member Author

gandro commented Apr 11, 2023

Before this commit, the ci-datapath workflow would update the PR status
for each `setup-and-test` matrix job. That however lead to the PR being
marked as green as soon as the first matrix job succeeded, even though
later tests might fail.

Worse, if an earlier matrix job failed, and a later one succeeded, the
latter job masked the failure of the earlier job and marked the PR as
green as well.

This commit fixes the issue by only updating the commit status once all
jobs have run. This technique is taken from #23865 and has
been used for the BPF verifier workflow for a while.

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro force-pushed the pr/gandro/fix-ci-datapath-error-reporting branch 2 times, most recently from adea8a1 to 4813172 Compare April 11, 2023 16:44
@gandro gandro marked this pull request as ready for review April 11, 2023 16:44
@gandro gandro requested review from a team as code owners April 11, 2023 16:44
@gandro gandro requested review from aspsk and brlbil April 11, 2023 16:44
@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 11, 2023
@dylandreimerink dylandreimerink merged commit 279a243 into master Apr 12, 2023
43 checks passed
@dylandreimerink dylandreimerink deleted the pr/gandro/fix-ci-datapath-error-reporting branch April 12, 2023 08:23
@pchaigno
Copy link
Member

I think this PR introduced another issue with the workflow status: #24915.

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 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. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants