Skip to content

[wasm] Don't use _WasmDevel=true when publishing - #87544

Merged
radical merged 7 commits into
dotnet:mainfrom
radical:wbt-wasm-devel
Jun 15, 2023
Merged

radical merged 7 commits into
dotnet:mainfrom
radical:wbt-wasm-devel

Conversation

@radical

@radical radical commented Jun 14, 2023 •

Copy link
Copy Markdown
Member

_WasmDevel=true causes the optimization flags to be -O0.

  • This was automatically set whenever Configuration=Debug, and
    WasmBuildNative=true, which is useful when relinking in inner loop.
  • But when publishing, and relinking/AOT, -O0 results in larger output.
  • Instead, this is changed to never use _WasmDevel when publishing.

[wasm] host: Add --no-silent command line parameter

  • this is the equivalent to --verbose
  • The default is "silent" behavior

Cannot use --verbose because that conflicts with dotnet run.

Also:

  • CI: Trigger only wasm jobs on workload-testing.targets changes, since only wasm is using this currently
  • Add missing Wasm.Build.Tests.Blazor.AppsettingsTests to list of tests to run

Fixes #87414 - side effect of the _WasmDevel change.

radical added 5 commits June 14, 2023 05:59
- this is the equivalent to `--verbose`
- The default is "silent" behavior

Cannot use `--verbose` because that conflicts with `dotnet run`.
.. which would be useful in debugging tests.
`_WasmDevel=true` causes the optimization flags to be `-O0`.

- This *was* automatically set whenever `Configuration=Debug`, and
`WasmBuildNative=true`, which is useful when relinking in inner loop.
- But when publishing, and relinking/AOT, `-O0` results in larger output.
@radical
radical requested review from ilonatommy, maraf and vargaz June 14, 2023 06:13
@ghost ghost assigned radical Jun 14, 2023
@ghost ghost added the area-Build-mono label Jun 14, 2023
@radical radical added the arch-wasm WebAssembly architecture label Jun 14, 2023
@radical radical added this to the 8.0.0 milestone Jun 14, 2023
@ghost

ghost commented Jun 14, 2023

Copy link
Copy Markdown

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

Issue Details

_WasmDevel=true causes the optimization flags to be -O0.

  • This was automatically set whenever Configuration=Debug, and
    WasmBuildNative=true, which is useful when relinking in inner loop.
  • But when publishing, and relinking/AOT, -O0 results in larger output.

[wasm] host: Add --no-silent command line parameter

  • this is the equivalent to --verbose
  • The default is "silent" behavior

Cannot use --verbose because that conflicts with dotnet run.

Also:

  • CI: Trigger only wasm jobs on workload-testing.targets changes, since only wasm is using this currently
  • Add missing Wasm.Build.Tests.Blazor.AppsettingsTests to list of tests to run
Author: radical
Assignees: radical
Labels:

arch-wasm, area-Build-mono

Milestone: -

@radical

radical commented Jun 14, 2023

Copy link
Copy Markdown
Member Author

The _WasmDevel change also fixes #87414 .

@radical
radical requested a review from steveisok June 14, 2023 06:15
Comment thread src/mono/wasm/host/JSEngineHost.cs Resolved
@radical

radical commented Jun 14, 2023

Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara

Copy link
Copy Markdown
Member

perhaps --verbose-publish or --verbose-build or --verbose-aot or --verbose-compilation

Comment thread src/mono/wasm/host/JSEngineHost.cs Resolved
Comment thread src/mono/wasm/host/JSEngineHost.cs Resolved
@radical

radical commented Jun 14, 2023

Copy link
Copy Markdown
Member Author

perhaps --verbose-publish or --verbose-build or --verbose-aot or --verbose-compilation

This is for dotnet run, so none of these would be relevant. I don't particularly like --no-silent though, but don't have a good alternative right now. OTOH, --no-* does have precedence like --no-build, --no-restore etc for dotnet run.

@pavelsavara

Copy link
Copy Markdown
Member

This is for dotnet run, so none of these would be relevant.

Could you please explain what are we making verbose ?

@radical

radical commented Jun 14, 2023

Copy link
Copy Markdown
Member Author

This is for dotnet run, so none of these would be relevant.

Could you please explain what are we making verbose ?

Not much right now. The js engine exit code for example, will be shown in verbose, and the js engine invocation command line.

@radical

radical commented Jun 15, 2023

Copy link
Copy Markdown
Member Author

@pavelsavara I'm merging this to get CI green. If we want to change the parameter name, then I can handle that in a follow up PR.

@radical
radical merged commit 226e3ec into dotnet:main Jun 15, 2023
@radical
radical deleted the wbt-wasm-devel branch June 15, 2023 01:24
@ghost ghost locked as resolved and limited conversation to collaborators Jul 15, 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

Successfully merging this pull request may close these issues.

WasmTemplateTests.ConsolePublishAndRun fails with exit code 137

3 participants