Skip to content

Consolidate standalone inventory entry point tests - #12

Merged
CompleteDotTech merged 1 commit into
mainfrom
codex/consolidate-standalone-inventory-tests
Dec 3, 2026
Merged

CompleteDotTech merged 1 commit into
mainfrom
codex/consolidate-standalone-inventory-tests

Conversation

@CompleteDotTech

Copy link
Copy Markdown
Contributor

Summary

  • Remove the repeated copied-script subprocess from the output-protection case and keep input alias and no-clobber coverage.
  • Keep the copied and symlinked launch in the provenance suite. One invocation supplies both supported input kinds and verifies the image package, SBOM artifact, and executed source identity.

Verification

  • Skipping image processing when an SBOM is also supplied passes all previous tests and fails the retained standalone check.
  • The exact head passed all 34 tests, CLI help and the source checksum on Python 3.10.22 and 3.12.16.
  • The canonical fixture and all three consumer export receipts preserved executable, artifact and emitted-byte identity on both runtimes.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No actionable issues were found in the reviewed changes to test_provenance.py and test_inventory.py.

No open issues 🎉

What changed in this PR

Consolidates standalone inventory entry-point tests in the provenance suite while preserving output-protection coverage.

Changes:

  • Exercises archive and SBOM inputs together through copied and symlinked scripts, checking image components, SBOM digest, and executable identity.
  • Removes the separate copied-script invocation from the output-protection test.
File Description
test_provenance.py Adds mixed-input fixtures and assertions to standalone launch coverage.
test_inventory.py Removes the repeated subprocess check and unused imports; retains alias and no-clobber checks.

Review effort: Balanced

@CompleteDotTech
CompleteDotTech merged commit e5c2bc7 into main Dec 3, 2026
13 checks passed
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