Skip to content

feat: add --wait to mrt bundle deploy and align SDK wait functions#305

Merged
clavery merged 3 commits intomainfrom
clavery/align-wait-add-deploy-wait
Mar 30, 2026
Merged

feat: add --wait to mrt bundle deploy and align SDK wait functions#305
clavery merged 3 commits intomainfrom
clavery/align-wait-add-deploy-wait

Conversation

@clavery
Copy link
Copy Markdown
Collaborator

@clavery clavery commented Mar 30, 2026

Summary

  • Add --wait flag to mrt bundle deploy — polls until deployment completes, with --poll-interval (default 10s) and --timeout (default 600s) flags
  • Align all SDK wait functions (waitForJob, waitForEnv) to the canonical pattern established by waitForSandbox/waitForClone: structured PollInfo callbacks (onPoll with elapsedSeconds/status), seconds-based options (pollIntervalSeconds, timeoutSeconds), injectable sleep for testing, and initial delay before first poll
  • Add missing CLI flags for consistency: --poll-interval/--timeout on mrt env create, --poll-interval on job run
  • Update all CLI callers of waitForJob and waitForEnv to use the new interfaces (job run/wait/import/export, content list/export, sites cartridges add/remove/set, mrt env create)
  • Update documentation for mrt bundle deploy, mrt env create, and job run

Test plan

  • SDK tests pass (1528 passing)
  • CLI tests pass (1145 passing)
  • Typecheck passes across all packages
  • Lint clean
  • Manual test: b2c mrt bundle deploy -p <project> -e <env> --wait
  • Manual test: b2c mrt bundle deploy -p <project> -e <env> --wait --timeout 30 (timeout)
  • Manual test: b2c mrt env create <slug> -p <project> --name "Test" --wait --poll-interval 5

clavery added 3 commits March 30, 2026 01:32
Align all SDK wait functions (waitForJob, waitForEnv) to the canonical
pattern established by waitForSandbox/waitForClone: structured PollInfo
callbacks, seconds-based options, injectable sleep for testing, and
initial delay before first poll.

Add --wait/--poll-interval/--timeout flags to mrt bundle deploy, and
add missing --poll-interval/--timeout flags to mrt env create and
job run for consistency across all CLI wait commands.
Update FAST_WAIT_OPTIONS in content/export and site-archive tests
to use pollIntervalSeconds and injectable sleep instead of the
removed pollInterval property.
@clavery clavery merged commit 7ad490a into main Mar 30, 2026
5 checks passed
@clavery clavery deleted the clavery/align-wait-add-deploy-wait branch March 30, 2026 06:04
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