Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix warning breaking official build, enable warningAsError in all pipelines#6988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ericstj merged 4 commits intodotnet:mainfromericstj:fixBuildBreak
Oct 30, 2025

Conversation

@ericstj
Copy link
Member

@ericstjericstj commentedOct 30, 2025
edited by dotnet-policy-servicebot
Loading

Fixes#6986

I discovered that all builds had disabled warning as errorexcept the source-index step, which went through the arcade script instead of the repo script.

A warning was introduced in5ca1721 that caused official build to fail due to source-index job.

I've left warning as error disabled for the build scripts (local developer scenario) but I've made all the AzDo pipelines enable warnAsError.

These warnings are important, the one here would mean actual runtime problems if it were in a product assembly.microsoft/semantic-kernel#13316 I'm not sure why the test didn't hit it, maybe it happens to not call any API that use async interfaces on netfx.

Microsoft Reviewers:Open in CodeFlow

@ericstjericstj requested a review froma team as acode ownerOctober 30, 2025 18:35
CopilotAI review requested due to automatic review settingsOctober 30, 2025 18:35
Copy link
Contributor

CopilotAI 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 makes build configuration improvements and adds a workaround for .NET Framework builds:

  • Removes thewarnAsError: 0 override from CI pipelines to enforce warnings as errors consistently
  • Adds a custom source indexing build command for main branch builds
  • Includes a workaround for Microsoft.Bcl.AsyncInterfaces dependency issue on .NET Framework

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

FileDescription
test/Libraries/Microsoft.Extensions.DataIngestion.Tests/Microsoft.Extensions.DataIngestion.Tests.csprojAdds conditional package reference for Microsoft.Bcl.AsyncInterfaces to work around Semantic Kernel issue #13316 on .NET Framework
azure-pipelines.ymlRemoves warnAsError override and adds sourceIndexBuildCommand for source indexing on main branch
azure-pipelines-unofficial.ymlRemoves warnAsError override to enforce warnings as errors
azure-pipelines-public.ymlRemoves warnAsError override to enforce warnings as errors

@ericstj
Copy link
MemberAuthor

This is working
image

However I noticed a few other places wherewarnAsError was not passed and have fixed those.

@ericstj
Copy link
MemberAuthor

@ericstj
Copy link
MemberAuthor

@joperezr let me know that this is supposed to be handled byCorrectness WarningsCheck job, however that job is building on ubunutu, so it doesn't include the .NETFramework targets for tests --

<TargetFrameworksCondition=" '$(IsWindowsBuild)' == 'true'">$(TestNetCoreTargetFrameworks)$(ConditionalNet462)</TargetFrameworks>

This allows folks to get test results without being blocked by warnings.Make sure the job testing for warnings runs on windows to ensure it builds a superset of targets.
@ericstjericstjenabled auto-merge (squash)October 30, 2025 22:14
@ericstjericstj merged commit2670097 intodotnet:mainOct 30, 2025
6 checks passed
Copy link
Member

@adamsitnikadamsitnik left a comment

Choose a reason for hiding this comment

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

Big thanks for solving the problem and providing all the explanation@ericstj !

And apologies for introducing the problem.

This was referencedNov 11, 2025
This was referencedNov 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@adamsitnikadamsitnikadamsitnik left review comments

Copilot code reviewCopilotCopilot left review comments

@stephentoubstephentoubstephentoub approved these changes

@joperezrjoperezrAwaiting requested review from joperezr

Assignees

@ericstjericstj

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Extensions build is using warnAsError false

3 participants

@ericstj@stephentoub@adamsitnik

[8]ページ先頭

©2009-2025 Movatter.jp