Skip to content

examples pass a param file to --params, which is inline-JSON only and unimplemented #1540

Closed

Description

@scttfrdmn

Bug: examples pass a param file to --params, which only takes inline JSON and is not implemented

--params is documented as "Inline JSON parameters for sweep", and the sweep path refuses it outright (cmd/launch_sweep.go):

inline --params not yet implemented, use --param-file for now

Several examples hand it a file path anyway, so a user who copies them gets that error:

  • examples/README.md:43, :55, :75: spawn launch my-genome-run --params examples/staging/reference-genome.yaml (and the hyperparameter-search and MPI ones)
  • examples/workflows/snakemake/Snakefile:21, :40: spawn launch --params {SWEEP_FILE} --detach --wait …
  • examples/workflows/snakemake/README.md:37
  • examples/workflows/airflow/README.md:66: spawn launch --params sweep.yaml --detach --output-id /tmp/id.txt

Evidence

Hermetic, no AWS credentials, on the #1532 branch (where a sweep no longer needs a spore name; before it, the same line failed earlier with "a spore name is required"):

$ spawn launch --params examples/simple-params.yaml --region us-east-1 --estimate-only
⚠️  Could not determine account ID (STS/IMDS unavailable); continuing with audit user=unknown
inline --params not yet implemented, use --param-file for now

Suggested fix

Either change the examples to --param-file, or make --params accept a file path (or @file). The first is a docs-only change. Found while fixing #1532, kept out of that PR to keep its scope narrow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcomponent:spawndocumentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions