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] Cannot get latest artifacts for CI #3199

Closed
peternied opened this issue Feb 14, 2023 · 7 comments
Closed

[Bug] Cannot get latest artifacts for CI #3199

peternied opened this issue Feb 14, 2023 · 7 comments
Assignees
Labels
bug Something isn't working community jenkins Jenkins related issue plugins

Comments

@peternied
Copy link
Member

peternied commented Feb 14, 2023

In the Security team, we've got two tightly coupled repositories, our plugin for OpenSearch and a plugin for OpenSearch Dashboards. During out CI workflow we depend on artifacts from the distribution build [1] [2]. If these artifacts are out of date or not present it creates a considerable amount of churn to figure out why they aren't up to date and then outreach to trigger a 'minimal' distribution build, latest blocked PRs [3] [4]. This is compounded in plugins for OpenSearch Dashboards where we might need to make a fix for a new version of OpenSearch in the plugin, but the distribution has to build so we can download the most recent artifacts.

Problem

We are at a point where it is not productive to depend on distribution artifacts for our CI workflow, due to requesting / waiting on a 'partial' distribution build [5]. We would like to start producing snapshot artifacts for use between these repositories. This gives plugin teams control over what artifacts are used and how they are updated.

Proposal

We are proposing that some artifacts are not built through OpenSearch-build systems. We would like to publish these artifacts through maven - can we do that independently of the https://build.ci.opensearch.org infrastructure? Has someone already done this and we can repeat their process?

@peternied
Copy link
Member Author

FYI @opensearch-project/security

@peternied peternied added bug Something isn't working untriaged Issues that have not yet been triaged jenkins Jenkins related issue labels Feb 14, 2023
@peternied peternied changed the title [Discussion] Should plugins produce artifacts outside of opensearch-build [Bug] Cannot get latest artifacts for CI Feb 14, 2023
@dblock
Copy link
Member

dblock commented Feb 14, 2023

+1 on moving snapshot builds into their own repo GHA workflows, including OpenSearch

@cwperks
Copy link
Member

cwperks commented Feb 14, 2023

@peternied I filed a related issue a while ago in the security repo with stale maven jars. I think security should checkout core and perform a ./gradlew publishToMavenLocal to ensure the build is performed with the latest SNAPSHOT. opensearch-project/security#2276

@bbarani
Copy link
Member

bbarani commented Feb 14, 2023

We have already decided to move snapshots out of distribution build jobs and created an issue but we haven't prioritized it yet due to bandwidth issues. @gaiksaya already has the steps / information required to make this happen.

@joshpalis
Copy link
Member

+1 @peternied we have experienced similar issues with stale snapshots and the resulting churn has impacted our velocity as well. @saratvemulapalli has opened a proposal here : #3180

@gaiksaya
Copy link
Member

@bbarani
Copy link
Member

bbarani commented Feb 28, 2023

Closing this issue as we are tracking the progress to move the snapshot job to GHA workflow using this issue

@bbarani bbarani closed this as completed Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community jenkins Jenkins related issue plugins
Projects
None yet
Development

No branches or pull requests

7 participants