system migrate: hide --migrate-db flag #30391
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.60) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 233 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #30391"
general
weight: 0.35
Honny1
Fixes #30210
Database migration from BoltDB to SQLite now runs automatically on reboot, so podman system migrate --migrate-db is normally not needed. The flag can't be removed before 7.0 without breaking scripts that still pass it. This PR keeps the flag working and hides it from --help, shell completion, and the man page. It follows the same approach as the earlier hidden-flag cleanups, such as 655b8cee14 for --cpu-rt-period.
The change is in cmd/podman/system/migrate.go (MarkHidden("migrate-db") with a TODO for 7.0) and in podman-system-migrate.1.md, where the --migrate-db section is removed. Parsing and runtime behavior are unchanged.
I left the error text as it is. Without a reboot, --migrate-db is the only manual way to run the migration, so users still need to see the name when they hit the error. I checked this in an isolated root with a fake BoltDB file. On a second run, system migrate without the flag fails with the BoltDB error that points to the flag (exit 125). The same run with --migrate-db gets past init and reaches the migration step, which then fails on the fake file. Branch and main gave the same results for these runs. The first run without the flag triggers the automatic migration attempt instead of failing.
Testing:
system migrate --help no longer lists the flag. --migrate-db --help is still accepted.
Shell completion no longer suggests the flag.
hack/xref-helpmsgs-manpages passes after make docs. The first run failed only because of a stale generated manpage.
TestShellCompletionFunctions passes.
golangci-lint reports 0 issues for ./cmd/podman/system/.... I did not run it on the whole repo.
make validatepr passes with PODMANCMD=/usr/bin/podman.
The --migrate-db option of podman system migrate is now hidden from --help, shell completion, and the man page. It still works and is planned for removal in Podman 7.0.