Skip to content

Always use case-insensitive fs operartions for RWC #18046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 28, 2017

Conversation

weswigham
Copy link
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.

@@ -79,7 +79,7 @@ namespace RWC {
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
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
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
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