Skip to content

let the paid live suites run at once from one checkout - #360

Draft
polyominal wants to merge 1 commit into
mainfrom
live-concurrent
Draft

polyominal wants to merge 1 commit into
mainfrom
live-concurrent

Conversation

@polyominal

Copy link
Copy Markdown
Collaborator

A contributor can now start cargo xtask live ec2, cargo xtask live ec2 --lost and cargo xtask live modal at once from one checkout. They then wait for the slowest suite, not for the sum of all three. The controller already takes concurrent jobs. Only the suites' local task repository kept them apart.

What clashed

Each suite built the smoke's task repository at target/live/repo. Each run began by deleting the last run's copy of examples. So a suite started while another ran deleted that one's files and replaced its install in .pumpkin/bin.

Each suite now builds its own: live/<target>/repo in the target directory, or live/<target>-lost/repo with --lost. For the gate's suites these are target/live/ec2/repo, target/live/ec2-lost/repo and target/live/modal/repo. Each keeps a .pumpkin workspace of its own, with its install, its run records and its client state of the controller. A checkout's old target/live/repo is no longer used. cargo clean removes it.

What the suites still share

  • The build. Cargo serializes builds in one target directory, and the suites build the same HEAD. Cargo doesn't link a fresh artifact again, so one suite's copy from the target directory never meets another's build. The pinned tools' cache and the musl compiler's links in target/musl-cc are replaced by rename.
  • The client's SSH key and pinned host key in ~/.config/pumpkin/ssh. The key is made once, by rename. The pinned key isn't written again.
  • The controller. Its install script takes an install of the same build that another client put there first. Its store of task blobs takes concurrent senders. Each suite's job, record and systemctl kill are its run's own.
  • The checks of what is left. They look up EC2 instances, EventBridge schedules and Modal sandboxes by the run's id.
  • The reap. pumpkin reap leaves a live run to its driver. A record appears only once its driver holds the lock. So a --lost suite's reap leaves the other suites' running runs alone. The lost check already ignores a reap failure that names other runs alone.

Two --lost suites at once still clash. The reap of each takes every ended or lost run on the controller. It can remove the other run's sandboxes before they end by themselves, which that check is meant to show. The --lost help now says to run one --lost at a time. The release gate runs one, ec2 --lost.

The same reap can also take a non-lost suite's run in the seconds between that run's end and its check of what is left. It would then hide what that run left. The reap comes about 95 to 110 minutes after the --lost suite starts, so this needs the other run to end in that window. Another member's reap on the controller can do the same today.

Two runs of one target at once, such as live modal with two GPU models, still share a task repository. The help says that different targets can run at once.

live docker installs into bin/live in the checkout and doesn't use target/live.

Verification

  • cargo xtask ci passes.
  • The three suites started at once against a controller name that no deployment has. Each passed its credential checks of AWS and Modal. Each copied examples and installed the build in its own task repository: the three copies came within about a second of one another, and the three installs within 7 ms. Each then stopped at pumpkin-admin check's read of the missing SSM parameter, before any run started.
  • live ec2 20261122-114350-2dd1c54e, live ec2 --lost 20261122-114414-71f37461 (the reap left nothing) and live modal 20261122-114410-7605d6b0 passed, started at once from this checkout, each in its own task repository

AI-assisted: claude-opus-5.5

`cargo xtask live ec2`, `live ec2 --lost` and `live modal` each built
the smoke's task repository at `target/live/repo`. Each run began by
deleting the last run's copy of `examples`. So a suite started while
another ran deleted that one's files and replaced its install. The
suites ran one after another, though the controller takes concurrent
jobs.

Each suite now builds `live/<target>/repo` in the target directory, or
`live/<target>-lost/repo` with `--lost`. Each keeps a `.pumpkin`
workspace of its own: its install, its run records and its client state
of the controller. What the suites still share holds when they run at
once. Cargo serializes the builds in the target directory. The tool
cache and the musl compiler's links are replaced by rename. The
controller takes an install of a build that another client put there
first. Each check looks only for its own run's id.

Two `--lost` suites still clash. The reap of each takes every ended or
lost run on the controller. It can remove the other run's sandboxes
before they end by themselves. The help says to run one `--lost` at a
time.

AI-assisted: claude-opus-5.5
@polyominal
polyominal marked this pull request as draft November 22, 2026 12:03
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