Skip to content

fix(deploy): replace bogus --parallel-resource-upload flag with MULTIAPPS_UPLOAD_CHUNKS_SEQUENTIALLY env var - #2563

Merged
jung-thomas merged 1 commit into
DEVfrom
worktree-agent-a42e6e23aea2cc7bd
Sep 30, 2026
Merged

jung-thomas merged 1 commit into
DEVfrom
worktree-agent-a42e6e23aea2cc7bd

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Bug

scripts/deploy-mta.cjs (Step 4) passed --parallel-resource-upload to cf deploy. That is not a real MultiApps CLI plugin flag — verified against the latest plugin (v3.11.1), which has no such flag. cf deploy rejects it with:

Unknown or wrong flags: --parallel-resource-upload

This broke every scripted deploy via npm run deploy. The flag was introduced in de087a2 (PR #2553).

Fix

Replace the bogus CLI flag with the real supported env var MULTIAPPS_UPLOAD_CHUNKS_SEQUENTIALLY=false (parallel chunk upload). Per cf deploy help: "Upload chunks sequentially instead of in parallel. By default is false."

  • false is already the plugin default, so behavior is unchanged — setting it explicitly just documents intent.
  • The env var is threaded into the sh('cf', …) call via { env: cfDeployEnv }, mirroring how the build step passes CAP_BASE_URL.
  • The --dry-run preview line is updated to show the env-var form and no longer prints the bogus flag.

Verification

  • node --check scripts/deploy-mta.cjs passes.
  • node scripts/deploy-mta.cjs --env dev --dry-run Step-4 preview now reads:
    MULTIAPPS_UPLOAD_CHUNKS_SEQUENTIALLY=false cf deploy mta_archives/<newest>.mtar -e ../deploy/dev.mtaext -f — no --parallel-resource-upload.
  • grep -rn -- '--parallel-resource-upload' scripts/ docs/ matches only the explanatory comment; no functional/doc reference remains.

🤖 Generated with Claude Code

…APPS_UPLOAD_CHUNKS_SEQUENTIALLY env var

`--parallel-resource-upload` is not a real MultiApps CLI plugin flag
(verified: latest plugin v3.11.1 has no such flag). `cf deploy` rejects
it with "Unknown or wrong flags: --parallel-resource-upload", which broke
EVERY scripted deploy via `npm run deploy` since it was introduced in
de087a2 (PR #2553).

Replace it with the real supported env var
MULTIAPPS_UPLOAD_CHUNKS_SEQUENTIALLY=false (parallel chunk upload), which
is already the plugin default — behavior is unchanged, intent is documented.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@jung-thomas
jung-thomas merged commit e253235 into DEV Sep 30, 2026
4 checks passed
@jung-thomas
jung-thomas deleted the worktree-agent-a42e6e23aea2cc7bd branch September 30, 2026 20:56
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