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

[Bug]: How can we download the OpenSearch min artifacts for windows #2754

Closed
peternied opened this issue Oct 18, 2022 · 15 comments
Closed

[Bug]: How can we download the OpenSearch min artifacts for windows #2754

peternied opened this issue Oct 18, 2022 · 15 comments
Labels

Comments

@peternied
Copy link
Member

peternied commented Oct 18, 2022

Describe the bug

Note; this the windows platform specific security demo script opensearch-project/security#2161

We are trying to setup builds and validation of OpenSearch for the Security Plugin, ./gradlew.bat build functions on a windows machine, but need the minimum artifact, just like how they are obtained for linux with

opensearch_version=`./gradlew properties -q | grep "opensearch_version:" | awk '{print $2}' | sed 's/-SNAPSHOT//g'`
wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/$opensearch_version/latest/linux/x64/tar/builds/opensearch/dist/opensearch-min-$opensearch_version-linux-x64.tar.gz

I assume there would be a pattern that would look something like the following. Is there a url we can use to get these artifacts?

[1] Possible windows artifact pattern https://.ci.opensearch.org/ci/dbc/distribution-build-opensearch/$opensearch_version/latest/_windows/x64/zip/_builds/opensearch/dist/opensearch-min-$opensearch_version-windows-x64.zip

Notes

I Inspected a recent 3.0.0 build, https://build.ci.opensearch.org/job/distribution-build-opensearch/6226/flowGraphTable/ Do not see a step where artifacts are uploaded.

@peternied peternied added bug Something isn't working untriaged Issues that have not yet been triaged labels Oct 18, 2022
@bbarani
Copy link
Member

bbarani commented Oct 18, 2022

@peternied You can download the Windows -min artifacts from here. @peterzhuamazon Can you confirm if its updated link?

@bbarani bbarani added windows and removed untriaged Issues that have not yet been triaged bug Something isn't working labels Oct 18, 2022
@peternied
Copy link
Member Author

Thanks @bbarani it looks like we can get https://artifacts.opensearch.org/snapshots/core/opensearch/2.4.0-SNAPSHOT/opensearch-min-2.4.0-SNAPSHOT-windows-x64-latest.zip can keep us unblocked.

I notice this is different than the previous urls we were using prefixed with https://build.ci.opensearch.org/job/distribution-build-opensearch/, should we broadly us one over the other?

@peternied
Copy link
Member Author

FYI @scrawfor99 ^

@peterzhuamazon
Copy link
Member

peterzhuamazon commented Oct 18, 2022

@peternied unblocked, link available now.

$ curl -vvv https://artifacts.opensearch.org/snapshots/core/opensearch/2.4.0-SNAPSHOT/opensearch-min-2.4.0-SNAPSHOT-windows-x64-latest.zip
*   Trying <>
* Connected to artifacts.opensearch.org (<>) port 443 (#0)

......

< HTTP/2 200
< content-type: application/zip
< content-length: 219749189
......

Thanks.

@peternied
Copy link
Member Author

I notice this is different than the previous urls we were using prefixed with https://build.ci.opensearch.org/job/distribution-build-opensearch/, should we broadly us one over the other?

Can we please keep this open until we have an answer to this question?

@dblock
Copy link
Member

dblock commented Oct 19, 2022

Agreed, I'll reopen.

@dblock dblock reopened this Oct 19, 2022
@gaiksaya
Copy link
Member

gaiksaya commented Oct 19, 2022

Hi @peternied, the snapshots are accessible via artifacts.opensearch.org. However for other components like plugin zips, etc https://ci.opensearch.org/ci/dbc/distribution-build-opensearch was used.
More details in README https://github.com/opensearch-project/opensearch-build/blob/main/README.md#min-snapshots

@peternied
Copy link
Member Author

Thanks @gaiksaya, glad to see this is documented! According to the documentation there are two different ways to get artifacts, Latest Distribution Url vs Min Snapshots. Are these functionality the same, or are there considerations teams should have to use one vs the other?

@gaiksaya
Copy link
Member

gaiksaya commented Oct 19, 2022

The latest distribution url is more towards distribution artifacts like tarballs, zips, manifest where as the Min Snapshots only focuses on min artifact and will always be latest as it gets overridden in each run. I hope this helps.

@peternied
Copy link
Member Author

Cool, so it seems like for our build processes we should use the latest distribution url. It looks like the windows build isn't being published to that bucket. Can we use this issue to track that we need to update the build process to mirror the linux builds that are being published

@peterzhuamazon
Copy link
Member

Cool, so it seems like for our build processes we should use the latest distribution url. It looks like the windows build isn't being published to that bucket. Can we use this issue to track that we need to update the build process to mirror the linux builds that are being published

It is already published as part of the bundle build.
The artifacts path is more of a old method before ci being introduced.

@peternied
Copy link
Member Author

Does that mean there is a modification to the following URL that will get the latest windows build? https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/3.0.0/6234/windows/x64/zip/builds/opensearch/dist/opensearch-min-3.0.0-windows-x64.zip

Could you help me figure out what that url is?

@bbarani
Copy link
Member

bbarani commented Oct 20, 2022

@peternied it should follow the below format but it looks like we don't have successful full distribution build for 3.0 yet but the below URL works for 2.3.1 at this point in time. @peterzhuamazon can you please confirm?

https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.3.1/latest/windows/x64/zip/dist/opensearch/opensearch-2.3.1-windows-x64.zip

@peternied
Copy link
Member Author

@scrawfor99 Checkout the most recent comment [1] to see how we can get the current windows build url

[1] #2754 (comment)

@peternied
Copy link
Member Author

Issue seems resolved for me, thanks for all the help tracking this down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants