Skip to content

module-images: test-health batch e3855-module-images-01 #3931

Closed

Description

@schlessera

Context

This is one shard of the test-health push in #3855. Shard e3855-module-images-01 covers packages/module-images/tests/module.test.ts and packages/module-images/tests/scratch.test.ts. Both files were audited through all eight lenses in one cluster, in run th-20261110211723-678f3c.

Fixed findings:

  • scratch.test.ts, "a nested directory swapped for a symlink while the request is out is refused, and nothing lands outside", earlier-layer-answers. Exit 1 and an empty outside directory also held when a pre-flight refused before the provider was called. A mutant that refuses --out into scratch before the request survived. The test now asserts that the provider was called once, and the same mutant is killed.
  • scratch.test.ts, "the ignore rule is checked again after the provider call, so a rule lost in flight refuses the write", earlier-layer-answers. A pre-flight refusal with the same brain doctor --fix message satisfied every assertion without reaching the post-call re-check, and that mutant survived. The test now asserts that the provider was called once, and the mutant is killed.
  • scratch.test.ts, "a derived -2 name ...", unrestored-global. OPENAI_API_KEY was deleted after the test instead of being restored, so a value set by the environment was lost. It is now saved and restored in afterEach.
  • scratch.test.ts, leaked-resource. Five tests removed their outside temp directory only when they passed. Those directories are now removed in afterEach.
  • module.test.ts, leaked-resource. Each skills() call left a temp brain root behind. The roots are now removed in afterEach.

Acceptance criteria

  • The batch pull request lands into epic/3855-test-health with the gate ok, and no test is lost (21 before, 21 after).

Activity

  1. added this to the 0.45.0 milestone on Nov 10, 2026
  2. added
    type: test
    area: modules
    priority: p1
    on Nov 10, 2026
  3. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Delivered by #3932, which merged into epic/3855-test-health as 4ddff0ec5 (the push in #3855). It landed in the combined merge without proof of its own; the gate, typecheck and check:pr passed on the combined branch. The epic's two exhaustive runs on dc2439551, 42996974186 and 42997012467, then passed. GitHub does not apply Closes for a pull request into a non-default branch, so I'm closing this by hand. The change reaches main with the epic's single landing pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: modulespriority: p1type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions