Skip to content

[vs18.6] Remove NuGet restore and SBOM generation steps - #14901

Merged
ViktorHofer merged 2 commits into
vs18.6from
ViktorHofer-patch-1
Aug 31, 2026
Merged

ViktorHofer merged 2 commits into
vs18.6from
ViktorHofer-patch-1

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Manual backport of #14879 to fix the official build

Removed NuGet restore task and SBOM generation step from the build pipeline.
Copilot AI lite review requested due to automatic review settings August 31, 2026 07:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 VersionPrefix to 18.6.23.
  • Remove the explicit NuGet restore of eng/common/internal/Tools.csproj from the official build job.
  • Remove the generate-sbom.yml template 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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

⚠️ SBOM generation step removal
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:

  • awmgmcpg
  • patchdiff.githubusercontent.com

To allow these domains, add them to the network.allowed list 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

@ViktorHofer
ViktorHofer enabled auto-merge (squash) August 31, 2026 07:59
@ViktorHofer
ViktorHofer merged commit fe640c5 into vs18.6 Aug 31, 2026
11 checks passed
@ViktorHofer
ViktorHofer deleted the ViktorHofer-patch-1 branch August 31, 2026 08:00
AlesProkop added a commit that referenced this pull request Aug 31, 2026
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
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.

4 participants