Skip to content

Add opt-in for default channel registrations check#12028

Merged
JanProvaznik merged 2 commits intomainfrom
exp/jiayingbai/issue11214
Jun 18, 2025
Merged

Add opt-in for default channel registrations check#12028
JanProvaznik merged 2 commits intomainfrom
exp/jiayingbai/issue11214

Conversation

@JaynieBai
Copy link
Copy Markdown
Member

Add opt-in for default channel registrations check

Fixes #11214

The error output is more explicit after the change
image

Copilot AI review requested due to automatic review settings June 17, 2025 01:33
@JaynieBai JaynieBai requested a review from a team as a code owner June 17, 2025 01:33
Copy link
Copy Markdown
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

Adds an opt-in flag to enforce default-channel registrations in the .NET YAML pipeline, making validation errors more explicit.

  • Introduces requireDefaultChannels: true under source validation settings.
  • Improves error output clarity when default channels are missing.
Comments suppressed due to low confidence (2)

.vsts-dotnet.yml:331

  • [nitpick] Include a comment or update the pipeline documentation to explain what requireDefaultChannels does and when to enable it, so maintainers understand its impact.
requireDefaultChannels: true

.vsts-dotnet.yml:331

  • Add or update pipeline tests to cover scenarios with requireDefaultChannels enabled, ensuring the default-channel enforcement behaves as expected.
requireDefaultChannels: true

@JaynieBai JaynieBai requested a review from AR-May June 18, 2025 08:37
Copy link
Copy Markdown
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

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

Let's see how this goes. I'm glad there's an escape hatch for advanced scenarios.

@JanProvaznik JanProvaznik merged commit 29eb5e8 into main Jun 18, 2025
10 checks passed
@JanProvaznik JanProvaznik deleted the exp/jiayingbai/issue11214 branch June 18, 2025 09:18
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.

[Infra] Build publishing - Opt-in into strict checking of default branch registration

4 participants