Skip to content

test(package-shape): smoke-mark plugin subset lifecycle and pin frozen lock bytes - #4462

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-hn-4326-followup
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-hn-4326-followup

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

Follow-up to #4326. This folds its two open review threads on tests/integration/test_package_shape_lifecycle_contract.py:

  • test_plugin_with_root_skills_subset_lifecycle now carries lifecycle_smoke, so the PR-time lifecycle smoke job (lifecycle_smoke and not lifecycle_merge_group) runs both of its manifest cases next to the manifestless control. The module markers are unchanged (tm006: one behavioral marker, e2e, plus promise).
  • The cold install --frozen pass now asserts that apm.lock.yaml is byte-identical to the converged lock, read with read_bytes() before and after. semantic_bytes drops YAML presentation and generation time, so on its own it cannot prove that the lockfile was not rewritten.

Issue and approved scope

Issue: Refs #4326 (follow-up to its review threads; no issue to close)

Human scope-approval comment: the two #4326 review threads, assigned by the 0.37 Stream H lead.

Does this PR complete the issue, or what remains? It completes both #4326 follow-up threads. Nothing remains.

Type of change

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

Testing

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

Local static checks:

  • uv run --extra dev ruff check / ruff format --check on the module: clean.
  • uv run --extra dev python -m tests.quality.taxonomy --changed: [+] tm006: 1 changed test module(s) carry their marker and promise.
  • uv run --extra dev python scripts/check_test_assertions.py: [+] assertion-quality ratchet clean.

The tests themselves run in CI: the lifecycle smoke and integration lanes.

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.

…rozen lock bytes

Follow-up to #4326 review threads: the plugin-with-root-skills subset
test runs in the PR-time lifecycle_smoke lane, and the cold frozen pass
asserts apm.lock.yaml is byte-identical (semantic_bytes drops
presentation and generation time).

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 identified for this test-only update expanding plugin lifecycle coverage.

No open issues 🎉

What changed in this PR

This test-only follow-up to #4326 strengthens coverage for plugin packages with root-level skills and subset selection.

Changes:

  • Adds both plugin-manifest cases to the PR-time lifecycle smoke suite.
  • Verifies that a cold install --frozen preserves the exact lockfile bytes, alongside the existing semantic-state checks.
File Description
tests/​integration/​test_package_shape_lifecycle_contract.py Adds the smoke marker and byte-for-byte frozen lockfile assertion to the plugin subset lifecycle test.

Review effort: Balanced

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 3575c3c into main Nov 21, 2026
30 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-hn-4326-followup branch November 21, 2026 05:24
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