Skip to content

Always use case-insensitive fs operartions for RWC#18046

Merged
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:rwc-always-case-insensitive
Aug 28, 2017
Merged

Always use case-insensitive fs operartions for RWC#18046
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:rwc-always-case-insensitive

Conversation

@weswigham
Copy link
Copy Markdown
Member

@sandersn Noted that on linux many RWC tests fail due to using the system case-sensitivity, rather than the sensitivity used when capturing the test. For now, we just assume all tests were captured on a case-insensitive file system, which should allow our linux developers to run the tests without spurious failures.

Comment thread src/harness/rwcRunner.ts
tsconfigFiles.push({ unitName: tsconfigFile.path, content: tsconfigFileContents.content });
const parsedTsconfigFileContents = ts.parseJsonText(tsconfigFile.path, tsconfigFileContents.content);
const configParseHost: ts.ParseConfigHost = {
useCaseSensitiveFileNames: Harness.IO.useCaseSensitiveFileNames(),
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.

It seems like this is something we need to capture and read from the rwc capture file.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

And now it does. No captures should need to be updated, since undefined is coercible to false, and they all execute correctly under case insensitivity as it currently stands.

Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

This does assume that we never ingest a RWC project from Linux that foolishly ignores the two-files-same-case warning and relies on File1.ts to be different from file1.ts.

Which is a good assumption.

@weswigham weswigham merged commit 117ef21 into microsoft:master Aug 28, 2017
@weswigham weswigham deleted the rwc-always-case-insensitive branch October 12, 2017 08:08
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants