Skip to content

Pipeline runs are ship.build#99

Merged
czpython merged 1 commit into
mainfrom
fix-build-kind
Jul 26, 2026
Merged

Pipeline runs are ship.build#99
czpython merged 1 commit into
mainfrom
fix-build-kind

Conversation

@czpython

Copy link
Copy Markdown
Owner

Follow-up to #89.

That revision rewrote durable_runs.kind with a prefix swap, 'ship.' || substring(kind from 7). The pipeline's old kind was build.build_workflow — class BuildWorkflow, snake-cased — so it became ship.build_workflow. But the class is Build now, so its kind is ship.build, and nothing matches the migrated spelling. (build.profileship.profile was correct; only the pipeline rows are wrong.)

Where it shows:

  • Run.list_for_subject(..., kind=cls.kind) filters where(cls.kind == kind), so a pre-rename run drops out of its subject's timeline and off the board.
  • get_subject_status(..., kind=Build.kind) in WorkItem — a PR merging on a pre-rename work item finds no parked run to cancel.

This revision lands both spellings on the real kind, so it is correct whether or not #89's revision has already been applied. The downgrade restores ship.build_workflow, which #89's own downgrade then maps back to build.build_workflow.

Not covered here: dbos.workflow_status.name still holds the pre-rename registered name for runs that were in flight at deploy. We never read that column, so history is unaffected — it only matters for recovering a run that was PENDING or ENQUEUED across the deploy, which a drain window covers.

The rename revision swapped the kind prefix, so build.build_workflow became ship.build_workflow — but the workflow class is Build now, and its kind is ship.build. Nothing matches the old spelling: a pre-rename run falls out of its subject's timeline, and a PR merging on one finds no parked run to cancel.
@czpython
czpython enabled auto-merge (squash) July 26, 2026 12:41
@czpython
czpython merged commit 88bc1dd into main Jul 26, 2026
1 check passed
@czpython
czpython deleted the fix-build-kind branch July 26, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant