Skip to content

[0.38] test(lifecycle): re-anchor generator rule citations (main red) - #4591

Closed
Daniel Meppiel (danielmeppiel) wants to merge 1 commit into
mainfrom
fix/main-red-generator-citations
Closed

Daniel Meppiel (danielmeppiel) wants to merge 1 commit into
mainfrom
fix/main-red-generator-citations

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

main (e74759b) is red on tests/lifecycle/generator/test_generator_rules.py::test_every_rule_cites_code_that_still_says_it: the generator rule citations into src/apm_cli/commands/update.py moved +8 lines when #4006/#4035 landed. This re-anchors the five stale line numbers in tests/lifecycle/generator/rules.py (packages 644->652, --dry-run 654->662, --force 675->683, --target 702->710, --global 667->675). Test-only, no behavior change. This lands FIRST so other PRs can go green.

Issue and approved scope

Issue: Refs #4006, #4035 (main-red repair of test anchors moved by those PRs; no new scope)

Human scope-approval comment: N/A -- mechanical test-anchor repair restoring green main after already-approved #4006/#4035.

Does this PR complete the issue, or what remains? Completes the main-red repair; 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 evidence:

  • pytest tests/lifecycle/generator/ -q -p no:xdist -> 28 passed
  • python -m tests.lifecycle.generator --check -> generated lifecycle obligations are up to date
  • uvx ruff@0.15.12 check / format --check tests/lifecycle/generator/rules.py -> passed

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

…#4006/#4035

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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 were identified for the lifecycle test generator’s citation-coordinate update.

No open issues 🎉

What changed in this PR

Repairs stale apm update source citations in the lifecycle test generator after #4006 and #4035 shifted the command definitions, addressing the reported main-branch test failure.

Changes:

  • Moves five citations forward eight lines: packages, --dry-run, --force, --target, and --global.
  • Changes only test evidence coordinates; production behavior and generated artifacts remain unchanged.
File Description
tests/​lifecycle/​generator/​rules.py Re-anchors five update-command citations to their current source locations.

Review effort: Balanced

@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

superseded by #4590

@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the fix/main-red-generator-citations branch November 21, 2026 10:44
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