-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
chore(import): fix failing tests on windows os #3629
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 42bc0b4. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 8 targets
Sent with 💌 from NxCloud. |
5a44ca6
to
e48c75d
Compare
e48c75d
to
346ab90
Compare
f86a6dd
to
1dcfaeb
Compare
31a8483
to
836edcc
Compare
@fahslaj @JamesHenry I found the problem. It is related to different temp dirs on the main and the agents. So on the main we have lerna/libs/commands/import/src/index.ts Lines 71 to 76 in f5bd591
We then get something like this lerna/libs/commands/import/src/index.ts Lines 181 to 192 in f5bd591
So from the import point of view everthing seems to be ok but actually nothing is imported. This can also happen if you have symlinks involved. To slove this I just set the temp dir in the ci config to |
What do you mean by "ensure that the projectRoot is part of the workspaceRoot"? Are you talking about adding this as functionality of Lerna, or just an additional check within the tests themselves? |
Well I mean here in the lerna import command: lerna/libs/commands/import/src/index.ts Lines 71 to 79 in f5bd591
Something like the following after L75
|
836edcc
to
a03435f
Compare
@fahslaj Is there anything missing from your point of view? Thx. |
@fahslaj any updates here? |
@amorscher sorry for the delay. I think the solution you have suggested of throwing a ValidationError in the case above makes sense. If you could please make that change and update this branch from main then we can get this merged as soon as CI passes. Thanks! |
b76ad69
to
5337dbe
Compare
5337dbe
to
42bc0b4
Compare
OK should be done! |
Thank you @amorscher ! Your contributions are greatly appreciated 😄 |
Fixes failing import unit tests on windows operating system
Description
Fixes failing import unit tests on windows operating system
Motivation and Context
Re-activate ignored unit tests to achieve higher test coverage and regression testing.
How Has This Been Tested?
Types of changes
Checklist: