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

Add script to generate cosmovisor binaries json and list osmosis upgrades #5907

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

niccoloraspa
Copy link
Member

@niccoloraspa niccoloraspa commented Jul 28, 2023

Tracked in: #5904

What is the purpose of the change

This pull request introduces post-release automation to the project by adding a new script, create_binaries_json.py. The script is designed to generate cosmovisor binaries JSON files based on either a tag or a checksum.

I have added extended documentation to the scripts/release/create_binaries_json.py script.

The changes included in this PR are as follows:

  • scripts/release/create_binaries_json.py: script performs the actual generation of cosmovisor binaries JSON files.

  • scripts/release/requirements.txt: dependencies required for the create_binaries_json.py script.

  • scripts/release/create_all_binaries_json.sh: script facilitates the creation of cosmovisor binaries JSON files for all the latest minor versions across each major version.

  • networks/osmosis-1/README.md: new documentation file to track all previous upgrades and cosmovisor binaries.

Testing and Verifying

cd scripts/release/
pip install -r requirements.txt
python create_binaries_json.py --tag <TAG>

Example run:

❯ python create_binaries_json.py --tag v16.1.1
{
  "binaries": {
    "linux/arm64": "https://github.com/osmosis-labs/osmosis/releases/download/v16.1.1/osmosisd-16.1.1-linux-arm64?checksum=sha256:b96ff1f4c9b4abecb1b38998b1a1f891cfed2cc8078ab64914b151183c0c199b",
    "darwin/arm64": "https://github.com/osmosis-labs/osmosis/releases/download/v16.1.1/osmosisd-16.1.1-darwin-arm64?checksum=sha256:c743da4d3632a2bc3ea0ce784bbd13383492a4a34d53295eb2c96987bacf8e8c",
    "darwin/amd64": "https://github.com/osmosis-labs/osmosis/releases/download/v16.1.1/osmosisd-16.1.1-darwin-amd64?checksum=sha256:d856ebda9c31f052d10a78443967a93374f2033292f0afdb6434b82b4ed79790",
    "linux/amd64": "https://github.com/osmosis-labs/osmosis/releases/download/v16.1.1/osmosisd-16.1.1-linux-amd64?checksum=sha256:f838618633c1d42f593dc33d26b25842f5900961e987fc08570bb81a062e311d"
  }
}

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

@niccoloraspa niccoloraspa requested a review from czarcas7ic July 28, 2023 15:04
@niccoloraspa niccoloraspa added V:state/compatible/no_backport State machine compatible PR, depends on prior breaks A:no-changelog labels Jul 28, 2023
Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

awesome!

@ValarDragon ValarDragon merged commit 6284ea3 into main Jul 28, 2023
@ValarDragon ValarDragon deleted the feat/cosmovisor-binaries-script branch July 28, 2023 19:06
VitalyV1337 pushed a commit to VitalyV1337/osmosis-1 that referenced this pull request Jul 31, 2023
…ades (osmosis-labs#5907)

* Add script to generate cosmovisor binaries json and improve upgrade docs

* Linting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:no-changelog V:state/compatible/no_backport State machine compatible PR, depends on prior breaks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants