Skip to content

fix(cli): shorten apm view summary so root help is not truncated - #3651

Merged
Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
lanef/hotfix-view-help-truncation
Nov 12, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
lanef/hotfix-view-help-truncation

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

Problem: main (b73386f) is red since #3608 x #3643. #3608 gave apm view the short_help "View package metadata, list remote versions, or trace a file's owner", which wraps in apm --help at 80 columns; #3643 added test_root_help_command_summaries_are_not_truncated, which rejects wrapped summaries. CI evidence: run 43283144006 (Build & Test Shard 2).

Fix: shorten the apm view short_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

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Validation:

  • On pure main: pytest tests/unit/test_cli_consistency.py::test_root_help_command_summaries_are_not_truncated -p no:xdist -> 1 failed (reproduced).
  • With fix: pytest tests/unit/test_cli_consistency.py -p no:xdist -> 16 passed.
  • Lint mirror (ruff check, ruff format --check, pylint R0801, lint-auth-signals) -> clean.

Spec conformance (OpenAPM v0.1)

  • Spec edit
  • Manifest edit
  • Test edit
  • CONFORMANCE.{md,json} regenerated
  • N/A -- this PR does not change OpenAPM-observable behaviour.

#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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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]>
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_now

Clean 1-line hotfix unblocks red main; both panelists agree, no findings. Ship now.

panel-mode=lean; personas=devx-ux-expert,test-coverage-expert,apm-ceo

cc Sergio Sisternes (@sergio-sisternes-epam) -- a fresh advisory pass is ready for your review.

Both specialists returned zero findings. The devx-ux-expert confirmed the new short_help fits the 80-column constraint, wording is a reasonable compression of the original, and CHANGELOG is present. The test-coverage-expert confirmed the existing regression trap test_root_help_command_summaries_are_not_truncated covers this fix with no coverage gap. There is nothing to arbitrate.

Strategically this is the right call: main has been red since the interaction of #3608 and #3643, blocking every open PR. A 1-line string change with full test validation and a clean lint mirror is the lowest-risk path to green. The fix is scoped exactly to the regression surface, with no naming, positioning, or breaking-change implications.

Aligned with: OSS community driven -- main-red blocks all external contributors, so expediting this hotfix is the highest-leverage community action right now. Pragmatic as npm -- minimal diff, no ceremony, fixes exactly what broke.

Panel summary

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.

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit d4aa588 into main Nov 12, 2026
26 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the lanef/hotfix-view-help-truncation branch November 12, 2026 20:17
Daniel Meppiel (danielmeppiel) added a commit to gthen95/apm that referenced this pull request Nov 12, 2026
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]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 12, 2026
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]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 12, 2026
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]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 12, 2026
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