Skip to content

launch --param-file without CLI --instance-type is treated as the interactive wizard (refuses --no-public-ip); examples omit the required name #1532

Closed

Description

@scttfrdmn

Bug: a --param-file sweep without --instance-type on the command line takes the interactive-wizard path

spawn launch swr --param-file p.yaml --sweep-name swr --subnet-id <s> --no-public-ip … is refused with:

--no-public-ip is not supported by the interactive wizard, which does not read the launch flags; pass --instance-type (and --subnet-id or --az) to launch with flags

p.yaml sets defaults.instance_type: t4g.small, so the sweep has an instance type. The launch-mode detection still treats a missing CLI --instance-type as a request for the wizard, even when --param-file/--params is given. Adding --instance-type t4g.small on the command line makes it work.

Found live on 2026-11-05 while testing #1531 (v0.159.0 plus that branch).

Related doc drift

examples/simple-params.yaml (and probably others) gives the usage as spawn launch --param-file simple-params.yaml --sweep-name simple-experiment, with no spore name. But launchNameArgs requires one for every launch, sweeps included: a spore name is required….

Suggested fix

  • Have the mode detection treat --param-file/--params as a flags-mode launch.
  • Either make the name optional for sweeps (default it to --sweep-name), or fix the examples.
  • Add a test: a param-file sweep with instance_type only in defaults launches without the wizard guard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:launchbugcomponent:spawn

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions