Skip to content

[Enhancement] Make Distribution Downloader download from Snapshots instead of Releases and add min keywords #769

@peterzhuamazon

Description

@peterzhuamazon

Describe the enhancement

  1. The current distribution downloader is using the RELEASES channel for downloading artifacts
    repo.patternLayout(layout -> layout.artifact("/releases/core/opensearch/[revision]/[module]-[revision](-[classifier]).[ext]"));

This was due to an earlier decision that distribution downloader requires a static link, and cannot consume artifacts with dynamic build number.

The new approach is to have a snapshot artifact labeled as latest to avoid promoting to RELEASE channel.

  1. Also, due to the plan to support core artifacts without plugins, we added min keyword in the core tarball naming convention, which also needs to be addressed in DistributionDownloader code.
    Release a standalone, minimal artifact opensearch-build#31

Expected behavior
The new link should point to

/snapshots/core/opensearch/[revision]/[module]-min-[revision]-SNAPSHOT(-[classifier])-latest.[ext]

which results in something similar to:

opensearch-min-1.0.0-rc1-SNAPSHOT-linux-x64-latest.tar.gz

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions