Skip to content

Build VS installers for WebAssembly and Mobile workloads #55769

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

Merged
merged 47 commits into from
Jul 22, 2021

Conversation

directhex
Copy link
Contributor

This is a continuation of work by @bekir-ozturk in https://dev.azure.com/dnceng/internal/_git/dotnet-runtime/pullrequest/16294

Last private run (since it touches runtime-official.yml) at https://dev.azure.com/dnceng/internal/_build/results?buildId=1240576&view=results - it's still failing in Icon.png, which is supposed to be fixed by dotnet/arcade#7614 but I'm having issues getting the correct version picked up locally whilst the wholesale update from maestro is still up in the air. Will keep iterating on it, but wanted to open up to wider review.

@ghost
Copy link

ghost commented Jul 15, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@directhex
Copy link
Contributor Author

Current versioning story is, on an Official Build, the directory the JSON gets shoved in looks official-ish (6.0.21.27502 from my usual example OfficialBuildId of 20210525.2). Inspecting an MSI with Orca has a ProductVersion of 6.0.0 and a PackageVersion of 6.0.0-preview.7.21365.21.

@joeloff
Copy link
Member

joeloff commented Jul 19, 2021

Current versioning story is, on an Official Build, the directory the JSON gets shoved in looks official-ish (6.0.21.27502 from my usual example OfficialBuildId of 20210525.2). Inspecting an MSI with Orca has a ProductVersion of 6.0.0 and a PackageVersion of 6.0.0-preview.7.21365.21.

That's good for pack installers. We should check the generated VS authoring next.

@directhex
Copy link
Contributor Author

Latest private build, with version numbered artifacts to check, is https://dev.azure.com/dnceng/internal/_build/results?buildId=1248191&view=results

wixpack.zip are in the IntermediateArtifacts/workloads/ folder, jsons and MSIs in Insertion/

@directhex directhex changed the title Build VS installers for WebAssembly and Android workloads Build VS installers for WebAssembly and Mobile workloads Jul 20, 2021
</PropertyGroup>

<PropertyGroup>
<ManifestTeamProject Condition="'$(ManifestTeamProject)' == ''">dotnet</ManifestTeamProject>
Copy link
Member

Choose a reason for hiding this comment

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

I think we should add a couple of props here to control the name of the top level .vsman file that is generated, something like:

    <TargetName>Microsoft.NET.Workload.Runtime</TargetName>
    <ManifestName>$(TargetName)</ManifestName>

Copy link
Member

@pjcollins pjcollins Jul 21, 2021

Choose a reason for hiding this comment

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

The vsman file rename will work as well, feel free to mark this as resolved.

Copy link
Member

@joeloff joeloff left a comment

Choose a reason for hiding this comment

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

Looks good on the workload side. I'll defer the YAML changes to someone else who understands the runtime build better

@steveisok steveisok requested a review from a team July 22, 2021 00:12
@@ -109,7 +109,8 @@
<SubsetName Include="Mono.Packages" Description="The projects that produce NuGet packages for the Mono runtime." />
<SubsetName Include="Mono.WasmRuntime" Description="The WebAssembly runtime." />
<SubsetName Include="Mono.MsCorDbi" Description="The implementation of ICorDebug interface." />

<SubsetName Include="Mono.Workloads" OnDemand="true" Description="Builds the installers and the insertion metadata for Blazor workloads." />
Copy link
Member

Choose a reason for hiding this comment

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

Description needs updated in a follow up.

@steveisok steveisok merged commit e60882e into dotnet:main Jul 22, 2021
@steveisok
Copy link
Member

/backport to release/6.0-preview7

@github-actions
Copy link
Contributor

Started backporting to release/6.0-preview7: https://github.com/dotnet/runtime/actions/runs/1054608563

@github-actions
Copy link
Contributor

@steveisok backporting to release/6.0-preview7 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Adding workloads subset
.git/rebase-apply/patch:52: trailing whitespace.
    
.git/rebase-apply/patch:61: trailing whitespace.
    
.git/rebase-apply/patch:69: trailing whitespace.
    
.git/rebase-apply/patch:83: trailing whitespace.
  
warning: 4 lines add whitespace errors.
Using index info to reconstruct a base tree...
M	Directory.Build.props
M	eng/Subsets.props
M	eng/Versions.props
Falling back to patching base and 3-way merge...
Auto-merging eng/Versions.props
CONFLICT (content): Merge conflict in eng/Versions.props
Auto-merging eng/Subsets.props
Auto-merging Directory.Build.props
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Adding workloads subset
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

steveisok pushed a commit to steveisok/runtime that referenced this pull request Jul 22, 2021
In order to support generating installers, this change adds the mono.workloads subset and the associated yml.
Anipik pushed a commit that referenced this pull request Jul 22, 2021
…6127)

In order to support generating installers, this change adds the mono.workloads subset and the associated yml.

Co-authored-by: Jo Shields <directhex@apebox.org>
@ghost ghost locked as resolved and limited conversation to collaborators Aug 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants