Skip to content

substrate v0.132.0: seed task-completion records via /v1/s3/seeded-objects (the /v1/spawn/task-completion seed is removed) #1674

Backlog

Description

@scttfrdmn

substrate v0.132.0 (released 2026-11-24, https://github.com/scttfrdmn/substrate/releases/tag/v0.132.0) removes the spore.host-specific task-completion seed that scttfrdmn/substrate#360 added. Anything that tests spawn task run completion against substrate must now seed each completion record itself.

What changed

  • POST/DELETE /v1/spawn/task-completion no longer exist.
  • Substrate no longer synthesizes tasks/<task_id>/completion.json on its own. An unseeded key is now a real 404 NoSuchKey, as on AWS.
  • A recorded substrate stream that contains the old route replays that event as a 404.

What to use instead: substrate's generic seeded-object endpoint. It answers a GET, HEAD or copy of a key nobody has written:

curl -X POST "$SUBSTRATE/v1/s3/seeded-objects" -H 'Content-Type: application/json' -d '{
  "bucket": "results",
  "key": "tasks/t1/completion.json",
  "contentType": "application/json",
  "body": {"task_id":"t1","exit_code":0,"state":"completed","started_at":"2026-01-01T12:00:00Z","ended_at":"2026-01-01T12:05:00Z"},
  "availableAt": "2026-01-01T12:05:00Z"
}'
  • Fields
    • bucket is optional: omit it, or use "*", to match any bucket.
    • The body goes in body (any JSON value, or a string) or in bodyBase64. Use one, not both.
    • availableAt is optional. The key reports 404 until that instant on substrate's simulated clock, so a poll loop sees "not yet" first and then the record.
  • Reads: the seed is served through the normal object path, so Range and conditional reads work. The bucket itself must exist.
  • Writes: a real PutObject or DeleteObject of the key replaces or hides the seed.
  • Clearing: DELETE /v1/s3/seeded-objects?bucket=results&key=tasks/t1/completion.json clears one seed, and DELETE /v1/s3/seeded-objects clears them all.
  • Exit codes: seed tasks/<id>/.exitcode the same way if the adapters read it.

Likely places to update

  • spawn's own Tier-0 task-completion tests.

  • The workflow adapters' engine-composition CI that runs against substrate: nf-spawn, miniwdl-spawn, cwl-spawn, snakemake-executor-plugin-spawn, airflow-spawn and pegasus-spawn.

    Under the old behaviour an unseeded task defaulted to exit_code: 0 / completed. A test that relied on that default now has to seed. One "bucket": "*" seed per task key in test setup restores the old happy path.

Also in v0.132.0, for anyone embedding substrate as a Go library

  • The Docker Lambda and RDS executors are removed. Invoke never runs code; it answers POST /v1/lambda/invoke-result or /v1/lambda/invoke-error seeds, or the stub.
  • Config.Lambda, Config.RDS and ReplayCfg.RandomSeed are gone.
  • spore-host/spore-host's lambda/ modules pin substrate v0.85.0, so these changes only matter when that pin is bumped.

The full list is in the release's Compatibility section.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions