Skip to content

fix(cli): print manifest resume instruction when migration fails - #1377

Merged
cameri merged 2 commits into
cameri:rewrite/mainfrom
tirthraj01:fix/1328-migration-resume-hint
Dec 4, 2026
Merged

cameri merged 2 commits into
cameri:rewrite/mainfrom
tirthraj01:fix/1328-migration-resume-hint

Conversation

@tirthraj01

Copy link
Copy Markdown
Collaborator

Fixes #1328

Summary

  • Append "the manifest records the last committed batch; run the same command to resume" to the CliError::Migrate(message) failure line in crates/nostream-cli/src/app.rs so operators see directly on stderr that re-running resumes from the manifest.
  • Add unit coverage in crates/nostream-cli/src/app.rs (app::tests::a_migrate_failure_line_names_the_manifest_and_resume_instruction) and update a_failed_run_reports_migration_failed_and_exits_1 in crates/nostream-cli/tests/migrate_cli.rs to assert the emitted failure line names the manifest and includes the resume instruction.

Verification

  • cargo fmt --all --check
  • cargo clippy -p nostream-cli --lib --bins --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used -D clippy::todo -D clippy::unimplemented -D clippy::panic
  • cargo test -p nostream-cli --lib app::tests
  • cargo test -p nostream-cli --test migrate_cli (42 passed, 0 failed)

@greptile-apps

greptile-apps Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; the resume hint no longer contradicts missing-store recovery advice.

Summary

The PR adds a manifest resume hint to migration failures that can continue from saved progress.

  • Failed migration runs tell operators when the saved copy can resume.

The previous finding is fixed. No new actionable issues were found. Tests were not run during this review.

Reviews (2) · Last reviewed commit: "fix(cli): show resume instruction only f..." · Reviewed by Greptile

Comment thread crates/nostream-cli/src/app.rs Resolved
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 89f84b7f-e591-43c4-9c21-3042fbe6650e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@changeset-bot

changeset-bot Bot commented Dec 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5882c7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cameri
cameri merged commit 7019957 into cameri:rewrite/main Dec 4, 2026
18 checks passed
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.

2 participants