-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[Reverted] Adding a "source-bundle" target to the Makefile #13385
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
Conversation
This target is identical to the existing "source-dist" target, except that it allows for packaging and testing of the source archive. This is done by including the packaging/ and tests/ directories in the output tarball, along with specific subdirectories that are required by tests. Signed-off-by: Kartik Ganesh <[email protected]>
I have not added any tests for the Makefile target but i've confirmed the following via local testing:
|
@kartg thank you, we will discuss this with the team. We don't have any tests for the Make targets, usually any serious issue would break packaging/alpha builds. I'm afraid the word "build" may be misleading here. It suggests that it might have something to do with producing binary builds, a task handled by |
@michaelklishin Fair point 😄 Any suggestions on a more accurate term? Maybe "bundle" or "snapshot" ? |
@kartg if the focus of these targets is on validation, how about "validated source bundle" or just "source bundle"? |
|
This incorporates PR feedback from @michaelklishin Signed-off-by: Kartik Ganesh <[email protected]>
Adding a "source-bundle" target to the Makefile (backport #13385)
thank you! 😀 |
@kartg since this is a non-functional change, I'll backport it to |
Adding a "source-bundle" target to the Makefile (cherry picked from commit ea4bdac) Conflicts: Makefile
Done. |
@kartg this breaks
in this repo, so I will revert. I cannot immediately tell why but it can be reproduced in multiple different environments. https://github.com/rabbitmq/server-packages/actions/runs/13468260488/job/37638171804 is currently waiting for a runner but it should fail there. |
@kartg to reproduce the failure locally
|
…x/pr-13385 Revert "Adding a "source-bundle" target to the Makefile (backport #13385)"
This reverts commit c1485af.
@michaelklishin thanks for those commands. I was able to reproduce the failure and track down the root cause. I'm looking for a recommendation in choosing a solution, because there are tradeoffs with either approach. I'd also like to bring to your attention two potential bugs, and see if it's something we want to fix. This failure was due to a bug in my change, which didn't account for the fact that the An alternative way to resolve this issue is to have the pre-requisite target check for "source-bundle" in the make command's input and switch the $(SOURCE_DIST): RSYNC_FLAGS = $(if $(filter source-bundle,$(MAKECMDGOALS)),$(SOURCE_BUNDLE_RSYNC_FLAGS),$(SOURCE_DIST_RSYNC_FLAGS))
$(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST)
.... This avoids duplicate code and is a far smaller change. However this does mean that using "source-bundle" and "source-dist" together will result in an incorrect output for one of those targets (and only a single tarball). How would you recommend that I proceed? As for the potential bugs:
Please let me know if I should open issues for these. |
@kartg I don't have a strong opinion on how the make targets are organized, extracting common code makes sense to me. As for I haven't invoked the |
Re-submitted in #13471. |
Proposed Changes
This change adds a
source-bundle
build target to the RabbitMQ Makefile. This target is identical to the existingsource-dist
target but it also allows for packaging and testing of the source archive.Types of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply.You can also fill these out after creating the PR.
If you're unsure about any of them, don't hesitate to ask on the mailing list.
We're here to help!
This is simply a reminder of what we are going to look for before merging your code.
CONTRIBUTING.md
document