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

[META] Move snapshot build jobs out of distribution build jobs #3185

Closed
20 tasks done
Tracked by #1906 ...
bbarani opened this issue Feb 6, 2023 · 2 comments · Fixed by #3329
Closed
20 tasks done
Tracked by #1906 ...

[META] Move snapshot build jobs out of distribution build jobs #3185

bbarani opened this issue Feb 6, 2023 · 2 comments · Fixed by #3329
Assignees

Comments

@bbarani
Copy link
Member

bbarani commented Feb 6, 2023

Problem:

Currently the snapshot jobs are tightly coupled with monolithic distribution build job creating single point of failure and bottleneck for day to day development.
There are 2 kinds of snapshots:

  1. Min tarball snapshot: This is core/engine/min only snapshot available as a tarball and accessible via https://artifacts.opensearch.org/snapshots/core/opensearch/....
    More details: https://github.com/opensearch-project/opensearch-build#min-snapshots
  2. Maven snapshots: These are the snapshots published on nexus accessible via https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/ and includes all components including plugins.
  1. is not an issue today and is independent of any components. However, 2) is a tightly coupled workflow.
    The maven snapshots are published based on input manifest where if one of the component fails to build, the entire snapshot publication to maven is abandoned. We will need to move the snapshot job outside of distribution build jobs in to its own job / have the respective repos publish snapshots via GitHub actions to de-centralize the publishing process.

Solution

The move tightly coupled workflows can be decoupled by moving snapshot publication to each component repository. The credentials to publish snapshot can be retrieved via AWS GHA integration that is already set in place

We tried this solution with security plugin and it works well. https://github.com/opensearch-project/security/actions/runs/4206453061

Child issues with all backend plugins:

@gaiksaya
Copy link
Member

gaiksaya commented Feb 7, 2023

Related #1182

@jordarlu jordarlu added triaged This issue has been reviewed by the triage team and removed untriaged Issues that have not yet been triaged labels Feb 14, 2023
@jordarlu jordarlu removed the triaged This issue has been reviewed by the triage team label Feb 14, 2023
@jordarlu
Copy link
Contributor

jordarlu commented Feb 14, 2023

The plan is to move the snapshot publication to each individual repo

@gaiksaya gaiksaya changed the title Move snapshot build jobs out of distribution build jobs [META] Move snapshot build jobs out of distribution build jobs Feb 17, 2023
This was referenced Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants