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

feat: node upgrade infra #12127

Merged
merged 2 commits into from
Feb 27, 2025
Merged

feat: node upgrade infra #12127

merged 2 commits into from
Feb 27, 2025

Conversation

just-mitch
Copy link
Collaborator

@just-mitch just-mitch commented Feb 20, 2025

Add utilities to make upgrades easy. Confirm that upgrades work in a spartan environment by:

  1. Doing a network deployment
  2. Deploying a new rollup and a payload to make it the new canonical
  3. Proposing that via the sequencers
  4. Executing that GovernanceProposal
  5. Going through the standard governance vote, then executing the payload
  6. Restarting all the pods, and making sure we're building/proving on the new rollup.

Fix #9638
Fix #12071
Fix #12145

Copy link
Collaborator Author

just-mitch commented Feb 20, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@just-mitch just-mitch mentioned this pull request Feb 20, 2025
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch 3 times, most recently from 46bfe8d to 4985107 Compare February 24, 2025 01:01
@just-mitch just-mitch force-pushed the 02-13-feat_fetch_addresses_from_registry branch from c64b04d to c9994ec Compare February 24, 2025 15:22
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch from 4985107 to bd889f9 Compare February 24, 2025 15:22
@just-mitch just-mitch changed the title kind upgrade test feat: node upgrade infra Feb 25, 2025
@just-mitch just-mitch marked this pull request as ready for review February 25, 2025 00:36
@just-mitch just-mitch added the ci-full Run all master checks. label Feb 25, 2025
@just-mitch just-mitch force-pushed the 02-13-feat_fetch_addresses_from_registry branch from c9994ec to ab4338d Compare February 25, 2025 00:40
@just-mitch just-mitch linked an issue Feb 25, 2025 that may be closed by this pull request
@just-mitch just-mitch force-pushed the 02-13-feat_fetch_addresses_from_registry branch from ab4338d to 7936b84 Compare February 25, 2025 13:36
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch 2 times, most recently from 9624c31 to 7af3690 Compare February 25, 2025 14:26
@just-mitch just-mitch force-pushed the 02-13-feat_fetch_addresses_from_registry branch from 7936b84 to 5e290d9 Compare February 25, 2025 16:34
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch from 7af3690 to a885fca Compare February 25, 2025 16:34
@just-mitch just-mitch force-pushed the 02-13-feat_fetch_addresses_from_registry branch 4 times, most recently from 379759b to 35ab869 Compare February 25, 2025 20:38
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch 3 times, most recently from e360e3b to b7279c9 Compare February 25, 2025 23:33
@just-mitch just-mitch force-pushed the 02-13-feat_fetch_addresses_from_registry branch from 35ab869 to 8bddbcb Compare February 26, 2025 02:08
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch from b7279c9 to 4dd08e7 Compare February 26, 2025 02:08
votingDuration: Timestamp.wrap(3600),
executionDelay: Timestamp.wrap(3600),
gracePeriod: Timestamp.wrap(3600),
votingDelay: Timestamp.wrap(60),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is there an issue for picking real values for these?

Copy link
Member

Choose a reason for hiding this comment

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

Was 60 picked to make the test work? I would prefer they default high but we adjust the slot in a test to a lower value

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As discussed offline, the 60 was picked just to make the test fast, and acknowledging that for the first few upgrades on testnet, aztec labs likely be using proposeWithLock and voting, so shorter times are preferable.

Ideally these are configurable in a constructor, similar to the governanceproposer.

return walletGovernance.read.powerAt([this.walletClient!.account.address, now.timestamp]);
}

public async vote({
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This can obviously be DRYed with some kind of generic function.

@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch from 4dd08e7 to 0131a55 Compare February 26, 2025 02:50
@just-mitch just-mitch force-pushed the 02-13-feat_fetch_addresses_from_registry branch from 8bddbcb to c1a2bd1 Compare February 26, 2025 02:59
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch from 0131a55 to 20a306d Compare February 26, 2025 02:59
@@ -38,32 +54,12 @@ done || {
echo "$output"

# Extract contract addresses using grep and regex
rollup_address=$(echo "$output" | grep -oP 'Rollup Address: \K0x[a-fA-F0-9]{40}')
registry_address=$(echo "$output" | grep -oP 'Registry Address: \K0x[a-fA-F0-9]{40}')
Copy link
Member

Choose a reason for hiding this comment

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

nice!

@@ -258,7 +258,14 @@ export async function createAztecNode(
deps: { telemetry?: TelemetryClient; blobSinkClient?: BlobSinkClientInterface } = {},
options: { prefilledPublicData?: PublicDataTreeLeaf[] } = {},
) {
const aztecNodeConfig: AztecNodeConfig = { ...getConfigEnvVars(), ...config };
// TODO(#12272): will clean this up. This is criminal.
Copy link
Member

Choose a reason for hiding this comment

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

image Throwback to aztec connect's configurator

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🫢


import { createPublicClient, http } from 'viem';

export async function getL1Addresses(
Copy link
Member

Choose a reason for hiding this comment

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

very nice

@@ -0,0 +1,187 @@
import {
Copy link
Member

Choose a reason for hiding this comment

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

very nice!

Copy link
Member

@Maddiaa0 Maddiaa0 left a comment

Choose a reason for hiding this comment

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

awesome awesome awesome awesome awesome awesome

@just-mitch just-mitch force-pushed the 02-13-feat_fetch_addresses_from_registry branch from c1a2bd1 to cd46471 Compare February 26, 2025 16:47
@just-mitch just-mitch changed the base branch from 02-13-feat_fetch_addresses_from_registry to graphite-base/12127 February 26, 2025 17:34
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch from 20a306d to 9d24400 Compare February 26, 2025 17:39
@just-mitch just-mitch changed the base branch from graphite-base/12127 to master February 26, 2025 17:39
Copy link
Contributor

@charlielye charlielye left a comment

Choose a reason for hiding this comment

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

I approve the change to the bootstrap.sh

@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch from 9d24400 to b3628eb Compare February 26, 2025 20:01
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch 4 times, most recently from e811637 to f9ff4ab Compare February 27, 2025 01:01
@just-mitch just-mitch removed the ci-full Run all master checks. label Feb 27, 2025
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch from f9ff4ab to bb2043e Compare February 27, 2025 01:51
@just-mitch just-mitch force-pushed the 02-19-kind_upgrade_test branch from bb2043e to 04afa69 Compare February 27, 2025 12:19
@just-mitch just-mitch added the ci-full Run all master checks. label Feb 27, 2025 — with Graphite App
@just-mitch just-mitch merged commit cdf29d8 into master Feb 27, 2025
17 of 19 checks passed
@just-mitch just-mitch deleted the 02-19-kind_upgrade_test branch February 27, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-full Run all master checks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli voting feat(cli): deploy new rollup version test: upgrade cluster via voting
3 participants