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

Rename internal filename of sha512 so checksum pass #1581

Conversation

peterzhuamazon
Copy link
Member

Description

Rename internal filename of sha512 so checksum pass:

$ sha512sum opensearch-min-2.0.0-SNAPSHOT-linux-x64-latest.tar.gz
8dc5b8c1c899d8f3250a79f1fc56fc595fd03fe0b09dd5ca9036f969e26248cf321d151e6253e2378378818bc83dae1fe9adbbb90440c01e1b988e047b215d69  opensearch-min-2.0.0-SNAPSHOT-linux-x64-latest.tar.gz


$ cat opensearch-min-2.0.0-SNAPSHOT-linux-x64-latest.tar.gz.sha512
8dc5b8c1c899d8f3250a79f1fc56fc595fd03fe0b09dd5ca9036f969e26248cf321d151e6253e2378378818bc83dae1fe9adbbb90440c01e1b988e047b215d69  opensearch-min-2.0.0-SNAPSHOT-linux-x64.tar.gz

In #1574 we simply rename the checksum file without replacing the internal filename to the new one.
This PR we fix this issue by using sed to replace the names.

Issues Resolved

#1497

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.

@peterzhuamazon peterzhuamazon requested a review from a team as a code owner February 1, 2022 22:29
@peterzhuamazon peterzhuamazon added bug Something isn't working cicd labels Feb 1, 2022
@peterzhuamazon peterzhuamazon linked an issue Feb 1, 2022 that may be closed by this pull request
Signed-off-by: Peter Zhu <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2022

Codecov Report

Merging #1581 (f01c2a3) into main (50e0afe) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1581   +/-   ##
=========================================
  Coverage     94.46%   94.46%           
  Complexity       12       12           
=========================================
  Files           153      153           
  Lines          3233     3233           
  Branches         23       23           
=========================================
  Hits           3054     3054           
  Misses          172      172           
  Partials          7        7           

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 50e0afe...f01c2a3. Read the comment docs.

@peterzhuamazon
Copy link
Member Author

@gaiksaya @peternied please take a look for the changes with id removed.

Thanks.

vars/uploadMinSnapshotsToS3.groovy Show resolved Hide resolved
vars/uploadMinSnapshotsToS3.groovy Outdated Show resolved Hide resolved
Copy link
Contributor

@abhinavGupta16 abhinavGupta16 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 peterzhuamazon merged commit 4a3660e into opensearch-project:main Feb 2, 2022
@peterzhuamazon peterzhuamazon deleted the opensearch-latestchecksum-1497 branch February 2, 2022 00:27
@dblock
Copy link
Member

dblock commented Feb 2, 2022

If we did a 302 redirect from -latest.tar.gz to -1234.tar.gz we wouldn't have this issue, consider this as a followup.

peterzhuamazon added a commit to peterzhuamazon/opensearch-build that referenced this pull request Feb 16, 2022
…ect#1581)

* Adding checksum for latest snapshots artifacts

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

* Change to snapshots dir name in path

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

* Update test stack with new location

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

* Simplify the naming in artifacts variables

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

* Rename internal filename of sha512 so checksum pass

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

* Update tests

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

* Remove id number

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

* Move sh block outside of withAWS block

Signed-off-by: Peter Zhu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cicd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: checksum check failing for OpenSearch
8 participants