Skip to content

Dedupe workload packs#8423

Merged
mmitche merged 2 commits into
dotnet:release/6.0from
joeloff:dedupe-packs
Feb 4, 2022
Merged

Dedupe workload packs#8423
mmitche merged 2 commits into
dotnet:release/6.0from
joeloff:dedupe-packs

Conversation

@joeloff

@joeloff joeloff commented Feb 2, 2022

Copy link
Copy Markdown
Member

Deduping packs based on ID and version. Since WorkloadPacks don't implement GetHashCode, Distinct() fails to dedupe properly. Duplicate packs causes issues when trying to compile/link the same pack in parallel and can also create multiple PackageCodes for the same MSI leading to other problems when the MSIs are actually installed.

@joeloff

joeloff commented Feb 2, 2022

Copy link
Copy Markdown
Member Author

FYI @steveisok This should solve the issue for EMSDK

@steveisok

Copy link
Copy Markdown
Member

Thanks @joeloff for figuring this out quickly!

dsplaisted
dsplaisted previously approved these changes Feb 3, 2022
@joeloff
joeloff requested a review from chcosta February 3, 2022 16:38
@joeloff

joeloff commented Feb 3, 2022

Copy link
Copy Markdown
Member Author

@chcosta adding you since I need someone from eng to approve before I can merge.

chcosta
chcosta previously approved these changes Feb 3, 2022

@chcosta chcosta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have no opinion on these changes so... LGTM

@joeloff

joeloff commented Feb 3, 2022

Copy link
Copy Markdown
Member Author

Help me @mmitche you're my only hope

I thought anyone from eng would unblock the merge, but I guess not since this is 6.0

Comment thread src/Microsoft.DotNet.Build.Tasks.Workloads/src/GenerateWorkloadMsis.cs Outdated
@joeloff
joeloff dismissed stale reviews from chcosta and dsplaisted via 2869051 February 3, 2022 17:20
@joeloff

joeloff commented Feb 4, 2022

Copy link
Copy Markdown
Member Author

@mmitche could you please merge this?

@mmitche
mmitche merged commit 35cb0d9 into dotnet:release/6.0 Feb 4, 2022
joeloff added a commit to joeloff/arcade that referenced this pull request Feb 4, 2022
* Dedupe workload packs

* Replace HashSet with List
@joeloff joeloff mentioned this pull request Feb 4, 2022
joeloff added a commit that referenced this pull request Feb 7, 2022
* Dedupe workload packs

* Replace HashSet with List
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants