Skip to content

Conversation

breskeby
Copy link
Contributor

@breskeby breskeby commented Nov 7, 2024

This causes problems since this also includes building our wolfi image that is based on a non public available base image resulting in build failure for user without access to the docker registry.

We should avoid suggesting using ./gradlew assemble as it builds a tons of stuff unrelated to any distribution.

Instead people should be pointed to ./gradlew localDistro

@breskeby breskeby added >non-issue :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v8.17.0 labels Nov 7, 2024
@breskeby breskeby self-assigned this Nov 7, 2024
Copy link
Contributor

github-actions bot commented Nov 7, 2024

Documentation preview:

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@breskeby breskeby requested review from a team, jozala and tvernum November 7, 2024 13:03
@breskeby
Copy link
Contributor Author

breskeby commented Nov 7, 2024

Related to this discussion in our forum: https://discuss.elastic.co/t/elasticsearch-build-failure/369889/5

We have suggested using `./gradlew assemble` in our README to build elasticsearch artifacts. This
causes problems since this also includes building our wolfi image that is based on a non public available wolfi base image.
To work around this we introduce a task `assemblePublicArtifacts` that we also reference in our docs
for third party elasticsearch source user.
This also reduces the stuff that is build beyond the distribution. like fixtures that are not part
of the distribution.
@breskeby breskeby force-pushed the fix-external-assemble branch from 2baad8d to ab211a8 Compare November 7, 2024 13:19
build.gradle Outdated
* - building artifacts that are not required for a user (e.g. internally used test fixtures)
* - failure when building docker images with non public base images (e.g. wolfi)
* */
tasks.register("assemblePublicArtifacts").configure {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there's value in such a task. There's no reason why anyone would want to build all these artifacts in one go and it just adds confusion. Let's omit this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed that and removed mentioned of this and ./gradlew assemble from the README

@breskeby breskeby requested a review from mark-vieira November 7, 2024 18:51
@breskeby breskeby changed the title [Build] Provide task to build all public available artifacts [Build] Remove mentioning ./gradlew assemble to build all distributions Nov 7, 2024
Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

FWIW, I'm not sure why there are so many whitespace formatting changes in this PR. Makes it kind of hard to see the real changes.

@breskeby breskeby merged commit 35c6b60 into elastic:main Nov 8, 2024
16 checks passed
@breskeby breskeby deleted the fix-external-assemble branch November 8, 2024 06:28
jozala pushed a commit that referenced this pull request Nov 13, 2024
…ns (#116400)

This causes problems since this also includes building our wolfi image that is based on a non public available base image resulting in build failure for user without access to the docker registry.

We should avoid suggesting using ./gradlew assemble as it builds a tons of stuff unrelated to any distribution. 

Instead people should be pointed to `./gradlew localDistro`
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
…ns (elastic#116400)

This causes problems since this also includes building our wolfi image that is based on a non public available base image resulting in build failure for user without access to the docker registry.

We should avoid suggesting using ./gradlew assemble as it builds a tons of stuff unrelated to any distribution. 

Instead people should be pointed to `./gradlew localDistro`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants