-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[browser][icu][libraries] Load full ICU in library tests only when it's necessary #82619
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ee97ec8
Moved the flag to libs that really need it.
ilonatommy 8776903
Remaining libs.
ilonatommy d1f019b
Property should not be set in ITemsGroup.
ilonatommy 9ffc90c
Previos approach did not work, revert and try new one.
ilonatommy 5059298
Only placing it here does not trim the assigned value.
ilonatommy 942ade1
Merge branch 'main' into issue-82592
ilonatommy 2933932
Add comment to the workaround.
ilonatommy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why only when 'TestTrimming' ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the story:
I made this PR to reduce the number of tests that run with this flag set to true to minimum. However, I was not able to make
InvariantGlobalizationFalse.cs
in trimming tests pass - even setting the Property straight in that test d1f019b was not woring - when we were enteringWasmApp.targets
the value was already trimmed.I came up with the workaround: I won't set the flag for all the tests in
tests.browser.targets
but only for the trimming ones, to makeInvariantGlobalizationFalse.cs
pass.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need
'$(IsTrimmingTestProject)' == 'true'
.$(TestTrimming)
would be set for the whole build, but it is relevant only for trimming projects which will have$(IsTrimmingTestProject)
set. At least based on reading the code:)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing it to
IsTrimmingTestProject
breaks the test again. It has to be connected with the order of MsBuild files evaluation, because for the discussed test both flags:IsTrimmingTestProject
andTestTrimming
aretrue
in the binlog. So it must be that we are readingtest.browser.targets
before we readDirectory.Build.props
whereIsTrimmingTestProject
value is set.TestTrimming
is set insrc/libraries/tests.proj
and is already availabe in the line quoted.Conclusion: the condition has to stay as it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused about it. Do all combinations 4 of trimming and invariant work for native rebuild ?
Is this just issue with unit testing ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We took it offline with Pavel and it's not about trimming but about these files being used in different builds. That is why values set in one of them are not reflected in the other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is nested MSBuild which didn't receive
WasmIncludeFullIcuData
fromSystem.Runtime.TrimmingTests.proj
And then full file is not there!