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]: Distribution builds can have path collisions #669

Closed
5 of 6 tasks
Tracked by #573
peternied opened this issue Oct 1, 2021 · 7 comments · Fixed by #1226
Closed
5 of 6 tasks
Tracked by #573

[Bug]: Distribution builds can have path collisions #669

peternied opened this issue Oct 1, 2021 · 7 comments · Fixed by #1226
Assignees
Labels
bug Something isn't working

Comments

@peternied
Copy link
Member

peternied commented Oct 1, 2021

Distribution builds are not namespace'd based on the type of artifact produced so an OpenSearch and OpenSearch Dashboard build could collide.

Actual

The current path generated is https://ci.opensearch.org/ci/dbc/builds/1.1.0/328/x64/manifest.yml.

Expected

It should have the distribution type in the path like https://ci.opensearch.org/ci/dbc/opensearch/builds/1.1.0/328/x64/manifest.yml and https://ci.opensearch.org/ci/dbc/opensearch-dashboards/builds/1.1.0/328/x64/manifest.yml

Required changes

  • Update the build jobs to include the build type in the url for the generated manifests, see bundle_recorder.py.
  • Update the jenkinsfile to upload to a destination based on the build type, see Jenkinsfile.

Other changes

@peternied peternied added the bug Something isn't working label Oct 1, 2021
@dblock
Copy link
Member

dblock commented Oct 1, 2021

What is dbc, btw?

@dblock
Copy link
Member

dblock commented Oct 1, 2021

Let's make sure to address #661 when we change these.

@peternied
Copy link
Member Author

Looks like #714 is related to this change too

@dblock
Copy link
Member

dblock commented Oct 7, 2021

Should we consider merging the output of build and assemble and renaming bundle as well? #692 and #479?

We could end up with a single folder that contains build output and bundle:

https://ci.opensearch.org/ci/dbc/opensearch/builds/1.1.0/328/x64/min/openseach-min-1.1.0.tar.gz (currently bundle/...)
https://ci.opensearch.org/ci/dbc/opensearch/builds/1.1.0/328/x64/dist/openseach-1.1.0.tar.gz (now separate under bundles)
https://ci.opensearch.org/ci/dbc/opensearch/builds/1.1.0/328/x64/maven/...

@zelinh zelinh changed the title [Bug]: Distribution builds can have path colisitions [Bug]: Distribution builds can have path collisions Oct 7, 2021
@zelinh
Copy link
Member

zelinh commented Oct 26, 2021

Regarding of "Migrate/ update existing artifacts to the new destination" sub-task, I think we should not change the location of existing artifacts because we didn't update the old paths for these artifacts.

@peternied
Copy link
Member Author

@zelinh You can close out this task if you don't think we should do the migration. We don't have a strict policy around CI artifact storage so I'm fine with them haveing a different schema and eventually disappearing.

#788 is a much more targeted migration which would make sense to honor.

@zelinh
Copy link
Member

zelinh commented Oct 26, 2021

I am closing out this issue since the problem on path collisions is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants