Skip to content

Conversation

joestringer
Copy link
Member

When running make with parallel builds, it was previously possible to
trigger build of the mocks at the same time as building the test that
depended on the mocks. This would cause build failures.

Fix this issue by moving the dependencies into dedicated targets with
proper dependencies. While we're at it, move the clean target into the
proper bpf/mock/Makefile.

Fixes: #19098

When running make with parallel builds, it was previously possible to
trigger build of the mocks at the same time as building the test that
depended on the mocks. This would cause build failures.

Fix this issue by moving the dependencies into dedicated targets with
proper dependencies. While we're at it, move the clean target into the
proper bpf/mock/Makefile.

Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer joestringer requested a review from a team March 10, 2022 00:56
@joestringer joestringer requested a review from a team as a code owner March 10, 2022 00:56
@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Mar 10, 2022
@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 Mar 10, 2022
@joestringer joestringer requested a review from brb March 10, 2022 00:56
@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 Mar 10, 2022
Copy link
Member

@brb brb left a comment

Choose a reason for hiding this comment

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

Nice find. Do we actually run the mock tests in the CI or in any of the GH actions? If not, then maybe it doesn't make sense to compile them?

@joestringer
Copy link
Member Author

joestringer commented Mar 10, 2022

These tests are currently triggered from the integration-tests target, so they will run on Travis.

@joestringer
Copy link
Member Author

Build works, Travis runs this target as well and I tested it locally. Reviews are in, should be good to merge now.

@joestringer joestringer added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 10, 2022
@ti-mo ti-mo merged commit 0151680 into cilium:master Mar 11, 2022
@joestringer joestringer deleted the submit/fix-bpf-mock-targets branch March 11, 2022 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. 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.

bpf mock tests target broken with parallel builds
3 participants