Repository navigation
Avoid treating Java warnings as build errors during CI packing - #10781
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Use Arcade ExecWithRetries for Java packing in CI, ignoring JVM warning diagnostic parsing while preserving local Exec behavior. Co-authored-by: Copilot App <[email protected]>
akoeplinger
force-pushed
the
akoeplinger-fix-java-pack-exec-stderr
branch
from
November 6, 2026 20:45
c2e4d71 to
b5e9564
Compare
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the CI-only Gradle warning-parsing change.
No open issues 🎉
What changed in this PR
Updates SignalR Java packaging so JVM warnings emitted during CodeQL CI runs are not parsed as MSBuild diagnostics.
Changes:
- Sets
IgnoreStandardErrorWarningFormat="$(ContinuousIntegrationBuild)"on the Pack target’s Gradle invocation, matching the Java Build target’s CI-only behavior. - Preserves build failures for nonzero Gradle exit codes and leaves non-CI behavior unchanged.
| File | Description |
|---|---|
src/aspnetcore/eng/targets/Java.Common.targets |
Disables standard diagnostic parsing for the Pack command during CI. |
Review effort: Balanced
akoeplinger
enabled auto-merge (squash)
November 7, 2026 23:32
ViktorHofer
approved these changes
Nov 9, 2026
This was referenced Nov 10, 2026
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.
CodeQL runs emit JVM warnings that the SignalR Java Pack
Execparses as MSBuild diagnostics, failing the build even though Gradle succeeds:Match
_Build: use Arcade'sExecWithRetriesin CI withMaxAttempts="2"andIgnoreStandardErrorWarningFormat="true". Keep the existing plainExecfor local builds. Nonzero Gradle exit codes still fail after retries.Observed in attempt 1 of build 3128328.
Upstream CodeQL bug report: github/codeql#23044