From 386c9f05dd9a2f54cc5c456749ed2cd3e9fe48cc Mon Sep 17 00:00:00 2001 From: Master Pi Date: Tue, 31 Jan 2023 20:15:15 +0700 Subject: [PATCH] update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json (#4173) --- .github/workflows/gen-upgrade-on-manual-input.yml | 8 +++++--- scripts/empty_upgrade_handler_gen.sh | 8 ++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gen-upgrade-on-manual-input.yml b/.github/workflows/gen-upgrade-on-manual-input.yml index c52b2edb287..8a6cfaf57e7 100644 --- a/.github/workflows/gen-upgrade-on-manual-input.yml +++ b/.github/workflows/gen-upgrade-on-manual-input.yml @@ -1,7 +1,8 @@ # When user trigger this workflow with custom version input, this action will do 3 things: -# 1) it will create a directory with an empty upgrade handler in app/upgrades folder -# 2) will increase an E2E_UPGRADE_VERSION variable in Makefile -# 3) create a pull request with these changes to main +# 1) create a directory with an empty upgrade handler in app/upgrades folder +# 2) increase E2E_UPGRADE_VERSION variable in Makefile +# 3) update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json +# 4) create a pull request with these changes to main # Please note that if the given version (or release major version) is smaller than the latest # existing upgrade handler version in `app/upgrades/`, this will be a no-op. @@ -58,6 +59,7 @@ jobs: Update report - Created a new empty upgrade handler - Increased E2E_UPGRADE_VERSION in Makefile by 1 + - Increased OSMOSIS_E2E_UPGRADE_VERSION in .vscode/launch.json by 1 labels: | T:auto C:e2e diff --git a/scripts/empty_upgrade_handler_gen.sh b/scripts/empty_upgrade_handler_gen.sh index f14c3ffaf14..16c255c39cd 100755 --- a/scripts/empty_upgrade_handler_gen.sh +++ b/scripts/empty_upgrade_handler_gen.sh @@ -2,8 +2,9 @@ # 1) this script creates an empty directory in app/upgrades called "vX" where X is a previous version + 1 with an empty upgrade handler. # 2) adds new version to app.go -# 3) increases E2E_UPGRADE_VERSION in makefile by 1 -# 4) bumps up previous e2e-init version in tests/e2e/containers/config.go +# 3) update OSMOSIS_E2E_UPGRADE_VERSION variable in .vscode/launch.json +# 4) increases E2E_UPGRADE_VERSION in makefile by 1 +# 5) bumps up previous e2e-init version in tests/e2e/containers/config.go # Also insures that all the imports make use of a current module version from go mod: # (see: module=$(go mod edit -json | jq ".Module.Path") in this script) @@ -119,3 +120,6 @@ else echo "Using pre-defined osmosis-e2e-init-chain tag: $PREV_OSMOSIS_E2E_TAG" sed -i '/previousVersionInitTag/s/".*"/'"\"$PREV_OSMOSIS_E2E_TAG\""'/' $e2e_file fi + +# update OSMOSIS_E2E_UPGRADE_VERSION in launch.json +sed -i "s/${bracks}OSMOSIS_E2E_UPGRADE_VERSION${bracks}: ${bracks}v$latest_version${bracks}/${bracks}OSMOSIS_E2E_UPGRADE_VERSION${bracks}: ${bracks}$version_create${bracks}/" ./.vscode/launch.json