DRAFT feat(forge): stand up a mainnet-aligned ephemeral devnet via the k8s backend - #398
Open
apenzk wants to merge 2 commits into
Open
DRAFT feat(forge): stand up a mainnet-aligned ephemeral devnet via the k8s backend#398apenzk wants to merge 2 commits into
apenzk wants to merge 2 commits into
Conversation
…backend - add eph_devnet forge-cli suite: 4 validators, mainnet chain params (chain id 250, compressed timings, 100K/1B MOVE staking), and a validator resource override sized for m6a.2xlarge nodes - install the genesis and aptos-node charts directly via helm instead of the aptos-registry forge-testnet-deployer image (which this fork cannot pull or build), restoring the pre-deployer install path - distribute the genesis blob via S3 (env-driven bucket) instead of a k8s Secret, which caps at 1 MB: the genesis job uploads and validators download using the node instance role - repoint chart image repos to Movement GHCR (validator, tools) and drop the hardcoded Aptos genesis-blob upload URL - make Chaos Mesh and Prometheus optional so forge runs on a bare cluster without them - add restore-staking-config.move for the post-genesis migration; gitignore .claude/
apenzk
requested review from
0xIcarus,
Primata,
ganymedio and
musitdev
as code owners
July 16, 2026 14:47
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
Adds a forge suite and the supporting backend/chart changes to stand up a mainnet-aligned ephemeral devnet on a bare EKS cluster. The goal is a throwaway network a developer can deploy from their own branch, test against for a couple of hours, then tear down — with the network's chain id and config aligned to mainnet so branch code is exercised under mainnet-like conditions.
The forge k8s backend was written for Aptos's internal infrastructure; the bulk of this change is decoupling it from that infra so it runs on a plain Movement cluster.
What works
Validated on a live cluster:
GetMetadatatest passes against the running network.Changes
m6a.2xlarge. Registered inmain.rs+mod.rs.forge-testnet-deployerimage; tolerate a missing Chaos Mesh CRD; env-driven S3 bucket for the genesis blob. Prometheus made optional (swarm.rs).Alternatives
forge-testnet-deployer image (tried, rejected)
The first attempt kept forge's default k8s deploy path, which delegates the install to a
forge-testnet-deployercontainer image (viaForgeDeployerManagerin install_testnet_resources). It failed against a real Movement cluster, for reasons that make it a dead end rather than a quick fix.What happened: the deployer pod sat in
ImagePullBackOff. The image is hardcoded in k8s_deployer/constants.rs to Aptos's registry:us-docker.pkg.dev/aptos-registry/docker/forge-testnet-deployerf5937ed393eb5214997d1cae0da75d2392cdbc70(a pinned Aptos main-branch build)Challenges:
FORGE_DEPLOY_VALUES_JSON,helm installgenesis → wait for the job →helm installaptos-node) — reverse-engineering an undocumented Aptos-internal contract.forgeservice account withcluster-admin— a prerequisite for running the deployer, not part of the image.Why worse than this PR?
Installing the charts directly (this PR) needs no external image, CI, or RBAC, and the framework comes from the branch under test.