Repository navigation
test: local-bundle cleanup oracle supplies deployment evidence (#3701) - #4222
Closed
Daniel Meppiel (danielmeppiel) wants to merge 3 commits into
Closed
Daniel Meppiel (danielmeppiel) wants to merge 3 commits into
Daniel Meppiel (danielmeppiel) wants to merge 3 commits into
Conversation
remove_stale_deployed_files requires evidence since #4049 (req-lk-024). The hash-format oracle now models the deploying machine's receipts with the digests the bundle install recorded, and asserts that a lockfile hash alone keeps every file. Part of #3701 Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 09:54
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for this test-only update to local-bundle cleanup regression coverage.
No open issues 🎉
What changed in this PR
Updates the local-bundle cleanup regression test to supply the deployment evidence required by #4049, while preserving its hash-format check. This is a test-only fix; production behavior is unchanged.
Changes:
- Asserts that cleanup preserves bundle files when no deployment evidence is supplied.
- Supplies simulated receipts using bundle-recorded digests to verify that cleanup deletes unchanged files.
| File | Description |
|---|---|
tests/integration/test_install_local_bundle_e2e.py |
Adds the no-evidence preservation check and receipt-backed cleanup verification. |
Review effort: Balanced
…cleanup-evidence-test
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
… cowork oracles More test doubles for the deletion-evidence API (req-lk-024): - seed_receipts() records the receipt the installing machine holds, for fixtures that forge a lockfile and its deployed files (uninstall of agent-skills and grok-bot, the uninstall hook fixture); - Gemini command and skill syncs supply receipts; skill claims list their members as real installs record them; - the cross-package collision ctx gains apm_dir; - the local-bundle cleanup oracle supplies evidence (same change as #4222); - the cowork lifecycle case declares its dependency instead of a positional github.com package, which validation probes via REST. Part of #3701 Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Collaborator
Author
|
Superseded by #4250, which carries the same test update. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
tests/integration/test_install_local_bundle_e2e.py::TestLocalBundleHashFormatCrossFlow::test_recorded_hash_compares_equal_in_cleanup_provenance_checkfails onmain. Since #4049,remove_stale_deployed_filesrequires a keyword-onlyevidenceargument, and this test calls the owner directly without one.What failed: a stale test caller, not production code. The production local-bundle path (
install/local_bundle_handler.py) already passesDeploymentEvidence.collect(...). I scanned every test for calls to owners whoseevidenceargument has no default (remove_stale_deployed_files,remove_synced_files,sync_remove_files), and this is the only caller missing it.Fix (test oracle only):
DeploymentEvidence.none(project)and asserts every bundle file is kept. A lockfile hash alone never deletes (req-lk-024).compute_file_hashand deletes every unchanged file. This keeps the hash-format contract the test was written to pin (bare hex vssha256:<hex>, 0.12.0).Issue and approved scope
Issue: Refs #3701 (Part of #3701)
Human scope-approval comment: #3701 (comment). The 0.37 Stream H lead requested this fix (gate 6, RC validation).
Does this PR complete the issue, or what remains? #4049 already completed the issue. This PR fixes one test oracle.
Type of change
Testing
ci-integrationworkflow, which cannot be dispatched on a branch.Changelog
Spec conformance (OpenAPM v0.1)