Repository navigation
Harden deploy workflows: shared build, validated artifact promotion, and dry-run planning - #272
Merged
Conversation
…es before depl Closes SynapsVault#179
|
@jayejim Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Harden deploy workflows: shared build, validated artifact promotion, and dry-run planning
What was solved
#179 — [deployment] Detect protected-branch push failures before deployment
Update the mainnet deployment workflow so it selects a supported manifest delivery path (bot PR or release artifact) and verifies that path is available before deployment begins, preventing protected-branch push failures from surfacing only after deployment completes.
Addressed:
#180 — [deployment] Use a tested reusable build for both deployment networks
Extract the duplicated compiler/CLI installation and WASM build steps from the mainnet and testnet deploy workflows into a shared, tested reusable workflow (or composite action), and have both network deploy workflows consume its build outputs while preserving their existing network approval behavior.
Addressed:
#181 — [deployment] Promote the tested WASM bytes to mainnet
Update the mainnet deployment workflow so it promotes the exact WASM artifact validated on testnet instead of rebuilding contracts. The workflow should accept an immutable validated artifact selection (e.g., a release/artifact identifier or run ID), verify the artifact's originating commit matches the expected mainnet commit and that its checksum matches the recorded/expected checksum, then deploy those exact bytes.
Addressed:
#182 — [deployment] Package a dry-run plan before submitting transactions
Add a dry-run deployment planning capability to the mainnet deploy workflow so maintainers can generate an inspectable plan (network, admin, source commit, artifact hashes, intended operations) without submitting any transactions. This is a workflow/scripting enhancement; no contract interface or storage changes are involved.
Addressed:
Changes
.github/workflows/mainnet-deploy.yml(modify).github/workflows/testnet-deploy.yml(modify)docs/CONTRACTS.md(modify)deployed/contract-ids.env(modify)README.md(modify)Approach
Issues
Closes #179
Closes #179
Closes #180
Closes #180
Closes #181
Closes #181
Closes #182
Closes #182