Skip to content

pkg/taskproto: GenerateWrapper should take an options struct (split from #679) #764

Closed

Description

@scttfrdmn

Split out of #679 item 4, so closing #679 (the gate landed in #763) doesn't lose it.

What

pkg/taskproto.GenerateWrapper has gained two parameters in two releases:

v0.111.0  GenerateWrapper(spec *TaskSpec, resultsBucket, region string) string
v0.111.1  GenerateWrapper(spec *TaskSpec, resultsBucket, region string, gpu bool) string
v0.112.0  GenerateWrapper(spec *TaskSpec, resultsBucket, region string, gpu bool, runID string) string

Both additions are "the caller must decide this per launch" — gpu from the
sized instance type, runID freshly minted per attempt. An options struct would
make the next one non-breaking, and would make a missing runID a visible
omission rather than a positional one.

Why it is its own issue

It is itself a breaking change to a package another repo compiles against
(spore-host-mcp, via launch.go). So it needs:

That is a different conversation from "stop shipping accidental breaks", which is
what #679 was.

Related, found while measuring #679's consumers

Two consumers are pinned behind, and one of the pins is to the bad release:

  • lagotto → spawn v0.111.1 — the PATCH release that broke the signature
  • calque → spawn v0.100.0

Neither is urgent, but a consumer sitting on v0.111.1 specifically is worth
moving, and both should be current before a deliberate breaking change lands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions