Repository navigation
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
Open
test: the #2084 headers test compares paths with forward slashes (fixes the Windows suite on main)#2092waleedkadous wants to merge 1 commit into
waleedkadous wants to merge 1 commit into
Conversation
…the headers test passes on Windows
Contributor
Author
|
Windows suites on this branch: https://github.com/cluesmith/codev/actions/runs/47466253884 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The on-demand Windows suites failed on
mainat8105c3acb(run): 1 test file failed, 537 passed. The failure isbugfix-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 Windowspath.relativereturns 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