-
Notifications
You must be signed in to change notification settings - Fork 132
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
Runtime windows verticals failing to build in the VMR #4335
Comments
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. |
this is also impacting dotnet/runtime official build (though is non-deterministic) |
One thing I see between a working dotnet-runtime-official build and a failing one - for example 20240415.10 failure (binlog) versus The build logs from the dotnet-unified-build 20240416.1 failure also shows that The files in the error messages should only be written to disk by the source generator when I'm not sure what the underlying cause is either. The cdacreader project is just using the COM source generator and those paths aren't long enough to be hitting any long path problems with source generators. |
@chsienki @dotnet/roslyn Any idea what could be leading to CS0016 during source generation with
Previous comment #4335 (comment) has links to binlogs. |
However it looks like the task linked above didn't run in the cdacreader build. binlog says:
I'm confused by this :) as I think maybe the compiler task has a bug here. Basically it feels like we should only be passing a |
@RikkiGibson Lol I just spent like a genuine 5 minutes working through the logic of that condition, then did a git blame to see who wrote it and well, well we meet again past Chris. Something in the authoring is off definitely, but it also seems odd that the compiler still tries to write the files out, even if the directory isn't there, so we should probably file a bug on Roslyn for that. |
Opened dotnet/roslyn#73075 |
@ViktorHofer do you have any idea how to find out what would (sometimes) be passing this property? I'm not finding it anywhere in our yml or MSBuild logic for passing arguments when building the runtime. The binlogs are showing that it ends up as a command line argument for some build jobs, but not others (in the same build). I have no idea where to look to figure out where it is coming from. dotnet-runtime-official
dotnet-unified-buildLooking at the logs at src\runtime\artifacts\buildLogs\log\Release\Build.binlog 20240417.2 success - win x64 logs
20240416.1 failure - win x64 logs
20240415.1 success - win x64 logs
|
I think this is being injected by CodeQL. In both of the failing builds the |
@jaredpar another case where CodeQL is messing with us :) |
The reason this is only being hit by |
dotnet/runtime#101279 should work around the failure by always creating that output path when |
…01279) When we build `cdacreader`, we run the `LinkNative` target. This depends on `Compile` not `Build`, which means the `BuildOnlySettings` target that sets `BuildingProject=true` doesn't run. When `EmitCompilerGeneratedFiles=true`, this results in the generated output path not being created and the compiler erroring when trying to emit files to the path. See dotnet/roslyn#73075. CodeQL injects `-p:EmitCompilerGeneratedFiles=true` into the command line arguments. This was resulting in build failures in jobs where CodeQL is run. This change adds a workaround to our infrastructure for building NativeAOT-ed runtime components such that the generated output path is always created if `EmitCompilerGeneratedFiles=true`. Manually tested by explicitly passing that property on the command line. Fixes dotnet/source-build#4335
…tnet#101279) When we build `cdacreader`, we run the `LinkNative` target. This depends on `Compile` not `Build`, which means the `BuildOnlySettings` target that sets `BuildingProject=true` doesn't run. When `EmitCompilerGeneratedFiles=true`, this results in the generated output path not being created and the compiler erroring when trying to emit files to the path. See dotnet/roslyn#73075. CodeQL injects `-p:EmitCompilerGeneratedFiles=true` into the command line arguments. This was resulting in build failures in jobs where CodeQL is run. This change adds a workaround to our infrastructure for building NativeAOT-ed runtime components such that the generated output path is always created if `EmitCompilerGeneratedFiles=true`. Manually tested by explicitly passing that property on the command line. Fixes dotnet/source-build#4335
…tnet#101279) When we build `cdacreader`, we run the `LinkNative` target. This depends on `Compile` not `Build`, which means the `BuildOnlySettings` target that sets `BuildingProject=true` doesn't run. When `EmitCompilerGeneratedFiles=true`, this results in the generated output path not being created and the compiler erroring when trying to emit files to the path. See dotnet/roslyn#73075. CodeQL injects `-p:EmitCompilerGeneratedFiles=true` into the command line arguments. This was resulting in build failures in jobs where CodeQL is run. This change adds a workaround to our infrastructure for building NativeAOT-ed runtime components such that the generated output path is always created if `EmitCompilerGeneratedFiles=true`. Manually tested by explicitly passing that property on the command line. Fixes dotnet/source-build#4335
https://dnceng-public.visualstudio.com/public/_build/results?buildId=646322&view=logs&j=9050e078-31bf-5111-d8ec-8b6fa95caf9c&t=4df1dbeb-294c-5d6e-97b8-581fe506c270
@elinor-fung
The text was updated successfully, but these errors were encountered: