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

[browser][build][libraries] Properties are not propagated from nested build upwards #82819

Closed
ilonatommy opened this issue Mar 1, 2023 · 2 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Build-mono
Milestone

Comments

@ilonatommy
Copy link
Member

ilonatommy commented Mar 1, 2023

Found in #82619.

The test InvariantGlobalizationFalse from src/libraries/System.Runtime/tests/TrimmingTests/System.Runtime.TrimmingTests.proj needs Turkish locale loaded, in order to pass. By default, we are loading only small shard connected with the environment's locale, in the CI tests it's EFIGS that does not contain Turkish. We expect WASM users to indicate they would like to have bigger download size by setting WasmIncludeFullIcuData flag. The test mentioned above requires such a flag to load full ICU (that contains Turkish).

Setting the flag in eng/testing/tests.browser.targets has the proper effect and the value is passed correctly to WasmApp.targets where the decision about icu mode is made.
However, setting the flag directly in the test project: System.Runtime.TrimmingTests.proj or in eng\testing\linker\trimmingTests.props does not have the same effect because they do not belong to the same build process.

It would be helpful to have an option to set the propertys directly in the test project.

Connected comment: #82748 (comment)

@ilonatommy ilonatommy added arch-wasm WebAssembly architecture area-Build-mono labels Mar 1, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Mar 1, 2023
@ghost
Copy link

ghost commented Mar 1, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Found in #82619.

The test InvariantGlobalizationFalse from src/libraries/System.Runtime/tests/TrimmingTests/System.Runtime.TrimmingTests.proj needs Turkish locale loaded, in order to pass. By default, we are loading only small shard connected with the environment's locale, in the CI tests it's EFIGS that does not contain Turkish. We expect WASM users to indicate they would like to have bigger download size by setting WasmIncludeFullIcuData flag. The test mentioned above requires such a flag to load full ICU (that contains Turkish).

Setting the flag in eng/testing/tests.browser.targets has the proper effect and the value is passed correctly to WasmApp.targets where the decision about icu mode is made.
However, setting the flag directly in the test project: System.Runtime.TrimmingTests.proj or in eng\testing\linker\trimmingTests.props does not have the same effect because they do not belong to the same build process.

It would be helpful to have an option to set the propertys directly in the test project.

Author: ilonatommy
Assignees: radical
Labels:

arch-wasm, area-Build-mono

Milestone: -

@pavelsavara pavelsavara added this to the 8.0.0 milestone Mar 1, 2023
@pavelsavara pavelsavara removed the untriaged New issue has not been triaged by the area owner label Mar 1, 2023
@radical
Copy link
Member

radical commented Jul 25, 2023

The problem seems to be that the nested publish does not see the property being set in the test project. This could be because of how the project is setting the property, because for the nested build the project gets evaluated again so if a property was set in a target before then that would not show up in this nested build.

This will automatically go away once #83108 is fixed, because it would remove the nested publish.

Closing in favor of #83108 .

@radical radical closed this as completed Jul 25, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Build-mono
Projects
None yet
Development

No branches or pull requests

3 participants