Conversation
1466776 to
b3e95b4
Compare
This reverts commit b3e95b4.
|
@gregorydemay See the updated PR description. I've opened an issue and PR in the upstream release-plz repository and this PR now just uses the patched GitHub action in the meantime until those changes are merged upstream. Note that after running the release pipeline, the generated PR didn't update the |
gregorydemay
left a comment
There was a problem hiding this comment.
Thanks for the fix!
.github/workflows/release.yml
Outdated
| uses: dtolnay/rust-toolchain@v1 | ||
| with: | ||
| command: release-pr | ||
| toolchain: nightly |
There was a problem hiding this comment.
do we really need nightly?
There was a problem hiding this comment.
Actually it was a huge pain to get release-plz to compile from source (see the commits in this branch 😅) due to their use of some unstable features (I believe if let chains in if statements) and conflicts with the sol-rpc-canister repo Rust version. I guess this should hopefully be just a temporary fix so I thought it's good enough, but we can also experiment to find was versions of Rust work. WDYT?
There was a problem hiding this comment.
If it's just to compile release-plz, then I'm totally fine with it, but I'm more worried that nightly could be use to compile the sol-rpc-canister and this would be problematic (for build reproducibility)
There was a problem hiding this comment.
I looked into it a bit more and stumbled onto this tracking issue for the problematic unstable feature. Turns out it's enough to just use Rust 1.88.0 to compile the release-plz GitHub action, since the feature became stable then. I just changed the cargo install to use v1.88.0 instead of nightly and it seems to work fine.
There is one commit that should be picked up if the changelog was automatically generated But that's I think not too tragic and could be manually adapted in the generated PR? |
@gregorydemay I guess actually |
In #215 we switched to building the release-plz CLI from source to include release-plz/release-plz#2357 before it was merged. Since that change is now merged in the upstream repository master branch, this PR switches back to the upstream version of the release-plz GitHub action, pinning the release-plz version to v0.3.142 which includes release-plz/release-plz#2357.
In #215 we switched to building the release-plz CLI from source to include release-plz/release-plz#2357 before it was merged. Since that change is now merged in the upstream repository master branch, this PR switches back to the upstream version of the release-plz GitHub action, pinning the release-plz version to v0.3.142 which includes release-plz/release-plz#2357.
Currently,
release-plzruns into issues when trying to determine the next version of thesol_rpc_canistercrate. This is because thesol_rpc_canistercrate is a binary crate and hence not published on crates.io. However, since a release tag exists for the crate,release-plztries to download the latest release from crates.io and fails. See this failed release pipeline run for example.I've opened a PR to fix this issue in the upstream release-plz repository, and updated the release pipeline here to build the release-plz GitHub action from source to include those changes. This is a temporary solution until the changes are merged in the upstream repository. The release pipeline runs again successfully when using the patched release-plz GitHub action (see this run).