Repository navigation
[0.38] test(lifecycle): re-anchor generator rule citations (main red) - #4591
Closed
Daniel Meppiel (danielmeppiel) wants to merge 1 commit into
Closed
Daniel Meppiel (danielmeppiel) wants to merge 1 commit into
Daniel Meppiel (danielmeppiel) wants to merge 1 commit into
Conversation
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 21, 2026 10:35
Contributor
There was a problem hiding this comment.
🟢 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
Collaborator
Author
|
superseded by #4590 |
Daniel Meppiel (danielmeppiel)
deleted the
fix/main-red-generator-citations
branch
November 21, 2026 10:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 intosrc/apm_cli/commands/update.pymoved +8 lines when #4006/#4035 landed. This re-anchors the five stale line numbers intests/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
Testing
Validation evidence:
pytest tests/lifecycle/generator/ -q -p no:xdist-> 28 passedpython -m tests.lifecycle.generator --check-> generated lifecycle obligations are up to dateuvx ruff@0.15.12 check/format --check tests/lifecycle/generator/rules.py-> passedChangelog
## [Unreleased]inCHANGELOG.md.Spec conformance (OpenAPM v0.1)