Skip to content
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

test: fix ts api guardian and public guard tests on windows #30105

Closed

Conversation

@alan-agius4
Copy link
Contributor

alan-agius4 commented Apr 25, 2019

This change addresses several issues with ts-api-guardian and public api guards related tests in Windows

The fixes contain 3 main changes:

  1. In stripExportPattern - replace ^ with ^^^^ in RegExp due to a double escaping requirment under Windows. Note that under Linux this the extra character has no effect because it's still a valid RegExp in Js.
  1. Force *.patch files to always be with a LF line sequence instead of CRLF in windows

  2. When adding JSDoc comments consider the presence of a carriage return in a line new feed

Partially addresses #29785

This change addresses several issues with ts-api-guardian and public api guards related tests in Windows

The fixes contain 3 main changes:
1) In `stripExportPattern` - replace `^` with `^^^^`  in RegExp due to a double escaping requirment under Windows. Note that under Linux this the extra character has no effect because it's still a valid RegExp in Js.

2. Force `*.patch` files to always be with a LF line sequence instead of CRLF in windows

3. When adding JSDoc comments consider the presence of a carriage return in a line new feed

Partially addresses #29785
@alan-agius4 alan-agius4 force-pushed the alan-agius4:windows-fix-tests-guardian branch from e544231 to fde7ec3 Apr 25, 2019
@alan-agius4 alan-agius4 marked this pull request as ready for review Apr 25, 2019
@alan-agius4 alan-agius4 requested a review from angular/fw-dev-infra as a code owner Apr 25, 2019
Copy link
Member

devversion left a comment

👍

@alan-agius4 alan-agius4 force-pushed the alan-agius4:windows-fix-tests-guardian branch from 3c713d5 to c922605 Apr 26, 2019
@alan-agius4 alan-agius4 force-pushed the alan-agius4:windows-fix-tests-guardian branch from c922605 to 2e2586f Apr 26, 2019
…talled

When the workspace node_modules are not installed outside of bazel context the api guardian tests fails because the tree artifacts files are not symlinked in windows.

We need to pass the node module location in the node_path
@alan-agius4 alan-agius4 force-pushed the alan-agius4:windows-fix-tests-guardian branch from 2e2586f to acf9d5e Apr 26, 2019
@alan-agius4 alan-agius4 requested a review from filipesilva Apr 26, 2019
AndrewKushnir added a commit that referenced this pull request Apr 26, 2019
This change addresses several issues with ts-api-guardian and public api guards related tests in Windows

The fixes contain 3 main changes:
1) In `stripExportPattern` - replace `^` with `^^^^`  in RegExp due to a double escaping requirment under Windows. Note that under Linux this the extra character has no effect because it's still a valid RegExp in Js.

2. Force `*.patch` files to always be with a LF line sequence instead of CRLF in windows

3. When adding JSDoc comments consider the presence of a carriage return in a line new feed

Partially addresses #29785

PR Close #30105
AndrewKushnir added a commit that referenced this pull request Apr 26, 2019
AndrewKushnir added a commit that referenced this pull request Apr 26, 2019
…talled (#30105)

When the workspace node_modules are not installed outside of bazel context the api guardian tests fails because the tree artifacts files are not symlinked in windows.

We need to pass the node module location in the node_path

PR Close #30105
AndrewKushnir added a commit that referenced this pull request Apr 26, 2019
…talled (#30105)

When the workspace node_modules are not installed outside of bazel context the api guardian tests fails because the tree artifacts files are not symlinked in windows.

We need to pass the node module location in the node_path

PR Close #30105
@alan-agius4 alan-agius4 deleted the alan-agius4:windows-fix-tests-guardian branch Apr 27, 2019
BioPhoton added a commit to BioPhoton/angular that referenced this pull request May 21, 2019
…30105)

This change addresses several issues with ts-api-guardian and public api guards related tests in Windows

The fixes contain 3 main changes:
1) In `stripExportPattern` - replace `^` with `^^^^`  in RegExp due to a double escaping requirment under Windows. Note that under Linux this the extra character has no effect because it's still a valid RegExp in Js.

2. Force `*.patch` files to always be with a LF line sequence instead of CRLF in windows

3. When adding JSDoc comments consider the presence of a carriage return in a line new feed

Partially addresses angular#29785

PR Close angular#30105
BioPhoton added a commit to BioPhoton/angular that referenced this pull request May 21, 2019
BioPhoton added a commit to BioPhoton/angular that referenced this pull request May 21, 2019
…talled (angular#30105)

When the workspace node_modules are not installed outside of bazel context the api guardian tests fails because the tree artifacts files are not symlinked in windows.

We need to pass the node module location in the node_path

PR Close angular#30105
@angular-automatic-lock-bot
Copy link

angular-automatic-lock-bot bot commented Sep 15, 2019

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.