Skip to content

[0.38] test(lifecycle): re-anchor generator rule citations that moved on main (main red) - #4590

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-fix-generator-rule-anchors
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-fix-generator-rule-anchors

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

Main-red hotfix, offered for Release & Ops to take or close. There is no scope record; it was opened as a draft because the coordination channel is down.

tests/lifecycle/generator/test_generator_rules.py::test_every_rule_cites_code_that_still_says_it fails on main e74759bc, so Lifecycle Smoke is red on every open PR (for example #4017, #4577 and #4585). Merged changes moved the cited lines:

Anchor Was Now
commands/update.py argument("packages" 644 652
commands/update.py "--dry-run" 654 662
commands/update.py "--global" 667 675
commands/update.py "--force" 675 683
commands/update.py "--target" 702 710
commands/update.py No APM dependencies to update 559 560
marketplace/registration.py No marketplace.json found 45 50

tests/quality/lifecycle_obligations.json is regenerated with tests.lifecycle.generator.emit.write(): two anchors and its sha256 change. No rule, obligation or behavior changes.

Issue and approved scope

Issue: none. This is a main-red hotfix; Release & Ops decides.

Type of change

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

Testing

  • Tested locally: pytest tests/lifecycle/generator tests/quality/test_gate_cell_obligations.py tests/quality/test_promise_obligations.py gives 61 passed. On main the citation test fails at update.py:644.
  • All existing tests pass: CI pending.

Changelog

  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

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

test_every_rule_cites_code_that_still_says_it fails on main e74759b:
merged changes moved the cited lines in commands/update.py (8 lines down)
and marketplace/registration.py, so every PR's Lifecycle Smoke is red.
The seven stale Ev anchors now cite the current lines, and the checked-in
tests/quality/lifecycle_obligations.json is regenerated with
tests.lifecycle.generator.emit.write(). No rule or behavior changes.

Co-authored-by: copilot-swe-agent[bot] <[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 citation-anchor and generated evidence updates.

No open issues 🎉

What changed in this PR

Repairs stale source citations in the lifecycle test generator after code moved on main, addressing the citation-check failure affecting required Lifecycle Smoke checks. No CLI behavior, generator rules, or obligations change.

Changes:

  • Re-anchors seven citations for update command options, the no-dependencies message, and marketplace registration.
  • Regenerates the obligation catalog’s two affected evidence references and content hash.
File Description
tests/​quality/​lifecycle_obligations.json Updates generated evidence locations and the SHA-256 hash.
tests/​lifecycle/​generator/​rules.py Adjusts seven source-line anchors to their current locations.

Review effort: Balanced

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