-
Notifications
You must be signed in to change notification settings - Fork 308
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
Display Git commit info on command line #138
Conversation
Thanks for the great contribution, Sebastien! I think we probably want this integrated in the adam-core (possibly in addition to adam-cli). A few use cases that will require this:
It would be nice to embed the version, and associated checking, in a method as well. Also, could you rebase this down to a single commit? It's how we have been accepting new features. |
Can one of the admins verify this patch? |
Jenkins, please add to whitelist and test. |
One or more automated tests failed |
Jenkins, retest this. |
import java.util.Properties | ||
|
||
object BuildInformation extends AdamCommandCompanion { | ||
val commandName: String = "buildinformation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe "buildinfo"? It would be shorter to type.
Overall, this looks great. Thanks for the contribution, Sebastien! Jenkins is having some issues running the tests but it's not related to your code. I'm tracking that down. Just a few small nits about naming and exposing this info in the core module. |
OK I will collapse the commits, change to Thanks for the feedback |
Don't forget to rebase off of master too, before we merge. |
Jenkins, retest this. |
Jenkins, retest this please. |
All automated tests passed. |
All the tests are passing. This looks good. Once you make your changes, just push them to your git_properties branch to update this pull request. Looking forward to getting this into ADAM. Thanks for the contribution, Sebastien. |
Hi Sorry for the delay, but here it is rebased :) The object And the Cheers |
} | ||
|
||
class BuildInformationArgs extends Args4jBase with ParquetArgs { | ||
// @Args4jOption(required = false, name = "-output", usage = "Output to a file instead of <stdout>") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The arguments are commented out here - are they needed? Do we need BuildInformationArgs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was seeing command line modules a bit like templates easy to fill-in in the future.
Bu if you think it's cleaner, I can try to remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arahuja I believe that a BuildInformationArgs class is required to be passed as a type parameter to the AdamSparkCommand class. However, this new functionality just inherits from an AdamCommand, so I don't think the argument class is needed. @smondet, I think it would be cleaner to remove the BuildInformationArgs class, as it is unused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fnothaft, OK done, and rebased :)
All automated tests passed. |
This is a first attempt at bigdatagenomics#41. - adam-core: Add git-commit plugin to POM file. The file is generated is `adam-core/src/main/resources/git.properties` and the info is available in the object `edu.berkeley.cs.amplab.adam.core.util.BuildInformation`. - adam-cli: Add the command `buildinfo`.
All automated tests passed. |
Display Git commit info on command line
Merged—thank you @smondet! |
This is a first attempt at #41
(a “pick-me-up”).
To dump useful information while reporting bugs.
It uses https://github.com/ktoso/maven-git-commit-id-plugin