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

[wasm] Enable dedup by default. #80260

Merged
merged 5 commits into from
Jan 18, 2023
Merged

[wasm] Enable dedup by default. #80260

merged 5 commits into from
Jan 18, 2023

Conversation

vargaz
Copy link
Contributor

@vargaz vargaz commented Jan 5, 2023

No description provided.

@vargaz
Copy link
Contributor Author

vargaz commented Jan 5, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 6, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tannergooding
Copy link
Member

Should be unblocked now. Closing and reopening the PR should retrigger CI with the updated main.

@vargaz
Copy link
Contributor Author

vargaz commented Jan 6, 2023

/azp run runtime

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 6, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lewing
Copy link
Member

lewing commented Jan 6, 2023

Looked like the tests failed because the TupleElementNamesAttribute wasn't preserved?

@vargaz
Copy link
Contributor Author

vargaz commented Jan 6, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vargaz vargaz marked this pull request as draft January 10, 2023 05:19
@vargaz
Copy link
Contributor Author

vargaz commented Jan 10, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 13, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 14, 2023

The WasmBuildTests failure looks relevant.

@vargaz
Copy link
Contributor Author

vargaz commented Jan 15, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 15, 2023

/azp run runtime-wasm

2 similar comments
@vargaz
Copy link
Contributor Author

vargaz commented Jan 15, 2023

/azp run runtime-wasm

@vargaz
Copy link
Contributor Author

vargaz commented Jan 15, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

2 similar comments
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

.. copied to `aot-in` for the compilation step.

Example:
- when using WasmDedup=true, we get the main assemblies in `publish`
directory after linking, but `aot-instances.dll` is in different directory.
- this causes `MonoAOTCompiler` to copy all of them to a temporary `aot-in` dir for compiling with `mono-aot-cross`.
- And when the output items are set, we get:

```
 Output Item(s):
     _WasmAssembliesInternal=
         obj/Debug/net8.0/browser-wasm/wasm/for-publish/aot-in/Debug_u4nbxx3i.gc5.dll
                 LlvmBitcodeFile=obj/Debug/net8.0/browser-wasm/wasm/for-publish/Debug_u4nbxx3i.gc5.dll.bc
```

- here the `ItemSpec` is incorrectly set to the temporary `aot-in` path
- which can cause build failures in the following build steps
@radical
Copy link
Member

radical commented Jan 18, 2023

Pushed a fix for the WBT failure.

Copy link
Member

@lewing lewing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@vargaz
Copy link
Contributor Author

vargaz commented Jan 18, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lewing
Copy link
Member

lewing commented Jan 18, 2023

wbt are green and the build fix makes sense

@vargaz vargaz marked this pull request as ready for review January 18, 2023 05:50
@vargaz
Copy link
Contributor Author

vargaz commented Jan 18, 2023

Failures are unrelated.

@vargaz vargaz merged commit f3af676 into dotnet:main Jan 18, 2023
@vargaz vargaz deleted the wasm-dedup-enable branch January 18, 2023 09:22
@ghost ghost locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants