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

chore: two steps CI/CD deployment #434

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

khanti42
Copy link
Collaborator

Why This Change?

Goal

To safely test new snap versions in production (e.g. on MetaMask not MetaMask Flask) before forcing updates on end-users:

The new workflow would be

  1. Deploy new Snap to NPM
  2. Allowlist the new version
  3. Test the new version with MetaMask locally
  4. Deploy new wallet-ui and get-starknet

Solution

Split the workflow into two parts:

  1. Publish NPM:

    • Build and publish starknet-snap.
    • Output version for allowlisting and validation.
  2. Deploy UI and Get Starknet:

    • Build and deploy wallet-ui and get-starknet separately after snap validation.

Known Limitations

  • get-starknet Wildcard Behavior:
    • Always targets the latest allowlisted snap (*).
    • Cached Webpack modules in dApps may not fetch the updated snap, potentially causing errors.
  • Manual Steps:
    • This split workflow introduces a manual step between publishing the snap and deploying related components. However, this is necessary for controlled testing.

Benefits

  • Controlled production testing for snaps.
  • Prevents breaking changes for get-starknet users.
  • Flexible foundation for future deployment improvements.

@khanti42 khanti42 requested a review from a team as a code owner November 24, 2024 21:53
@khanti42 khanti42 requested review from Julink-eth and stanleyyconsensys and removed request for a team November 24, 2024 21:53
Copy link

sonarcloud bot commented Nov 24, 2024

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-wallet-ui'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Copy link

sonarcloud bot commented Nov 24, 2024

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-starknet-snap'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant