-
Notifications
You must be signed in to change notification settings - Fork 182
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
Remove git-commit-id-maven-plugin #191
Comments
|
Can I make a PR? |
Sure, go ahead. Thanks @SemyonSinchenko |
The version information is reported by the library, and used by groups to track the specific version. I would not want to see it removed unless it is replaced by equivalent functionality. |
@SemyonSinchenko This is a common function. Spark itself uses a script |
What if I create something like spark build info? It looks like only branch, build, commit and remote information are included. In this case such a bash script may be an optional step, but not a mandatory call of the plugin from maven. |
These are the currently used values:
See common/src/main/scala/org/apache/comet/package.scala |
This short bash script can generate everything like in #!/usr/bin/bash
echo_build_properties() {
echo "git.branch=$(git rev-parse --abbrev-ref HEAD)"
echo "git.build.host=$(uname -n)"
echo "git.build.time=$(date -u +%Y-%m-%dT%H:%M:%S%z)"
echo "git.build.user.email=$(git config user.email)"
echo "git.build.user.name=$(git config user.name)"
echo "git.build.version=${1}"
echo "git.commit.id.abbrev=$(git rev-parse --short HEAD)"
echo "git.commit.id.full=$(git rev-parse HEAD)"
echo "git.remote.origin.url=$(git config --get remote.origin.url | sed 's|https://\(.*\)@\(.*\)|https://\2|')"
}
echo_build_properties $1 In this case VERSION should be passed into the script. It may be got from @snmvaughan Does it look OK for you? If so, I can open a PR that adds this bash-script into, for example |
Instead of removing You can move the |
I found an example for profiles. Also, an author of the plugin mentioned, that it may be disabled via May I make a PR with updates to README.md related to building from source (not from cloned repo)? It may save someone couple of hours of life :) |
## Which issue does this PR close? Closes apache#503 Closes apache#191 ## Rationale for this change 1. Provide a way to build Comet from the source on an isolated environments with an access to github.com 2. Update documentation in part, related to compatibility of Spark AQE and Comet Shuffle ## What changes are included in this PR? - Update tuning section about the compatibility of Shuffle and Spark AQE - Add `release-nogit` for building on an isolated environments - Update docs in the section about an installation process Changes to be committed: modified: Makefile modified: docs/source/user-guide/installation.md modified: docs/source/user-guide/tuning.md ## How are these changes tested? I run both `make release` and `make release-nogit`. The first one created properties file in `common/target/classes` but the second did not. The flag `-Dmaven.gitcommitid.skip=true` is described in [this comment](git-commit-id/git-commit-id-maven-plugin#392 (comment)).
What is the problem the feature request solves?
Currently building comet on environment without access to
github.com
(like an enterprise environment, closed by FW) is very hard because ofgit-commit-id-maven-plugin
that requires having content of.git
folder and an access togithub.com
.Describe the potential solution
Remove
git-commit-id-maven-plugin
to allow build fromzip
disctribution, downloaded from github (without.git
folder and without an access togithub.com
).Additional context
To build comet for myself I just deleted this plugin from
common/pom.xml
and it worked fine.The text was updated successfully, but these errors were encountered: