[release/8.0.4xx] add a flag to let users opt into serial builds of inner-RID containers #47475
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #47472 to release/8.0.4xx
Description
This backports a small flag that enables the multi-RID inner builds for SDK Container publish to be performed serially instead of in parallel. Users using complex repo scenarios (blazor-wasm) or features that don't work well in multi-RID scenarios (GeneratePackageOnBuild) can use this flag to workaround (hopefully) temporary limitations in these features while teams work to make the builds safer, more idempotent, and more reliable.
Customer Impact
The MDE team will hit this as part of their migrations because some of their repos use GeneratePackageOnBuild. The broader .NET community has also hit this (e.g. Webreaper/SolisAgileManager#137) and continue to face build parallelism issues (Webreaper/SolisAgileManager#124 (comment)).
Testing
Manual local testing on repros from both groups above.
Risk
Low - this is a very small change that enforces serialization only.
/cc @baronfel