Skip to content

test: the #2084 headers test compares paths with forward slashes (fixes the Windows suite on main) - #2092

Open
waleedkadous wants to merge 1 commit into
mainfrom
fix/windows-2084-headers-test-path
Open

waleedkadous wants to merge 1 commit into
mainfrom
fix/windows-2084-headers-test-path

Conversation

@waleedkadous

Copy link
Copy Markdown
Contributor

Problem

The on-demand Windows suites failed on main at 8105c3acb (run): 1 test file failed, 537 passed. The failure is bugfix-2084-workspace-file-headers.test.ts › "calls getMimeTypeForFile nowhere but inside workspaceFileHeaders": expected [ 'agent-farm\servers\tower-utils.ts' ] to deeply equal [ 'agent-farm/servers/tower-utils.ts' ].

Root cause

The test, added by PR #2086, compares path.relative(...) with a forward-slash literal. On Windows path.relative returns backslashes. The product code is right; only the test's comparison is platform-bound. PR #2086 did not run the Windows workflow.

Fix

Normalise the relative path to forward slashes before comparing. One line, test only.

Testing

  • The PR's ordinary checks run the test on Linux and macOS.
  • Windows suites dispatched on this branch; the run is linked in a comment below.

@waleedkadous waleedkadous added the area/tower Area: Tower server / agent farm CLI label Dec 5, 2026
@waleedkadous

Copy link
Copy Markdown
Contributor Author

Windows suites on this branch: https://github.com/cluesmith/codev/actions/runs/47466253884

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

Labels

area/tower Area: Tower server / agent farm CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant