Skip to content

test: bind extraction close fixtures to their ZIP digest - #7335

Closed
Plastic-time wants to merge 1 commit into
morluto:mainfrom
Plastic-time:codex/fix-extraction-close-fixture-20261026
Closed

Plastic-time wants to merge 1 commit into
morluto:mainfrom
Plastic-time:codex/fix-extraction-close-fixture-20261026

Conversation

@Plastic-time

@Plastic-time Plastic-time commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The two safeOutputTreeCloseFailures extraction cases pass an all-zero target digest for a real ZIP. Admitted-source validation rejects the fixture before either injected commit-close failure is reached.

Hash the same ZIP bytes written to disk when constructing the test client. Preserve the assertions for:

  • A transient close failure: cleanup retries succeed and committed output survives.
  • A persistent close failure: incomplete cleanup and the partial extraction are retained; a later client close succeeds and output survives.

Scope

One test file changes. The fixture owns the correction; production digest validation, extraction, cleanup ownership, evidence, CLI/MCP contracts, and package metadata are unchanged. Tests use a generated ZIP and temporary output. This is an ordinary test repair within existing scope; a separate maintainer scope decision is not applicable.

Validation

Same-runner Linux baseline, independent fixes, and combined verification: Ubuntu 24.04, Node 24.22.1, unchanged baseline 046c4ce3, this candidate 626d0250.

  • npm run test:focused -- tests/composition/analysis-sessions/providerBinding.test.ts src/artifacts/apple/AppleAssetCatalogAnalysis.test.ts tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts: baseline 48 passed / 3 failed; this fix alone 50 passed / 1 failed. All 6 close-failure tests pass.
  • The remaining failure is the independently reproduced provider-routing fixture addressed by test: exercise admitted bundle identity in provider routing #7336. Applying both independent fixes gives 51 passed.
  • npm run check:fast, repository oxfmt --check, and git diff --check: passed.

Windows/macOS and real external providers were not run. Full upstream CI is separate from this focused comparison.

Author readiness

Human owner: @Plastic-time

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@Plastic-time
Plastic-time marked this pull request as ready for review October 26, 2026 23:59
@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The change appears safe to merge.

Summary

Repairs both extraction close-failure cases by hashing the generated ZIP bytes instead of supplying an all-zero digest.

  • The extraction close-failure cases use the digest of their generated ZIP.

Reviews (1) · Last reviewed commit: "test: bind extraction close fixtures to ..." · Reviewed by Greptile

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-26T23:59:06.665209Z
We couldn’t complete this review. Comment @codex review to try again.
626d025 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

Copy link
Copy Markdown
Contributor Author

Closing as already integrated via #7349 (1201c25). That PR cherry-picked 626d025 with attribution, and this PR's only changed file now matches main exactly. No separate merge is needed.

@morluto morluto added the area: tests Test suite and verification label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants