Skip to content

[vs18.0] Fix internal tool restore and remove sbom import - #14879

Merged
ViktorHofer merged 2 commits into
vs18.0from
AttemptToFixRestoreInternalToolsInVS180
Aug 31, 2026
Merged

ViktorHofer merged 2 commits into
vs18.0from
AttemptToFixRestoreInternalToolsInVS180

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Aug 28, 2026 •

Copy link
Copy Markdown
Member
  1. Remove the internal tools restore step as that is already handled implicitly by the Arcade toolset
  2. Remove the sbom step which is deprecated and emits an ADO warning

Test build: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15133518&view=results

1. Remove the internal tools restore step as that is already handled implicitly by the Arcade toolset
2. Remove the sbom step which is deprecated and emits an ADO warning
Copilot AI lite review requested due to automatic review settings August 28, 2026 16:21

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

Review tier: Lite
Findings: 1 Medium severity

New issues introduced by this change (1)
Severity Finding
Medium severity azure-pipelines/​.vsts-dotnet-build-jobs.yml — The PR removes the generate-sbom.yml step, but the build still passes /p:GenerateSbom=true to…
What changed in this PR

This PR updates the VS 18.0 Azure DevOps job template to remove redundant/deprecated pipeline steps, aligning the build with current Arcade/MicroBuild behavior.

Changes:

  • Removed the explicit NuGet restore step for eng\common\internal\Tools.csproj (internal tools restore).
  • Removed the deprecated SBOM generation pipeline template step.
File Description
azure-pipelines/​.vsts-dotnet-build-jobs.yml Removes the explicit internal tools restore and drops the deprecated SBOM pipeline step from the Windows_NT 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 Review — Pipeline Maintenance (vs18.0)

This PR makes two pipeline cleanup changes that are both justified and correct.

Change 1: Remove NuGetCommand@2 Restore Internal Tools

The explicit NuGetCommand@2 restore step for eng\common\internal\Tools.csproj is removed. This is consistent with the previous PR #14847 that switched to WIF-based internal feed authentication (enable-internal-sources.yml). The MicroBuild plugins handle their own tool acquisition via the authenticated feeds.

Change 2: Remove generate-sbom.yml template

The comment "Required by Microsoft policy" was outdated. The eng/common/core-templates/steps/generate-sbom.yml template itself now emits a deprecation warning:

"Including generate-sbom.yml is deprecated, SBOM generation is handled 1ES PT now. Remove this include."

SBOM generation continues via /p:GenerateSbom=true passed to the build script, so policy compliance is maintained through 1ES PT infrastructure.

Verdict

No issues found. Both removals are correct housekeeping for the vs18.0 branch: one removes a step made redundant by WIF auth (#14847), and the other removes a deprecated template that itself instructs consumers to remove it. ✅

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 #14879 · 36.9 AIC · ⌖ 7.53 AIC · ⊞ 5K

@ViktorHofer
ViktorHofer requested a review from a team as a code owner August 28, 2026 17:11
@ViktorHofer
ViktorHofer merged commit 66fe059 into vs18.0 Aug 31, 2026
10 checks passed
@ViktorHofer
ViktorHofer deleted the AttemptToFixRestoreInternalToolsInVS180 branch August 31, 2026 06:55
@ViktorHofer

Copy link
Copy Markdown
Member Author

/backport to vs18.6

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to vs18.6 (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

@ViktorHofer backporting to vs18.6 failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git cherry-pick 66fe0596c5c3cb75b30c2aa4e95f32630c996685

Auto-merging azure-pipelines/.vsts-dotnet-build-jobs.yml
CONFLICT (content): Merge conflict in azure-pipelines/.vsts-dotnet-build-jobs.yml
Auto-merging eng/Versions.props
CONFLICT (content): Merge conflict in eng/Versions.props
error: could not apply 66fe0596c... [vs18.0] Fix internal tool restore and remove sbom import (#14879)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"


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

Applying: Fix vs18.0 internal tool restore and remove sbom import
Using index info to reconstruct a base tree...
M	azure-pipelines/.vsts-dotnet-build-jobs.yml
Falling back to patching base and 3-way merge...
Auto-merging azure-pipelines/.vsts-dotnet-build-jobs.yml
CONFLICT (content): Merge conflict in azure-pipelines/.vsts-dotnet-build-jobs.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Fix vs18.0 internal tool restore and remove sbom import
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

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