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

Allow getting versions for any package. #2935

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

winder
Copy link
Contributor

@winder winder commented Sep 21, 2021

Summary

Add an option to support version checking for arbitrary packages. This would allow us to deploy indexer releases at algorand-releases/<channel>/indexer-*

Test Plan

Ran the command and see the correct regex:

~$ updater ver check -c nightly -p indexer
Checking for files matching: 'channel/nightly/indexer_nightly_linux-amd64_' in bucket algorand-releases
no updates found for channel 'nightly'

@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2021

Codecov Report

Merging #2935 (d632c78) into master (8f743a9) will increase coverage by 0.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2935      +/-   ##
==========================================
+ Coverage   47.30%   47.32%   +0.01%     
==========================================
  Files         355      355              
  Lines       56889    56891       +2     
==========================================
+ Hits        26913    26921       +8     
+ Misses      26945    26935      -10     
- Partials     3031     3035       +4     
Impacted Files Coverage Δ
cmd/updater/versionCmd.go 19.23% <66.66%> (+3.23%) ⬆️
crypto/merkletrie/trie.go 66.42% <0.00%> (-2.19%) ⬇️
crypto/merkletrie/node.go 91.62% <0.00%> (-1.87%) ⬇️
ledger/blockqueue.go 81.03% <0.00%> (-1.15%) ⬇️
data/transactions/verify/txn.go 43.42% <0.00%> (-0.88%) ⬇️
ledger/eval.go 76.82% <0.00%> (+0.28%) ⬆️
network/wsPeer.go 75.48% <0.00%> (+0.55%) ⬆️
network/requestTracker.go 71.12% <0.00%> (+0.86%) ⬆️
catchup/service.go 70.12% <0.00%> (+1.55%) ⬆️
agreement/proposalManager.go 98.03% <0.00%> (+1.96%) ⬆️
... and 1 more

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 8f743a9...d632c78. Read the comment docs.

@@ -67,7 +70,7 @@ var checkCmd = &cobra.Command{
if err != nil {
exitErrorf("Error creating s3 session %s\n", err.Error())
} else {
version, _, err := s3Session.GetLatestUpdateVersion(channel)
version, _, err := s3Session.GetPackageVersion(channel, packageName, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like you could deprecate GetLatestUpdateVersion with this change.

Copy link
Contributor

@tsachiherman tsachiherman left a comment

Choose a reason for hiding this comment

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

few small requests, but looks good otherwise.

@tsachiherman tsachiherman merged commit 9bb4154 into algorand:master Oct 26, 2021
cce pushed a commit to cce/go-algorand that referenced this pull request Oct 28, 2021
## Summary

Add an option to support version checking for arbitrary packages. This would allow us to deploy indexer releases at `algorand-releases/<channel>/indexer-*`

## Test Plan

Ran the command and see the correct regex:
```
~$ updater ver check -c nightly -p indexer
Checking for files matching: 'channel/nightly/indexer_nightly_linux-amd64_' in bucket algorand-releases
no updates found for channel 'nightly'
```
@winder winder deleted the will/package-version branch October 29, 2021 18:39
@egieseke egieseke mentioned this pull request Nov 23, 2021
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.

3 participants