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

[RPM M1] (Re-open) Update build workflow to build based on distribution (OpenSearch) #1629

Conversation

peterzhuamazon
Copy link
Member

Signed-off-by: Peter Zhu [email protected]

Description

Update build workflow to build based on distribution (OpenSearch).
You can now use --distribution to build tar/zip/rpm for OpenSearch-min.
Not completely bound to platform anymore.

This would also setup the stage for bundled RPM creation in assemble_workflow (#2073)

Issues Resolved

Part of #1543

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@codecov-commenter
Copy link

codecov-commenter commented Feb 16, 2022

Codecov Report

Merging #1629 (eb89ed8) into main (bddbc06) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1629      +/-   ##
============================================
+ Coverage     94.67%   94.68%   +0.01%     
- Complexity       13       14       +1     
============================================
  Files           163      163              
  Lines          3437     3446       +9     
  Branches         21       21              
============================================
+ Hits           3254     3263       +9     
  Misses          180      180              
  Partials          3        3              
Impacted Files Coverage Δ
src/build_workflow/builder_from_source.py 100.00% <ø> (ø)
src/run_build.py 91.11% <ø> (ø)
src/build_workflow/build_args.py 100.00% <100.00%> (ø)
src/build_workflow/build_recorder.py 100.00% <100.00%> (ø)
src/build_workflow/build_target.py 100.00% <100.00%> (ø)
src/manifests/build_manifest.py 100.00% <100.00%> (ø)
src/jenkins/BuildManifest.groovy 91.66% <0.00%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bddbc06...eb89ed8. Read the comment docs.

@peterzhuamazon
Copy link
Member Author

Will add more tests tomorrow after all the changes in #1619.

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Just needs tests.

scripts/components/OpenSearch/build.sh Outdated Show resolved Hide resolved
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work.

@dblock dblock requested a review from a team February 17, 2022 17:26
Copy link
Member

@gaiksaya gaiksaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peterzhuamazon
Copy link
Member Author

Thanks @dblock @gaiksaya tho I dont think I have added all the test cases yet :)
I will confirm and add all of those before merging this.

Thanks.

@peterzhuamazon
Copy link
Member Author

The dashboard part still needs some changes to reflect this addition, will issue new PRs on this.
Thanks.

@peterzhuamazon peterzhuamazon merged commit 855b85f into opensearch-project:main Feb 17, 2022
@peterzhuamazon peterzhuamazon deleted the opensearch-build-distribution branch February 17, 2022 22:15
@peterzhuamazon
Copy link
Member Author

@dblock just so you know OSD code does not build rpm correctly: opensearch-project/OpenSearch-Dashboards#1259

@peterzhuamazon peterzhuamazon changed the title (Re-open) Update build workflow to build based on distribution (OpenSearch) [RPM M1] (Re-open) Update build workflow to build based on distribution (OpenSearch) Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants