Skip to content

Conversation

giorio94
Copy link
Member

Please review commit by commit, and refer to the individual descriptions for additional details.

Fixes: #32660

Miscellaneous fixes in the usage of Makefile.override and build modifiers

giorio94 added 3 commits June 13, 2024 15:08
The blamed commit replaced several docker build arguments with a single,
generic one named MODIFIERS. However, it didn't update the operator
Dockerfile to correctly use it. Let's fix it.

Fixes: c4aebae ("docker, ci: Create generalized MODIFIERS build arg")
Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Fixes: 811cb7f ("make: Add include to Makefile.override within binary-specific makefiles")
Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
The blamed commit introduced an include statement for Makefile.override
in Makefiles specific to building Cilium's go binaries, to enable
optionally overriding variables. However, this changed the behavior of
executing `make -C folder` (i.e., without specifying an explicit target,
as we do in the clustermesh-apiserver Dockerfile for instance) in case
Makefile.override contains any target. Indeed, make executes by default
the first target that it sees. Let's address this discrepancy and avoid
unexpected changes by explicitly configuring the default target to be
executed to `all`.

Fixes: 811cb7f ("make: Add include to Makefile.override within binary-specific makefiles")
Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 added release-note/misc This PR makes changes that have no direct user impact. area/build Anything to do with the build, more general than area/CI needs-backport/1.15 labels Jun 13, 2024
@giorio94 giorio94 mentioned this pull request Jun 13, 2024
4 tasks
@giorio94 giorio94 marked this pull request as ready for review June 13, 2024 13:45
@giorio94 giorio94 requested review from a team as code owners June 13, 2024 13:45
@giorio94
Copy link
Member Author

/test

Copy link
Contributor

@marseel marseel left a comment

Choose a reason for hiding this comment

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

Interesting, looks good for clustermesh.

Copy link
Member

@pippolo84 pippolo84 left a comment

Choose a reason for hiding this comment

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

Thanks 💯

Copy link
Contributor

@learnitall learnitall left a comment

Choose a reason for hiding this comment

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

Thanks @giorio94, my apologies for the extra work. I'll be more careful moving forward to double-check my work before pushing.

@giorio94
Copy link
Member Author

@borkmann @rolinh @asauber Gentle ping 🙏

@aanm aanm enabled auto-merge June 17, 2024 07:54
@giorio94 giorio94 removed the request for review from borkmann June 17, 2024 08:03
@aanm aanm disabled auto-merge June 17, 2024 08:28
@aanm aanm merged commit fe05a39 into cilium:main Jun 17, 2024
@giorio94 giorio94 added backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. and removed needs-backport/1.15 labels Jun 17, 2024
@github-actions github-actions bot added backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. and removed backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Anything to do with the build, more general than area/CI backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. 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.

6 participants