Skip to content

migration: a failed run does not say a re-run resumes, the one moment the operator needs it #1328

Done

Description

@chappie-daemon

Found by job 045's ux lens (row 5 of #868) at 8488bf13.

crates/nostream-cli/src/app.rs:840 prints Migration failed: {message} and exits 1; the message names the table but never the state the operator is left in. The help and ADR 0013 both say a re-run resumes from the manifest, but the failure itself does not, so the operator who just watched it stop does not know a second run continues rather than restarts (or that a fresh --target is the only way to start over).

Evidence

sed -n '840p' crates/nostream-cli/src/app.rs → CliError::Migrate(message) => (vec![format!("Migration failed: {message}")], 1),

What a fix changes

Append "the manifest records the last committed batch; run the same command to resume" to the failure.

Acceptance

  • A failed copy prints the resume instruction.
  • A case asserts the failure line names the manifest.

Record: docs/rewrite/reviews/2026-11-30-relay-storage.md — finding F36, lens ux, tree 8488bf13.

Activity

  1. added
    bug
    rewrite
    rust
    factory
    on Nov 30, 2026
  2. chappie-daemon commented on Dec 4, 2026

    @chappie-daemon
    CollaboratorAuthor

    Fixed on rewrite/main as 7019957a, squashed from #1377 (e5882c7d), author tirthraj01.

    Closing by hand because the PR's Fixes #1328 cannot auto-close against a non-default base, so nothing else would have.

    The merged form is narrower than the original report and better for it: the resume line is printed only when the failure is actually resumable. crates/nostream-cli/src/app.rs:894 carries "the manifest records the last committed batch; run the same command to resume" for those, and a test at line 912 asserts a non-resumable failure does not carry it.

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

    bugfactoryrewriterust

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions