-
Notifications
You must be signed in to change notification settings - Fork 229
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
feat(scripts): Rewrite gen-upgrade-proposal.sh #10590
Conversation
Fixes #8784 * script arguments for target release/tag/commit and Cosmos upgrade name, plus pass-through of arbitrary `agd tx` arguments * automatic selection of upgrade name from gen-github-release.sh release contents, with interactive disambiguation (where possible) of multiple candidates * reasonable defaults for title and description from gen-github-release.sh release contents * script option `--send` to invoke `agd tx` rather than just printing it out (but successfully invocation additionally requires `--from` etc.) * readable output of the `agd tx` command and data affecting it, whether or not it is to be invoked directly * argument checking with readable error messages and usage details * use of GitHub requests and https://main.agoric.net/network-config, overridable by environment variables
Deploying agoric-sdk with
|
Latest commit: |
f54f821
|
Status: | ✅ Deploy successful! |
Preview URL: | https://8fb28d46.agoric-sdk.pages.dev |
Branch Preview URL: | https://gibson-8784-scriptable-gen-u.agoric-sdk.pages.dev |
I am getting this error when trying to run the script
|
Hmm, that line is
@mujahidkay what do you see from |
@gibson042 it indeed turned out to be a version issue. The script doesn't work with |
@mujahidkay Thanks for checking. I decided to refactor the script so it should work with older bash and grep, because I'd rather have the compatibility than add otherwise unnecessary friction.
Similarly fixed in #10785. |
#10590 (comment) > I also noticed we need `jq 1.7` minimum when running `scripts/npm-dist-tag.sh` and my machine had jq 1.6 out of the box. ## Description Replace [`pick(...)`](https://jqlang.github.io/jq/manual/v1.7/#pick) with an equivalent expression that doesn't require version 1.7 (cf. [jq/NEWS.md](https://github.com/jqlang/jq/blob/jq-1.7/NEWS.md#language-changes:~:text=Adds%20new%20builtin%20pick(stream)) and jqlang/jq#2656 ). ### Security Considerations None. ### Scaling Considerations n/a ### Documentation Considerations Deferred. ### Testing Considerations Not covered. ### Upgrade Considerations n/a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay. This looks good. I have tested basic usage and it works fine. Thanks for this improvement.
Fixes #8784
Description
agd tx
arguments--send
to invokeagd tx
rather than just printing it out (but successfully invocation additionally requires--from
etc.)agd tx
command and data affecting it, whether or not it is to be invoked directlySample use:
Security Considerations
This script is not directly on a security-critical path, but it is important for it to remain transparent for operators.
Scaling Considerations
n/a
Documentation Considerations
Includes embedded usage information, and also remains backwards-compatible in a zero-argument form that uses git HEAD as the target ref (although we should consider instead making target ref a required argument).
I'd also like to incorporate https://github.com/Agoric/estimator into
agd
itself, for something better than--upgrade-height "$(agoric-estimator -date '<DATE>' -rpc https://main.rpc.agoric.net:443 | tee /dev/stderr | sed -n '$s/.* //p')"
, but haven't done so in this PR.Testing Considerations
Tested manually, although I'm open to ideas.
Upgrade Considerations
None in particular.