Repository navigation
test: verify installed archive imports and hostile refusals - #102
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe packaged app now supports an archive-proof argument. The proof checks archive import, library state after duplicate, cancellation, and rejected imports, and project persistence after reopening. Fixture-based and installed-app tests verify the results. The change also updates sidecar failure diagnostics. ChangesArchive proof journey
Sidecar failure diagnostics
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant PackagedApp as Packaged app
participant Proof as runPackagedArchiveProof
participant Import as Archive import
participant Library as Project library
PackagedApp->>Proof: Run archive proof with user-data directory
Proof->>Import: Import prepared archive
Import->>Library: Add imported project
Proof->>Library: Check duplicate and cancellation state
Proof->>Import: Submit configured rejection cases
Import->>Library: Preserve state for rejected cases
Proof->>Library: Reopen and verify project
Merge Risk: ⚪ Minimal · up to The sidecar probe reports child exit details on the applicable failure path. No merge-blocking behavior regression is established in the reviewed changes. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Installed archive coverage previously generated an archive and reopened its Receipt, without importing it through the bundled quarantine/import service. The new explicit proof generates that archive in the ZIP executable, imports it into a fresh Library, compares retained envelope/records, and reopens the durable result.
Duplicate import, picker cancellation and eight hostile archive categories must leave hashes of every Library file unchanged. The corpus covers traversal, symlinks, name collisions, executable content, hash mismatch, unsupported versions, oversized entries and encryption. Native host assertions also preserve an external file marker and reject traversal output. Application execution uses an OS-only environment; diagnostics contain fixed stages and summary counts. Fixed archive selection exercises the module interface and does not establish native Open/Save dialog acceptance.
Validation: 79 targeted archive/service tests passed; types, lint, format, contract schemas, main build and discovery of all 24 packaged tests passed. Native execution is GitHub CI only and remains pending.
Refs #40, #61.
Summary by CodeRabbit