anomalyco / anomalyco/opencode

Show database migration progress during service upgrades

Open
#38,561 0 comments 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Jul 23, 2026.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Context

Database migrations can make a service upgrade appear stalled. A migration tested while preparing #38367 took roughly 37 seconds on an unusually large 8.8 GB database even after batching reduced its memory and runtime costs.

Idea

Let migrations optionally report bounded progress and surface it in the service-upgrade TUI. For migrations that know their total work, show completed/total progress; otherwise show the active migration and an indeterminate indicator.

This is a future UX improvement rather than a requirement for #38367.

Considerations

  • Keep migrations usable outside the interactive TUI.
  • Avoid requiring a full-table count merely to calculate progress.
  • Preserve useful noninteractive/log output.
  • Ensure progress reporting does not materially slow the migration.

Requested by: @kitlangton (Kit via Slack)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.