Repository navigation
fix(cli): shorten apm view summary so root help is not truncated - #3651
Conversation
#3608 gave `apm view` a short_help that wraps at 80 columns, which fails the root-help no-truncation check added in #3643. apm-spec-waiver: help-text-only change, no spec surface Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the help-summary wording change.
No open issues 🎉
What changed in this PR
Shortens the apm view summary so it fits on one line in 80-column root help, addressing the regression introduced by the interaction of #3608 and #3643.
Changes:
- Replaces the summary with “View package metadata, versions, or file owner”.
- Leaves command behavior and detailed help unchanged.
| File | Description |
|---|---|
src/apm_cli/commands/view.py |
Shortens the Click short_help text to prevent wrapping in root help. |
Review effort: Balanced
apm-spec-waiver: help-text-only change, no spec surface Co-authored-by: Copilot App <[email protected]>
APM Review Panel:
|
| Persona | B | R | N | Takeaway |
|---|---|---|---|---|
| DevX UX Expert | 0 | 0 | 0 | short_help fits 80 cols, wording is a reasonable compression, tests enforce the constraint, CHANGELOG present -- clean fix |
| Test Coverage Expert | 0 | 0 | 0 | Existing test_root_help_command_summaries_are_not_truncated is the regression trap for this fix; no coverage gap. |
B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.
Recommendation
Zero findings from both panelists, full test validation (16/16 pass), lint mirror clean, Copilot reviewer recommended approval with zero threads. This is a scoped string fix that unblocks every open PR. No reason to delay.
Full per-persona findings
DevX UX Expert
No findings.
Test Coverage Expert
No findings.
This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.
Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.
Bring the branch up to date with main (includes the microsoft#3651 CI fix) so CI runs against the current base. Co-authored-by: Gerald Spencer Then Perez <[email protected]> Co-authored-by: Copilot App <[email protected]>
Picks up the view short_help hotfix (#3651) so the root-help check is green at this head. apm-spec-waiver: CODEX_HOME user-root resolution for the Codex harness target; no OpenAPM manifest, lockfile or resolver semantics change Co-authored-by: xubenqiang <[email protected]> Co-authored-by: Copilot App <[email protected]>
Pick up the main hotfix for the root-help truncation failure; clean merge, no lockfile or autopilot package changes. Co-authored-by: sergio-sisternes-epam <[email protected]> Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Description
Problem:
main(b73386f) is red since #3608 x #3643. #3608 gaveapm viewthe short_help "View package metadata, list remote versions, or trace a file's owner", which wraps inapm --helpat 80 columns; #3643 addedtest_root_help_command_summaries_are_not_truncated, which rejects wrapped summaries. CI evidence: run 43283144006 (Build & Test Shard 2).Fix: shorten the
apm viewshort_help to "View package metadata, versions, or file owner" (fits the Commands column). No docs or apm-guide text quotes the old summary. CHANGELOG Fixed line added.Issue and approved scope
Issue: Refs #3608, Refs #3643 (no issue: main-red hotfix)
Human scope-approval comment: coordinator EXPEDITE for a main-red fix (Wave 2, 0.36.0 push); help-text-only change.
Does this PR complete the issue, or what remains? Restores green main; nothing remains.
Type of change
Testing
Validation:
pytest tests/unit/test_cli_consistency.py::test_root_help_command_summaries_are_not_truncated -p no:xdist-> 1 failed (reproduced).pytest tests/unit/test_cli_consistency.py -p no:xdist-> 16 passed.Spec conformance (OpenAPM v0.1)
CONFORMANCE.{md,json}regenerated