Skip to content

Override SkipApplyOptimizationData to true when disabling OptProf data collection#12106

Merged
GangWang01 merged 2 commits intodotnet:vs17.11from
GangWang01:optprof-switch-fix
Jul 4, 2025
Merged

Override SkipApplyOptimizationData to true when disabling OptProf data collection#12106
GangWang01 merged 2 commits intodotnet:vs17.11from
GangWang01:optprof-switch-fix

Conversation

@GangWang01
Copy link
Member

When disabling OptProf data collection, build should skip apply optimization data.

Copilot AI review requested due to automatic review settings July 3, 2025 09:43
@GangWang01 GangWang01 requested a review from a team as a code owner July 3, 2025 09:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that when OptProf data collection is disabled, the build pipeline skips applying optimization data.

  • Adds a conditional variable SkipApplyOptimizationData set to true if EnableOptProf is false
  • Includes an explanatory comment for the new conditional
Comments suppressed due to low confidence (1)

.vsts-dotnet.yml:41

  • The new conditional branch for overriding SkipApplyOptimizationData isn't covered by existing pipeline tests. Consider adding a test to verify that SkipApplyOptimizationData is set to true when EnableOptProf is false.
  - ${{ if eq(parameters.EnableOptProf, false) }}:

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.

3 participants