Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: *Lot* of builds broken - System/Numerics/Matrix4x4.cs(1785,43): error CA1857: The argument should be a constant for optimal performance #80281

Closed
radical opened this issue Jan 6, 2023 · 8 comments · Fixed by #80282
Labels
blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Milestone

Comments

@radical
Copy link
Member

radical commented Jan 6, 2023

PR builds are broken, for example - (this)(https://dev.azure.com/dnceng-public/public/_build/results?buildId=127542&view=logs&j=72f9df23-c01e-561c-b579-6959c020a69b&t=8974e4e0-e2d2-5d20-4c75-b6a799880c93).

  System.Private.CoreLib -> /__w/1/s/artifacts/bin/System.Private.CoreLib/ref/Checked/net8.0/System.Private.CoreLib.dll
/__w/1/s/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs(1785,43): error CA1857: The argument should be a constant for optimal performance [/__w/1/s/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj]
##[error]src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs(1785,43): error CA1857: (NETCORE_ENGINEERING_TELEMETRY=Build) The argument should be a constant for optimal performance
/__w/1/s/src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs(1789,50): error CA1857: The argument should be a constant for optimal performance [/__w/1/s/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj]
##[error]src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs(1789,50): error CA1857: (NETCORE_ENGINEERING_TELEMETRY=Build) The argument should be a constant for optimal performance

This seems to be related to #80192 .

cc @tannergooding

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@radical radical added the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Jan 6, 2023
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jan 6, 2023
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jan 6, 2023
@radical radical added this to the 8.0.0 milestone Jan 6, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jan 6, 2023
@tannergooding
Copy link
Member

PR fix is here: #80282

It's unclear why this didn't fail in regular CI. Will look into that after the fix is merged.

@radical
Copy link
Member Author

radical commented Jan 6, 2023

PR fix is here: #80282

Thanks for the lightning fast response :)

It's unclear why this didn't fail in regular CI. Will look into that after the fix is merged.

Yeah, very strange. I thought this - #80149 - enables CA1857, but that's not merged yet. 🤷‍♂️

@tannergooding
Copy link
Member

Perhaps the wasm build is configured for a different set of rules atm?

@radical
Copy link
Member Author

radical commented Jan 6, 2023

But this shows coreclr builds failing too.

@tannergooding
Copy link
Member

Hmmm, its definitely unclear to me then. I will continue investigating further.

@stephentoub
Copy link
Member

#80149 makes it explicit, but that analyzer is a warning by default. The analyzer wasn't available in this repo until #79685 was merged, so #80192 didn't actually have the analyzer.

@radical
Copy link
Member Author

radical commented Jan 6, 2023

Oh, the builds from your #80192 are from yesterday evening. And a new roslyn update(#79685) was ingested after that which likely added/enabled this new analyzer.

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jan 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants