Skip to content

fix: mkdir -p output dir + stub flaky execSync tests#26

Merged
mark-dingwall merged 2 commits into
mainfrom
fix/mkdir-and-flaky-test
Apr 9, 2026
Merged

fix: mkdir -p output dir + stub flaky execSync tests#26
mark-dingwall merged 2 commits into
mainfrom
fix/mkdir-and-flaky-test

Conversation

@mark-dingwall

Copy link
Copy Markdown
Owner

Summary

  • mkdir -p the output directory before writeFileSync in both write-review-report.js and assemble-doc.js — fixes ENOENT when --output points to a non-existent directory
  • Stub safeExec.execSync in the two execute_system_command tests that were calling real shell commands (cat, echo), causing intermittent EPIPE failures in CI

Test plan

  • All 1566 tests pass locally
  • Lint passes (0 errors)
  • The previously-flaky test now stubs execSync and asserts on args/env instead of real shell output

🤖 Generated with Claude Code

mark-dingwall and others added 2 commits April 9, 2026 12:44
When --output points to a path whose parent directory doesn't exist,
the cluster fails at completion. Create the directory tree first.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…E flake

The two tests calling real shell commands (cat, echo) intermittently
fail with spawnSync EPIPE in CI. Stub safeExec.execSync and assert
on the args/env passed instead — matches the pattern used by the
other tests in the same file.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mark-dingwall mark-dingwall merged commit ff661d9 into main Apr 9, 2026
5 checks passed
@mark-dingwall mark-dingwall deleted the fix/mkdir-and-flaky-test branch April 9, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant