Skip to content

Commit

Permalink
ci: update snap gen version (#682)
Browse files Browse the repository at this point in the history
* ci: update snap gen version

* ci: remove old binary tag

* ci: test previous version of snap gen tool

* ci: update snap gen version
  • Loading branch information
cosmic-vagabond authored Jul 31, 2024
1 parent 9e11f54 commit 1542bbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/delete-branch-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Retrieve post upgrade snapshot generator binary
run: |
POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION=v0.2.7
POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION=v0.2.9
DOWNLOAD_URL=https://github.com/elys-network/post-upgrade-snapshot-generator/releases/download/${POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION}/post-upgrade-snapshot-generator-${POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION}-linux-amd64
POST_UPGRADE_SNAPSHOT_GENERATOR_PATH=/tmp/post-upgrade-snapshot-generator-${POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION}
curl -L $DOWNLOAD_URL -o $POST_UPGRADE_SNAPSHOT_GENERATOR_PATH && chmod +x $POST_UPGRADE_SNAPSHOT_GENERATOR_PATH
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/software-upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Retrieve post upgrade snapshot generator binary
run: |
POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION=v0.2.7
POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION=v0.2.9
DOWNLOAD_URL=https://github.com/elys-network/post-upgrade-snapshot-generator/releases/download/${POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION}/post-upgrade-snapshot-generator-${POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION}-linux-amd64
POST_UPGRADE_SNAPSHOT_GENERATOR_PATH=/tmp/post-upgrade-snapshot-generator-${POST_UPGRADE_SNAPSHOT_GENERATOR_VERSION}
curl -L $DOWNLOAD_URL -o $POST_UPGRADE_SNAPSHOT_GENERATOR_PATH && chmod +x $POST_UPGRADE_SNAPSHOT_GENERATOR_PATH
Expand All @@ -55,6 +55,7 @@ jobs:
- name: Build new binary
run: |
# create new git tag
git tag -d v0.39.0
git tag -f v999.999.999
# build new elys binary
make build
Expand Down
4 changes: 2 additions & 2 deletions app/setup_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func loadUpgradeStore(app *ElysApp) {
// Added: []string{},
// Deleted: []string{},
}
app.Logger().Info("Setting store loader with height %d and store upgrades: %+v\n", upgradeInfo.Height, storeUpgrades)
app.Logger().Info(fmt.Sprintf("Setting store loader with height %d and store upgrades: %+v\n", upgradeInfo.Height, storeUpgrades))

// Use upgrade store loader for the initial loading of all stores when app starts,
// it checks if version == upgradeHeight and applies store upgrades before loading the stores,
Expand All @@ -102,6 +102,6 @@ func loadUpgradeStore(app *ElysApp) {

func shouldLoadUpgradeStore(app *ElysApp, upgradeInfo upgradetypes.Plan) bool {
currentHeight := app.LastBlockHeight()
app.Logger().Debug("Current block height: %d, Upgrade height: %d\n", currentHeight, upgradeInfo.Height)
app.Logger().Debug(fmt.Sprintf("Current block height: %d, Upgrade height: %d\n", currentHeight, upgradeInfo.Height))
return upgradeInfo.Name == version.Version && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height)
}

0 comments on commit 1542bbc

Please sign in to comment.