Skip to content

test(sourcewalk): cover Windows resolved roots - #673

Merged
runkids merged 1 commit into
runkids:mainfrom
star-nebula:runkids/sourcewalk-windows
Oct 30, 2026
Merged

runkids merged 1 commit into
runkids:mainfrom
star-nebula:runkids/sourcewalk-windows

Conversation

@star-nebula

Copy link
Copy Markdown
Contributor

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only - see CONTRIBUTING.md)

Linked Issue

Refs #344

Summary

  • Canonicalize sourcewalk test roots before relativizing callback paths.
  • Strengthen the symlink-root regression to assert the full resolved callback path set.
  • Restore internal/sourcewalk to the windows-test allow-list.

Root Cause

Walk intentionally reports paths under the resolved source root. Windows temporary paths can use a different spelling from the path returned by filepath.EvalSymlinks, so tests that called filepath.Rel with the raw t.TempDir() spelling produced .. chains.

The follow tests had the same latent assumption, so they now use the same canonicalization helper.

Validation

  • make check passed against the latest upstream/main using Go 1.26.10.
  • Reproduced the three original Windows failures with an aliased temp root before the fix.
  • Verified internal/sourcewalk and the Windows allow-list package set locally on Windows.
  • go test -run '^$' ./... confirms all Windows test packages compile.

Scope

Test canonicalization and CI coverage only. No production behavior changes. This PR references #344 because broader Windows package coverage is still tracked there.

Windows temporary paths can use a spelling that differs from the path returned by filepath.EvalSymlinks. Canonicalize test roots before relativizing callback paths and restore internal/sourcewalk to the windows-test allow-list.
@star-nebula

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-30T12:26:52.907576Z
We couldn’t complete this review. Comment @codex review to try again.
3751526 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 3751526aa9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@runkids
runkids marked this pull request as ready for review October 30, 2026 12:25
@runkids
runkids merged commit 86f89bf into runkids:main Oct 30, 2026
8 checks passed
@runkids

runkids commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Thanks! Merged.

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