Skip to content

test(taxonomy): classify the lifecycle-lock guard and prune stale taxonomy entries (#4552 item 4) - #4618

Merged
Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
danielmeppiel-4552-taxonomy-item4
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
danielmeppiel-4552-taxonomy-item4

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Description

#4552 item 4, as the PM ruled: land the one unit-marked module under tests/integration and prune stale taxonomy baseline entries. The 38 process-spawning tests/unit modules move to #4608, because moving them to tests/integration would take them out of required PR-time checks.

  • tests/integration/test_architecture_lifecycle_lock.py was the only unit-marked module under tests/integration. It is a static, in-process architecture-rule check, so it keeps unit and moves to tests/unit/scripts/test_architecture_lifecycle_lock.py, next to the other architecture-rule contracts. (Re-marking it component would make AQ003 apply; its component siblings pass AQ003 only as grandfathered baseline debt.) The promise_exempt_modules entry, exact_test_duplicates.json key, .github/ci-durations/linux-x86_64.json node ids and the replay disposition row follow the new path, as the taxonomy and duplicate ratchets require for a moved module.
  • tests/quality/test_taxonomy_baseline.json drops every entry whose module is gone or already compliant: misplaced_modules 65 -> 38 (26 stale, plus the module above), unclassified_modules 1304 -> 558. Entries are only removed; nothing is added.

Issue and approved scope

Issue: Refs #4552 (item 4)

Human scope-approval comment: #4552 (comment) (item 4, "move the 15 misplaced modules by behaviour"; the live count was 39, and the PM ruled the split on 2026-11-21, see #4552 (comment))

Does this PR complete the issue, or what remains? It completes item 4 for 0.38. The 38 process-spawning modules are tracked in #4608. Items 1, 2, 3, 5, 6 and 7 remain on #4552.

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 -p no:randomly -p no:xdist tests/unit/scripts/test_architecture_lifecycle_lock.py tests/quality/test_test_taxonomy.py tests/quality/test_quality_baselines.py: 50 passed.
  • python scripts/check_exact_test_duplicates.py: clean.
  • python -m tests.quality.taxonomy --changed: tm006 clean.
  • uvx [email protected] check and format --check on tests/: passed.
  • A stale-entry recount after rebasing onto main 7fb04a1 finds 0 stale entries.

Changelog

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

Spec conformance (OpenAPM v0.1)

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

…une stale entries (#4552)

test_architecture_lifecycle_lock.py was the only unit-marked module under
tests/integration. Its 47 sibling test_architecture_* guards run the same
in-process linter check and are marked component, so it now is too, and
it leaves misplaced_modules. The taxonomy baseline also drops entries
whose module is gone or already compliant: 26 misplaced and 744
unclassified. No new allowance is added.

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 remain for the test-classification correction and taxonomy exception cleanup.

No open issues 🎉

What changed in this PR

This PR addresses the bounded portion of #4552 item 4 by correcting a test classification and pruning stale taxonomy exceptions, without changing test bodies or CI scheduling. The 38 process-spawning modules remain deferred to #4608.

Changes:

  • Reclassifies the lifecycle-lock architecture guard from unit to component.
  • Reduces misplaced-module exceptions from 65 to 38 and unclassified-module exceptions from 1,304 to 558.
File Description
tests/​quality/​test_taxonomy_baseline.json Removes stale classification and placement exceptions.
tests/​integration/​test_architecture_lifecycle_lock.py Marks the in-process architecture guard as component.

Review effort: Balanced

…f re-marking it (#4552)

Re-marking it component made AQ003 apply: a component test must assert a
user-visible outcome, and its sibling architecture guards only pass that
rule as grandfathered baseline debt. The guard is a static, in-process
check, so it keeps its unit marker and moves to tests/unit/scripts next to
the other architecture-rule contracts. The promise exemption, duplicate
baseline, CI durations and replay disposition follow the new path.

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit dd88a7f into main Nov 21, 2026
40 of 43 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-4552-taxonomy-item4 branch November 21, 2026 15:23
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