-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Docs: Update CONTRIBUTING.md with shortcut command for assembling only the tar distribution #35276
Docs: Update CONTRIBUTING.md with shortcut command for assembling only the tar distribution #35276
Conversation
…y the tar distribution, as opposed to all distributable artifacts.
Pinging @elastic/es-core-infra |
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 left a few nits, I'll defer to @nik9000 for overall approval.
CONTRIBUTING.md
Outdated
@@ -196,7 +196,7 @@ the settings window and/or restart IntelliJ to see your changes take effect. | |||
|
|||
### Creating A Distribution | |||
|
|||
To create a distribution from the source, simply run: | |||
To create all distributable artifacts from the source, simply run: |
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.
all distributable artifacts
-> all build artifacts
CONTRIBUTING.md
Outdated
@@ -209,6 +209,13 @@ The package distributions (Debian and RPM) can be found under: | |||
The archive distributions (tar and zip) can be found under: | |||
`./distribution/archives/(tar|zip)/build/distributions/` | |||
|
|||
Note that this assembles every distributable artifact (e.g. plugins, javadocs) as well as |
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.
distributable
-> build
(e.g. plugins, javadocs)
-> (e.g., plugins and Javadocs)
javadocs
-> Javadocs
Thanks for picking this up @cjcenizal! |
I feel like these are backwards. I think. The right first thing to say is
how to build the basic distribution. Then we can say how to build all
artifacts.
…On Mon, Nov 5, 2018, 20:21 Jason Tedor ***@***.*** wrote:
Thanks for picking this up @cjcenizal <https://github.com/cjcenizal>!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35276 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANLorke-Cqkblh84s9CYAHJnfw6JCumks5usOQLgaJpZM4YPbVg>
.
|
Thanks @jasontedor and @nik9000! I've addressed your feedback. Could you take another look? I've also added a note about the |
You can also build the artifacts and distributions in parallel: | ||
|
||
```sh | ||
./gradlew assemble --parallel |
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 think that we can leave this paragraph out and put the --parallel
on the two build commands (tar assemble and full assemble).
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.
Is --parallel
needed/useful when building just the tar?
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.
It does make the build process faster, since pieces of compilation can occur as the dependencies are ready.
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.
And it applies to both.
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.
Great, thanks!
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.
LGTM.
@jasontedor Do I need to get this PR to pass CI? @nik9000 I'll merge once I get your approval. |
Lgtm! Thanks for working on it!
…On Tue, Nov 6, 2018, 19:39 CJ Cenizal ***@***.*** wrote:
@jasontedor <https://github.com/jasontedor> Do I need to get this PR to
pass CI?
@nik9000 <https://github.com/nik9000> I'll merge once I get your approval.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35276 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANLopZh8kOobnLakgdnqXaHeOxh9gaKks5usivVgaJpZM4YPbVg>
.
|
And CI doesn't look at this file so I wouldn't worry about it.
…On Tue, Nov 6, 2018, 20:14 Nikolas Everett ***@***.*** wrote:
Lgtm! Thanks for working on it!
On Tue, Nov 6, 2018, 19:39 CJ Cenizal ***@***.*** wrote:
> @jasontedor <https://github.com/jasontedor> Do I need to get this PR to
> pass CI?
>
> @nik9000 <https://github.com/nik9000> I'll merge once I get your
> approval.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#35276 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AANLopZh8kOobnLakgdnqXaHeOxh9gaKks5usivVgaJpZM4YPbVg>
> .
>
|
Should I backport this to 6.x? |
I expect most folks don't look at contributing docs in the non-master branch, but I do like when we keep our development branches up to date. So I would be good with cherry-picking this back to 6.x. |
…y the tar distribution (#35276) * Add --parallel flag.
…y the tar distribution (elastic#35276) * Add --parallel flag.
This will help people assemble distributions without running into a problem I ran into when running the normal
assemble
command, in whichbuildBwcVersion
failed because I lacked old Java versions: