Skip to content

[0.38] test(arch): read-only lockfile owner has two selectors after #4067 (main red) - #4606

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-p1-mainred-lockfile-owner
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-p1-mainred-lockfile-owner

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

MAIN-RED FIX. The dispatch-only integration suite fails on main 5337f2f: tests/integration/test_architecture_pack_lockfile_read.py::test_bundle_lockfile_reads_have_one_registered_owner asserts owner.selectors == ("src/apm_cli/deps/lockfile.py",), but #4067 (8cdd917) registered src/apm_cli/deps/lockfile_lookup.py as a second selector of the read-only-lockfile-path owner in .apm/architecture/owners/contracts-tooling.json:180. Test-only fix-forward: the test now asserts both selectors. Everything else in the test is unchanged.

Issue and approved scope

Issue: Refs #4067

Human scope-approval comment: main-red fix-forward ordered by the 0.38 program (Regent standing rule for trunk-red test-only fixes); the scope is the one assertion that #4067 made stale.

Does this PR complete the issue, or what remains? Restores the integration suite on main; nothing remains.

Dependency order: none. Land first.

Type of change

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

Testing

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

pytest -q -p no:xdist tests/integration/test_architecture_pack_lockfile_read.py (host guard) -> 13 passed. uvx [email protected] check / format --check on the file -> clean.

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.

#4067 registered src/apm_cli/deps/lockfile_lookup.py beside
src/apm_cli/deps/lockfile.py in the read-only-lockfile-path owner
(.apm/architecture/owners/contracts-tooling.json); the integration test
still asserted a single selector, so the dispatch-only integration suite
failed on main 5337f2f.

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 reported for the test-only update aligning the lockfile owner selector assertion with the registered modules.

No open issues 🎉

What changed in this PR

This test-only fix updates the architecture assertion to match the two selectors registered for the read-only lockfile owner after #4067, addressing the reported integration failure without changing runtime behavior.

Changes:

  • Adds a constant for deps/lockfile_lookup.py with an explanatory comment.
  • Updates the selector assertion to expect both lockfile modules; all other checks remain unchanged.
File Description
tests/​integration/​test_architecture_pack_lockfile_read.py Aligns the expected owner selectors with the registration introduced in #4067.

Review effort: Balanced

@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

Closing as a duplicate of #4607 (the program reassigned the main-red lockfile-owner fix to its engineer). Same one-assertion change.

@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-p1-mainred-lockfile-owner branch November 21, 2026 11:58
@danielmeppiel
Daniel Meppiel (danielmeppiel) restored the danielmeppiel-p1-mainred-lockfile-owner branch November 21, 2026 11:58
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit dbf6ef4 into main Nov 21, 2026
77 of 99 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-p1-mainred-lockfile-owner branch November 21, 2026 12:18
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