Repository navigation
Require ready-for-training tag for OptProf - #14867
Merged
AlesProkop merged 1 commit intoAug 28, 2026
Merged
Conversation
Require producer builds to carry the ready-for-training tag before they can trigger or be selected by the OptProf pipeline. Co-authored-by: Copilot <[email protected]> Copilot-Session: 1eca2b3e-1d22-46f4-aa2c-327ca9861c34
AlesProkop
temporarily deployed
to
copilot-pat-pool
August 28, 2026 07:14 — with
GitHub Actions
Inactive
This was referenced Aug 28, 2026
AlesProkop
temporarily deployed
to
copilot-pat-pool
August 28, 2026 07:14 — with
GitHub Actions
Inactive
AlesProkop
temporarily deployed
to
copilot-pat-pool
August 28, 2026 07:15 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the OptProf pipeline’s pipeline-resource selection and completion trigger so it only uses MSBuild producer runs that are tagged ready-for-training, preventing scheduled/manual runs (and resource triggers) from selecting successful-but-artifact-less servicing builds.
Changes:
- Add a
tags: [ready-for-training]filter to theComponentBuildUnderTestpipeline resource to constrain default resource selection for scheduled/manual runs. - Add a matching
trigger.tags: [ready-for-training]filter so pipeline-completion triggers only fire from tagged producer runs.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
ViktorHofer
approved these changes
Aug 28, 2026
AlesProkop
enabled auto-merge (squash)
August 28, 2026 07:29
ViktorHofer
pushed a commit
that referenced
this pull request
Aug 28, 2026
Depends on #14867. Merge #14867 first so the downstream OptProf pipeline does not trigger for builds without OptProf artifacts. Related to #14861. ### Context The latest `vs17.11` official build ([15107183](https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=15107183&view=results)) fails before compilation while restoring optimization data: `No drops matching the specified prefix were returned` The requested prefix is `OptimizationData/DotNet-msbuild-Trusted/vs17.11`. Previous successful `vs17.11` Windows builds used `-officialSkipApplyOptimizationData true`, and this servicing branch no longer needs to 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 `OptProf - Publish Artifact: MicroBuildOutputs` on `enableOptProf` because the bootstrapper output is not produced when collection is disabled. - Bumped `VersionPrefix` from `17.11.66` to `17.11.67`. ### Testing - Parsed `.vsts-dotnet.yml` and `azure-pipelines/.vsts-dotnet-build-jobs.yml` with `ConvertFrom-Yaml`. - Parsed `eng/Versions.props` as XML. - 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: 1eca2b3e-1d22-46f4-aa2c-327ca9861c34
ViktorHofer
pushed a commit
that referenced
this pull request
Aug 28, 2026
Depends on #14867. Merge #14867 first so the downstream OptProf pipeline does not trigger for builds without OptProf artifacts. Related to #14861. ### Context The latest `vs17.8` official build ([15087653](https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=15087653&view=results)) fails before compilation while restoring optimization data: `No drops matching the specified prefix were returned` The requested prefix is `OptimizationData/DotNet-msbuild-Trusted/vs17.8`. All four official builds since August 17 have failed this way. An earlier build that got past restore then failed the OptProf bootstrapper because it could not obtain a VSDrop managed-identity token, so this servicing branch should stop both applying unavailable data and collecting fresh data. ### Changes Made - Added an `enableOptProf` parameter to the official pipeline and defaulted it to `false`. - Set `SkipApplyOptimizationData=true` when OptProf collection is disabled. - Gated the OptProf plugin, ProfilingInputs publish, bootstrapper, training-settings generation, `MicroBuildOutputs` publish, and `ready-for-training` tag on `enableOptProf`. - Kept the shared job-template default at `true` so the experimental pipeline preserves its existing OptProf behavior. - Bumped `VersionPrefix` from `17.8.58` to `17.8.59`. ### Testing - Parsed `.vsts-dotnet.yml`, `azure-pipelines/.vsts-dotnet-build-jobs.yml`, and the unchanged experimental caller with `ConvertFrom-Yaml`. - Parsed `eng/Versions.props` as XML. - 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: 1eca2b3e-1d22-46f4-aa2c-327ca9861c34
Member
|
nice! |
This was referenced Aug 31, 2026
AlesProkop
added a commit
that referenced
this pull request
Aug 31, 2026
Depends on #14867. Related to #14868 and #14869. ### Context The latest `vs18.0` official build ([15150034](https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=15150034&view=results)) fails before compilation while restoring optimization data: `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 `OptProf - Publish Artifact: MicroBuildOutputs` because the bootstrapper output is not produced when collection is disabled. - Bumped `VersionPrefix` from `18.0.32` to `18.0.33`. ### 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
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
This was referenced Nov 11, 2026
Merged
Closed
This was referenced Nov 22, 2026
Open
Closed
Merged
flxjk
pushed a commit
to flxjk/typespec
that referenced
this pull request
Nov 25, 2026
Updated [Microsoft.Build](https://github.com/dotnet/msbuild) from 18.11.0 to 18.12.2. <details> <summary>Release notes</summary> _Sourced from [Microsoft.Build's releases](https://github.com/dotnet/msbuild/releases)._ ## 18.12.2 ## What's Changed * [TaskAnalyzer] Align diagnostic severities and ignore open generic ITaskItem<T> by @VolPlita in dotnet/msbuild#14811 * Add multi-threading option to build response file by @ViktorHofer in dotnet/msbuild#14837 * Anchor MSBuildTask0003 code fix on the flagged call and withhold it where TaskEnvironment cannot bind by @ViktorHofer with @Copilot in dotnet/msbuild#14810 * Bump main to 18.12 after the vs18.11 branch snap by @ViktorHofer in dotnet/msbuild#14841 * Report MSBuildTask0005 at the unsafe call site so it can be suppressed there by @ViktorHofer with @Copilot in dotnet/msbuild#14829 * Revert "Add multi-threading option to build response file" by @ViktorHofer in dotnet/msbuild#14851 * [main] Source code updates from dotnet/dotnet by @dotnet-maestro[bot] in dotnet/msbuild#14853 * [main] Update dependencies from dotnet/arcade by @dotnet-maestro[bot] in dotnet/msbuild#14854 * Update MicrosoftBuildVersion in analyzer template by @github-actions[bot] in dotnet/msbuild#14565 * Revert "Revert "Add multi-threading option to build response file"" by @ViktorHofer in dotnet/msbuild#14855 * Fix stale gh-aw-actions/setup pin causing "activation" job failure by @JanProvaznik with @Copilot in dotnet/msbuild#14842 * Make isolated graph builds fail deterministically on undeclared cross-project targets by @AlesProkop with @Copilot in dotnet/msbuild#14280 * Revise temp path handling in README by @baronfel in dotnet/msbuild#14834 * Fix BuildCheck rule configuration and task name casing bug by @AR-May in dotnet/msbuild#14778 * Remove MSBuildImportedProject item from the XSD by @drewnoakes in dotnet/msbuild#14659 * [main] Source code updates from dotnet/dotnet by @dotnet-maestro[bot] in dotnet/msbuild#14866 * Require ready-for-training tag for OptProf by @AlesProkop in dotnet/msbuild#14867 * Ignore stale MSBuild server console writes by @JanProvaznik in dotnet/msbuild#14850 * Regenerate Expert Code Review workflow lock by @JanProvaznik with @Copilot in dotnet/msbuild#14870 * [main] Update dependencies from dotnet/arcade by @dotnet-maestro[bot] in dotnet/msbuild#14896 * [main] Update dependencies from dotnet/roslyn by @dotnet-maestro[bot] in dotnet/msbuild#14900 * [main] Update dependencies from nuget/nuget.client by @dotnet-maestro[bot] in dotnet/msbuild#14669 * [main] Source code updates from dotnet/dotnet by @dotnet-maestro[bot] in dotnet/msbuild#14886 * Expose AbsolutePath.GetCanonicalForm() by @JanProvaznik with @Copilot in dotnet/msbuild#14873 * Make release checklist step 1.3 a full branch-retirement audit by @ViktorHofer in dotnet/msbuild#14911 * Resolve PathLike MatchOnMetadata against the thread working directory by @JanProvaznik in dotnet/msbuild#14916 * Fix typo in project dependency explanation by @DanexisIbrahimAbtula in dotnet/msbuild#14885 * Preserve events routed through the TaskHostTask by @AR-May in dotnet/msbuild#14876 * Fix NormalizePath and other intrinsic functions in multithreaded mode by @AR-May in dotnet/msbuild#14875 * Bump actions/checkout from 7.0.0 to 7.0.1 by @dependabot[bot] in dotnet/msbuild#14887 * Bump github/gh-aw-actions/setup-cli from 0.87.2 to 0.87.9 by @dependabot[bot] in dotnet/msbuild#14888 * Bump github/gh-aw-actions/setup from 0.82.9 to 0.87.9 by @dependabot[bot] in dotnet/msbuild#14889 * Upgrade gh-aw to v0.88.2 and recompile agentic workflow lock files by @AR-May in dotnet/msbuild#14935 * Preserve error detail when ContinueOnError downgrades an error to a warning by @AR-May in dotnet/msbuild#14918 * Fix Dependabot ignore rule to match gh-aw-actions sub-path actions by @AR-May in dotnet/msbuild#14938 * [Flaky Test] Quarantine 1 flaky test (TaskEnvironment) by @github-actions[bot] in dotnet/msbuild#14662 * Fix template path in quarantine pipeline by @AR-May in dotnet/msbuild#14937 * Run expert code review when a draft PR is marked ready for review by @AR-May in dotnet/msbuild#14952 * [Dreaming] dreaming: clarify RenderImmediateMessage as the correct path for immediate TerminalLogger output by @github-actions[bot] in dotnet/msbuild#14381 * [Dreaming] Clarify: don't hardcode backslash path separators in test XML by @github-actions[bot] in dotnet/msbuild#14973 * Regenerate review-on-open lock file by @AR-May in dotnet/msbuild#14977 * Recognize AbsolutePath.Value canonicalization in task analyzers by @JanProvaznik in dotnet/msbuild#14970 * improve issue and pr templates based on history by @JanProvaznik in dotnet/msbuild#14982 * Detect environment-dependent temp helpers in TaskAnalyzer by @ViktorHofer with @Copilot in dotnet/msbuild#14975 * Document registered task object semantics in multithreaded builds by @JanProvaznik in dotnet/msbuild#14919 * Add server-only MSBUILDDEBUGONSTART modes by @JanProvaznik in dotnet/msbuild#14988 * Preserve manifest input streams when writing manifests by @dtivel in dotnet/msbuild#14883 * Scope MT-specific TaskAnalyzer diagnostics and support .editorconfig by @VolPlita in dotnet/msbuild#14775 * [main] Update dependencies from dotnet/arcade by @dotnet-maestro[bot] in dotnet/msbuild#14948 ... (truncated) Commits viewable in [compare view](dotnet/msbuild@v18.11.0...v18.12.2). </details> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Nov 25, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Context
The
MSBuild-OptProfpipeline consumesMicroBuildOutputsand OptProf run settings from successful MSBuild official builds. Servicing branches can disable OptProf collection, so those builds no longer produce the required artifacts.The pipeline resource currently triggers for every successful
vs*build, and scheduled or manual runs can select an artifact-less build.Changes Made
ready-for-trainingtag when selecting a pipeline resource for scheduled or manual runs.Testing
.opt-prof.ymlwithConvertFrom-Yaml.ready-for-trainingonly when the build succeeds andenableOptProfis enabled.