Skip to content

test: assert every git lock entry kind, commit pin and content hash - #4310

Merged
Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-hd-content-hash-promise
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-hd-content-hash-promise

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Description

Folds the two review threads from #4274 in tests/integration/test_git_lock_content_hash_lifecycle.py: the test asserts the exact direct, transitive, marketplace (discovered_via) and user-scope entries, and requires a commit pin and a content hash on every git-sourced entry instead of skipping unpinned rows. The promise marker and its pyproject.toml registration are already on main (#4142), so this PR no longer carries them. Test-only.

Issue and approved scope

Issue: Refs #4092

Human scope-approval comment: #4092 (comment)

This is a follow-up to #4274. It does not complete #4092.

Type of change

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

Testing

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

APM_E2E_TESTS=1 uv run --extra dev pytest tests/integration/test_git_lock_content_hash_lifecycle.py tests/quality -n 2: 290 passed, 1 skipped; after the thread fixes, pytest tests/integration/test_git_lock_content_hash_lifecycle.py -n 0: 1 passed.

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md:
    user-visible effect first, 25 words or fewer, ending with (#PR);
    breaking changes only under upgrade notes; no Highlights; see
    .github/instructions/changelog.instructions.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

No behavior change.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

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

There are no active review issues for this metadata-only update linking the content-hash lifecycle test to its promise identifier.

No open issues 🎉

What changed in this PR

This metadata-only follow-up to #4274 links the existing content-hash lifecycle test to its promise identifier. It supports the test-classification work tracked in #4092 without changing test behavior or completing that issue.

Changes:

  • Adds P-OWN-package-content-hash to the lifecycle module’s markers.
  • Registers the promise marker in pytest configuration.
File Description
tests/​integration/​test_git_lock_content_hash_lifecycle.py Links the lifecycle module to its content-hash promise.
pyproject.toml Registers and describes the promise marker.

Review effort: Balanced

The test checks the exact direct, transitive, marketplace (discovered_via)
and user-scope entries, and requires a commit pin and a content hash on
each.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@danielmeppiel Daniel Meppiel (danielmeppiel) changed the title test: link the content-hash lifecycle module to its promise id test: assert every git lock entry kind, commit pin and content hash Nov 20, 2026
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit e93d11c into main Nov 20, 2026
37 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-hd-content-hash-promise branch November 20, 2026 15:46
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