Skip to content

test: fix config writer tests on macOS - #7608

Merged
lpcox merged 1 commit into
mainfrom
fix-failing-tests-20260821
Aug 21, 2026
Merged

test: fix config writer tests on macOS#7608
lpcox merged 1 commit into
mainfrom
fix-failing-tests-20260821

Conversation

@lpcox

@lpcox lpcox commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • compare ownership repair calls against canonical workspace paths
  • make the unwritable-workspace test independent of the host user's UID/GID
  • preserve coverage of native-root ownership repair behavior across macOS and Linux

Testing

  • npm test -- --runInBand (311 suites, 4,921 tests passed)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 21, 2026 17:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates config-writer tests for consistent behavior across macOS and Linux.

Changes:

  • Assert canonical workspace paths in ownership repair calls.
  • Mock root ownership for the unwritable-workspace scenario.
Show a summary per file
File Description
src/config-writer.test.ts Makes workspace ownership tests platform-independent.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 93.67% 93.69% 📈 +0.02%
Statements 92.53% 92.55% 📈 +0.02%
Functions 93.05% 93.05% ➡️ +0.00%
Branches 85.80% 85.82% 📈 +0.02%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/log-directory-setup.ts 96.2% → 100.0% (+3.78%) 96.3% → 100.0% (+3.71%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit 72d8ce6 into main Aug 21, 2026
27 checks passed
@lpcox
lpcox deleted the fix-failing-tests-20260821 branch August 21, 2026 18:10
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.

2 participants