Skip to content

test(support): the bundle cache is keyed by pid, so workers and docker runs reuse a stale bundle #8

Closed

Description

@LESdylan

tests/support/loadMarkengine.cjs:34 names the esbuild bundle cache file <entry>.<process.pid>.cjs and reuses it whenever it exists.

Why it is wrong

  • The bench's deadline worker and the main thread share one pid, so they share one bundle path.
  • Docker restarts number processes from 1, so the same pid repeats across runs. Every mutant run of the ADR 0068 R5 study loaded index_ts.14.cjs.
  • A cache dir that survives a source edit can therefore serve a stale bundle, which is how a mutant proof can pass without testing the mutant. R3 currently works around this by deleting the cache before each run.

Fix

Key the file by a hash of the bundled sources (or the entry's source tree), not the pid.

Source

ADR 0068 R5 ruling (devil, 2026-11-20), separate finding F1. It is not a condition of the step-counter path D.

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