Skip to content

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

Closed
Daniel Meppiel (danielmeppiel) wants to merge 1 commit into
mainfrom
fix/main-red-lockfile-owner-selectors
Closed

Daniel Meppiel (danielmeppiel) wants to merge 1 commit into
mainfrom
fix/main-red-lockfile-owner-selectors

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

Test-only fix for the integration red on main. #4067 added src/apm_cli/deps/lockfile_lookup.py as a second selector on owner read-only-lockfile-path (.apm/architecture/owners/contracts-tooling.json:180), but tests/integration/test_architecture_pack_lockfile_read.py still asserted a single selector. This updates that one assertion. OWNER is unchanged because it is also used to read source text. No behavior change.

Issue and approved scope

Issue: Refs #4067

Human scope-approval comment: main-red repair of a stale test assertion introduced alongside #4067; no product change.

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 (ruff check / ruff format --check on the file: pass)
  • All existing tests pass (desk runs ci-integration on this head)
  • Added tests for new functionality (if applicable)

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.

@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

Superseded by #4606 (same fix, opened first, already queued at the landing desk).

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 test-only update aligning the selector assertion with the expanded owner registration.

No open issues 🎉

What changed in this PR

This test-only repair aligns the architecture integration test with the two selectors registered for read-only-lockfile-path after #4067, addressing the reported stale assertion on main. Production behavior is unchanged.

Changes:

  • Expect both lockfile.py and lockfile_lookup.py in the owner's selectors.
  • Preserve OWNER, which is also used to read source text.
File Description
tests/​integration/​test_architecture_pack_lockfile_read.py Updates the selector assertion to match the expanded owner registration.

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