Repository navigation
fix(cli): print manifest resume instruction when migration fails - #1377
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; the resume hint no longer contradicts missing-store recovery advice.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
🦋 Changeset detectedLatest commit: e5882c7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen 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 |
Fixes #1328
Summary
"the manifest records the last committed batch; run the same command to resume"to theCliError::Migrate(message)failure line incrates/nostream-cli/src/app.rsso operators see directly on stderr that re-running resumes from the manifest.crates/nostream-cli/src/app.rs(app::tests::a_migrate_failure_line_names_the_manifest_and_resume_instruction) and updatea_failed_run_reports_migration_failed_and_exits_1incrates/nostream-cli/tests/migrate_cli.rsto assert the emitted failure line names the manifest and includes the resume instruction.Verification
cargo fmt --all --checkcargo 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::paniccargo test -p nostream-cli --lib app::testscargo test -p nostream-cli --test migrate_cli(42 passed, 0 failed)