Skip to content

fix: macOS test failures from /var symlink canonicalization (#16)#17

Merged
vyadh merged 1 commit into
mainfrom
fix/mac-tests
Jan 20, 2026
Merged

fix: macOS test failures from /var symlink canonicalization (#16)#17
vyadh merged 1 commit into
mainfrom
fix/mac-tests

Conversation

@vyadh

@vyadh vyadh commented Jan 20, 2026

Copy link
Copy Markdown
Owner
  • Initial plan

  • Fix macOS path canonicalization in discover.nu

Apply path expand to glob results to ensure consistent path resolution. On macOS, /var is a symlink to /private/var, and this ensures both discover suite-files and test assertions return the same canonical paths.

  • fix: add reasons normalize paths on macOS by expanding symlinks in discover

* Initial plan

* Fix macOS path canonicalization in discover.nu

Apply path expand to glob results to ensure consistent path resolution.
On macOS, /var is a symlink to /private/var, and this ensures both
discover suite-files and test assertions return the same canonical paths.

Co-authored-by: vyadh <3620650+vyadh@users.noreply.github.com>

* fix: add reasons normalize paths on macOS by expanding symlinks in discover

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: vyadh <3620650+vyadh@users.noreply.github.com>
Co-authored-by: Kieron Wilkinson <kieron.wilkinson@gmail.com>
Copilot AI review requested due to automatic review settings January 20, 2026 20:05
@github-actions

Copy link
Copy Markdown

Test Results

  1 files  ±0   16 suites  ±0   0s ⏱️ ±0s
122 tests ±0  118 ✅ +3  4 💤 ±0  0 ❌  - 3 
122 runs  ±0  114 ✅ +3  8 💤 ±0  0 ❌  - 3 

Results for commit f7041d5. ± Comparison against base commit 287e74a.

1 similar comment
@github-actions

Copy link
Copy Markdown

Test Results

  1 files  ±0   16 suites  ±0   0s ⏱️ ±0s
122 tests ±0  118 ✅ +3  4 💤 ±0  0 ❌  - 3 
122 runs  ±0  114 ✅ +3  8 💤 ±0  0 ❌  - 3 

Results for commit f7041d5. ± Comparison against base commit 287e74a.

@github-actions

github-actions Bot commented Jan 20, 2026

Copy link
Copy Markdown

Test Results

  1 files  ±0   16 suites  ±0   0s ⏱️ ±0s
122 tests ±0  118 ✅ +3  4 💤 ±0  0 ❌  - 3 
122 runs  ±0  114 ✅ +3  8 💤 ±0  0 ❌  - 3 

Results for commit f7041d5. ± Comparison against base commit 287e74a.

♻️ This comment has been updated with latest results.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes macOS test failures caused by path canonicalization issues where /var is a symlink to /private/var. The fix ensures that file discovery returns consistent canonical paths that match test assertions.

Changes:

  • Added path expand to glob results in the list-files function to normalize paths and expand symlinks on macOS

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread nutest/discover.nu
Comment thread nutest/discover.nu
@vyadh vyadh merged commit f05bf36 into main Jan 20, 2026
21 checks passed
@vyadh vyadh deleted the fix/mac-tests branch January 20, 2026 20: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.

3 participants