Skip to content
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

[Backport] [2.x] Add missing no jdk distributions (#4722) #4884

Merged

Conversation

rursprung
Copy link
Contributor

  • add missing no-jdk gradle targets for distributions

by convention all supported platforms should also have a gradle target to produce a no-jdk build and that target should be called no-jdk-[platform].

this is a first step in the path to publishing the no-jdk distributions as part of the release, as there are use-cases where a specific JDK should be used instead of the packaged one and it's cleaner to use a small distribution which doesn't bring along an unneeded JDK (the JDK greatly increases the resulting distribution since).

note that i failed to rename the linux-s390x target, it seems that there's too much generic build code out there which tries to stitch together that name and then fails if it doesn't find it.

this is part of opensearch-build#99.

Signed-off-by: Ralph Ursprung [email protected]

  • add basic README for :distribution

this is primarily to document the JDK & No JDK setup (to codify it for the future), however the README can be extended in the future to document more information which is currently hidden away only somewhere in the code.

Signed-off-by: Ralph Ursprung [email protected]

Signed-off-by: Ralph Ursprung [email protected]
(cherry picked from commit dfa1118)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

* add missing no-jdk gradle targets for distributions

by convention all supported platforms should also have a gradle target
to produce a no-jdk build and that target should be called
`no-jdk-[platform]`.

this is a first step in the path to publishing the no-jdk distributions
as part of the release, as there are use-cases where a specific JDK
should be used instead of the packaged one and it's cleaner to use a
small distribution which doesn't bring along an unneeded JDK (the JDK
greatly increases the resulting distribution since).

note that i failed to rename the `linux-s390x` target, it seems that
there's too much generic build code out there which tries to stitch
together that name and then fails if it doesn't find it.

this is part of opensearch-build#99.

Signed-off-by: Ralph Ursprung <[email protected]>

* add basic README for `:distribution`

this is primarily to document the JDK & No JDK setup (to codify it for
the future), however the README can be extended in the future to
document more information which is currently hidden away only somewhere
in the code.

Signed-off-by: Ralph Ursprung <[email protected]>

Signed-off-by: Ralph Ursprung <[email protected]>
(cherry picked from commit dfa1118)
@rursprung rursprung requested review from a team and reta as code owners October 24, 2022 12:40
@rursprung rursprung mentioned this pull request Oct 24, 2022
6 tasks
@codecov-commenter
Copy link

Codecov Report

Merging #4884 (dfa1118) into 2.x (0503897) will increase coverage by 0.08%.
The diff coverage is 54.99%.

❗ Current head dfa1118 differs from pull request most recent head 9965e92. Consider uploading reports for the commit 9965e92 to get more accurate results

@@             Coverage Diff              @@
##                2.x    #4884      +/-   ##
============================================
+ Coverage     70.76%   70.84%   +0.08%     
- Complexity    57654    57932     +278     
============================================
  Files          4620     4689      +69     
  Lines        276150   276913     +763     
  Branches      40408    40301     -107     
============================================
+ Hits         195421   196192     +771     
- Misses        64406    64430      +24     
+ Partials      16323    16291      -32     
Impacted Files Coverage Δ
...ark/time/NanoTimeVsCurrentTimeMillisBenchmark.java 0.00% <0.00%> (ø)
...nsearch/gradle/precommit/LicenseHeadersTask.groovy 0.00% <ø> (ø)
.../java/org/opensearch/gradle/JdkDownloadPlugin.java 37.36% <0.00%> (ø)
...org/opensearch/gradle/RepositoriesSetupPlugin.java 38.63% <0.00%> (ø)
...ensearch/gradle/precommit/FilePermissionsTask.java 78.78% <ø> (ø)
...search/gradle/precommit/ForbiddenPatternsTask.java 88.40% <ø> (ø)
...g/opensearch/gradle/precommit/LoggerUsageTask.java 0.00% <ø> (ø)
...ensearch/gradle/precommit/ThirdPartyAuditTask.java 0.00% <0.00%> (ø)
...ensearch/gradle/tar/SymbolicLinkPreservingTar.java 0.00% <0.00%> (ø)
...a/org/opensearch/gradle/test/DistroTestPlugin.java 0.00% <ø> (ø)
... and 942 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@reta reta added the backport PRs or issues specific to backporting features or enhancments label Oct 24, 2022
@reta reta changed the title Add missing no jdk distributions (#4722) [Backport] [2.x] Add missing no jdk distributions (#4722) Oct 24, 2022
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@rursprung
Copy link
Contributor Author

Gradle Check (Jenkins) Run Completed with:

* **RESULT:** UNSTABLE ❌

* **URL:** https://build.ci.opensearch.org/job/gradle-check/5343/

* **CommitID:** [9965e92](https:/opensearch-project/OpenSearch/commit/9965e92709316c3772774c45f82ae2547e503f82)

seems to be a false reject 😞

@reta
Copy link
Collaborator

reta commented Oct 24, 2022

Gradle Check (Jenkins) Run Completed with:

* **RESULT:** UNSTABLE ❌

* **URL:** https://build.ci.opensearch.org/job/gradle-check/5343/

* **CommitID:** [9965e92](https:/opensearch-project/OpenSearch/commit/9965e92709316c3772774c45f82ae2547e503f82)

seems to be a false reject 😞

#3603

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@reta reta merged commit 5bf2ec4 into opensearch-project:2.x Oct 24, 2022
@rursprung rursprung deleted the backport/backport-4722-to-2.x branch October 24, 2022 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport PRs or issues specific to backporting features or enhancments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants