Skip to content

Readonly mount integration compares process-external temp fixtures #2334

Description

@chubes4

Problem

tests/playground-readonly-mounts-integration.test.ts snapshots every wp-codebox-readonly-mounts-* directory in the shared OS temp root and requires exact equality after its recipe run. Concurrent WP Codebox runs can create or dispose their own staging directories between snapshots, producing false failures.

Reproduction

Run npm run test:playground-readonly-mounts-integration while another WP Codebox smoke/runtime test is active. Both observed directions fail:

  • an external fixture appears after the initial snapshot
  • an external fixture present initially is legitimately disposed before the final snapshot

The assertion is at tests/playground-readonly-mounts-integration.test.ts:73.

Expected

Track the staging directory owned by this test/run, or compare only paths attributable to its child process rather than all globally shared prefix matches.

This was reproduced on origin/main-based commit 52cf495f; the assigned temp-retention change did not modify this integration test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions