Skip to content

Add sha512 generation to promotion job #1367

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

Merged
merged 3 commits into from
Dec 18, 2021

Conversation

peternied
Copy link
Member

@peternied peternied commented Dec 17, 2021

Description

The promotion workflow is picking up artifacts from a distribution build and placing them in their final resting place on the artifacts server. This is a perfect opportunity to do any final polishing steps on artifacts that are ready for release. Adding this hook for file actions and creating a sha512 generation closure.

This is untested on jenkins, but is the core POC needed to bootstrap the signing workflow.

Issues Resolved

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.

The promotion workflow is picking up artifacts from a distribution build and placing them in their final resting place on the artifacts server.  This is a perfect oppertunity to do any final polishing steps on artifacts that are ready for release.  Adding this hook for file actions and creating a sha512 generation closure.

This is untested on jenkins, but is the core POC needed to bootstrap the signing workflow.

Signed-off-by: Peter Nied <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2021

Codecov Report

Merging #1367 (ca32fee) into main (5055229) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1367   +/-   ##
=========================================
  Coverage     94.02%   94.02%           
  Complexity       11       11           
=========================================
  Files           136      138    +2     
  Lines          3011     3013    +2     
  Branches          8        8           
=========================================
+ Hits           2831     2833    +2     
  Misses          172      172           
  Partials          8        8           
Impacted Files Coverage Δ
tests/jenkins/jobs/PromoteArtifacts_Jenkinsfile 100.00% <100.00%> (ø)
.../jenkins/jobs/PromoteArtifacts_actions_Jenkinsfile 100.00% <100.00%> (ø)

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 5055229...ca32fee. Read the comment docs.

Copy link
Member

@peterzhuamazon peterzhuamazon left a comment

Choose a reason for hiding this comment

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

Overall great addition to the promotion workflow and allow us to expand with signer and more actions later.

Thanks!

@peternied peternied requested a review from dblock December 17, 2021 13:35
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.

I like it! You definitely want to test in Jenkins because permissions might not let you do what you're trying to do :(

Minor fixes during testing

Signed-off-by: Peter Nied <[email protected]>
@peternied peternied marked this pull request as ready for review December 17, 2021 23:02
@peternied peternied requested a review from a team as a code owner December 17, 2021 23:02
Signed-off-by: Peter Nied <[email protected]>
@peternied peternied merged commit ce15479 into opensearch-project:main Dec 18, 2021
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 this pull request may close these issues.

4 participants