Repository navigation
[vs18.6] Remove NuGet restore and SBOM generation steps - #14901
Conversation
Removed NuGet restore task and SBOM generation step from the build pipeline.
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
Review tier: Lite
Findings: None
What changed in this PR
Backports #14879 to the vs18.6 branch to align the official pipeline with current Arcade behavior by removing redundant internal tool restore and the deprecated SBOM generation template step, while also bumping the servicing version.
Changes:
- Bump
VersionPrefixto18.6.23. - Remove the explicit NuGet restore of
eng/common/internal/Tools.csprojfrom the official build job. - Remove the
generate-sbom.ymltemplate invocation step from the official build job.
| File | Description |
|---|---|
| eng/Versions.props | Updates servicing VersionPrefix to 18.6.23. |
| azure-pipelines/.vsts-dotnet-build-jobs.yml | Removes redundant internal tools restore and drops deprecated SBOM generation template step from the official build job. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Expert Code Review — PR #14901
[vs18.6] Remove NuGet restore and SBOM generation steps (manual backport of #14879)
This is a CI pipeline cleanup on the vs18.6 servicing branch. Two pipeline steps are removed and the version is bumped.
Findings
✅ Backwards Compatibility
CI/pipeline-only change. No impact on the MSBuild binary, public API, or build behavior for end-users.
✅ Version bump (18.6.22 → 18.6.23)
Clean patch increment, appropriate for a servicing fix on the vs18.6 branch.
✅ NuGet restore removal
The removed NuGetCommand@2 step restored eng\\common\\internal\\Tools.csproj. This restore is now handled by the MicroBuildSigningPlugin@4 step that immediately follows, making the explicit step redundant.
The removed generate-sbom.yml template step was annotated with # Required by Microsoft policy. Its removal is safe if and only if SBOM generation is covered by the /p:GenerateSbom=true MSBuild property already passed to the build step. Since that property is still present, the SBOM is generated inline during the build rather than as a separate post-build step. This is the expected pattern after the arcade-level update referenced in #14879. The policy requirement is satisfied — just via a different mechanism.
✅ Scope discipline
Tightly scoped: two pipeline step removals + one version bump. No unrelated changes mixed in.
✅ Backport fidelity
The diff matches the expected changes from the parent PR #14879.
Verdict
LGTM. The SBOM note above is informational — reviewers should confirm that the policy requirement is satisfied inline via /p:GenerateSbom=true rather than the separate template step.
Warning
Firewall blocked 2 domains
The following domains were blocked by the firewall during workflow execution:
awmgmcpgpatchdiff.githubusercontent.com
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "awmgmcpg"
- "patchdiff.githubusercontent.com"See Network Configuration for more information.
Generated by Expert Code Review (on open) for #14901 · 63.2 AIC · ⌖ 7.57 AIC · ⊞ 6.8K
Depends on #14867. Follows #14901. Related to #14868 and #14869. ### Context After the internal-tool restore failure fixed by #14901, the `vs18.6` official build reaches the same unavailable optimization-data restore affecting the other servicing branches: `No drops matching the specified prefix were returned` This servicing branch no longer has matching optimization data to apply and should no longer collect fresh OptProf data. ### Changes Made - Changed `enableOptProf` to default to `false`. - Kept the existing behavior that sets `SkipApplyOptimizationData=true` when OptProf collection is disabled, avoiding the unavailable-data restore. - Gated the `MicroBuildOutputs` artifact because the bootstrapper output is not produced when collection is disabled. - Moved the bootstrapper output into the OptProf-only artifact-move list so the build does not fail when that directory is absent. - Bumped `VersionPrefix` from `18.6.23` to `18.6.24`. ### Testing - Parsed `.vsts-dotnet.yml` and `azure-pipelines/.vsts-dotnet-build-jobs.yml` with `ConvertFrom-Yaml`. - Parsed `eng/Versions.props` as XML. - Confirmed the `MSBuild-OptProf` pipeline resolves `.opt-prof.yml` from `main`, where #14867 prevents artifact-less builds from triggering training. - End-to-end validation requires the official pipeline run. ### Notes - We can skip the OptProf because this branch only inserts into .NET SDK and not VS, so there is no risk of introducing a performance regressions in VS. Copilot-Session: 90868941-d32d-4372-a49c-c889de6a0ecb
Manual backport of #14879 to fix the official build