Skip to content

spawn launch --tag and --team are silently dropped on parameter-sweep and batch-queue launches #1356

Closed

Description

@scttfrdmn

Found while doing #1336.

spawn launch --tag k=v is applied in exactly one place, runLaunch in cmd/launch_single.go (the if len(launchTags) > 0 block, ~l.203), which runs after the batch-queue dispatch (launchWithBatchQueue, ~l.96) and the parameter-sweep dispatch (launchParameterSweep, ~l.130) have already returned. grep -rn launchTags cmd/*.go finds no other reader. buildLaunchConfig does not read it either.

So on spawn launch --param-file ... --tag project=x (foreground and detached) and spawn launch --batch-queue ... --tag project=x, the tag is accepted and silently dropped: no member instance or volume carries it. Same for --team (spawn:team-id/spawn:team-name), which sits in the same block. This is the #697 class (a flag honoured only by the single-instance path).

Evidence: code reading only, not run against AWS. A test could build the sweep's member configs (buildLaunchConfigFromParams from launchParameterSweep's baseConfig) with launchTags set and assert the tag is in config.Tags.

Fix shape: move the --tag/--team merge into buildLaunchConfig (which both the single and sweep paths call), and give the batch-queue path the same. #1336's tag-limit pre-flight already counts config.Tags, so it covers them once they arrive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:launchcomponent:spawntype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions