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

[wasm] Wasm.Build.Tests failing with Generator 'JSExportGenerator' failed to initialize.. FileNotFoundException.. Microsoft.Interop.SourceGeneration #74944

Closed
radical opened this issue Sep 1, 2022 · 8 comments · Fixed by #74943

Comments

@radical
Copy link
Member

radical commented Sep 1, 2022

Wasm.Build.Tests.WasmTemplateTests failing on multiple PRs. On #74704 it failed with:

/datadisks/disk1/work/ABD10942/w/B5030994/e/dotnet-workload/sdk/7.0.100-rc.2.22426.5/MSBuild.dll /nologo -maxcpucount -property:_IsPublishing=true --property:WasmBuildOnlyAfterPublish=true --property:AppRefDir=/datadisks/disk1/work/ABD10942/p/microsoft.netcore.app.ref --property:Configuration=Debug -restore -target:Publish -verbosity:m /v:minimal /bl:/datadisks/disk1/work/ABD10942/w/B5030994/uploads/xharness-output/logs/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.binlog ./Debug_rgbarhvz.zdp.csproj
  Determining projects to restore...
  Restored /datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj (in 4 ms).

CSC : warning CS8784: Generator 'JSExportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result.
	Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly
		'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]
CSC : warning CS8784: Generator 'JSImportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result.
	Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly
		'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]
CSC : warning CS8784: Generator 'LibraryImportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result.
	Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly
		'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]

/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Program.cs(21,36):
	error CS8795: Partial method 'MyClass.GetNodeVersion()' must have an implementation part because it has accessibility modifiers. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]

Also seen on #74705 .

cc @maraf @pavelsavara

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@radical radical added arch-wasm WebAssembly architecture blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-System.Runtime.InteropServices.JavaScript test-failure labels Sep 1, 2022
@ghost
Copy link

ghost commented Sep 1, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Wasm.Build.Tests failing on multiple PRs. On #74704 it failed with:

/datadisks/disk1/work/ABD10942/w/B5030994/e/dotnet-workload/sdk/7.0.100-rc.2.22426.5/MSBuild.dll /nologo -maxcpucount -property:_IsPublishing=true --property:WasmBuildOnlyAfterPublish=true --property:AppRefDir=/datadisks/disk1/work/ABD10942/p/microsoft.netcore.app.ref --property:Configuration=Debug -restore -target:Publish -verbosity:m /v:minimal /bl:/datadisks/disk1/work/ABD10942/w/B5030994/uploads/xharness-output/logs/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.binlog ./Debug_rgbarhvz.zdp.csproj
  Determining projects to restore...
  Restored /datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj (in 4 ms).

/datadisks/disk1/work/ABD10942/w/B5030994/e/dotnet-workload/sdk/7.0.100-rc.2.22426.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(219,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]

CSC : warning CS8784: Generator 'JSExportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result.
	Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly
		'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]
CSC : warning CS8784: Generator 'JSImportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result.
	Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly
		'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]
CSC : warning CS8784: Generator 'LibraryImportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result.
	Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly
		'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]

/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Program.cs(21,36): error CS8795: Partial method 'MyClass.GetNodeVersion()' must have an implementation part because it has accessibility modifiers. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]

Also seen on #74705 .

cc @maraf @pavelsavara

Author: radical
Assignees: -
Labels:

arch-wasm, blocking-clean-ci, area-System.Runtime.InteropServices.JavaScript, test-failure

Milestone: -

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Sep 1, 2022
@radical radical removed the untriaged New issue has not been triaged by the area owner label Sep 1, 2022
@radical radical changed the title [wasm] Wasm.Build.Tests failing with Generator 'JSExportGenerator' failed to initialize.. FileNotFoundException.. Microsoft.Interop.SourceGeneration` [wasm] Wasm.Build.Tests failing with Generator 'JSExportGenerator' failed to initialize.. FileNotFoundException.. Microsoft.Interop.SourceGeneration Sep 1, 2022
@radical
Copy link
Member Author

radical commented Sep 1, 2022

@ericstj could this be related to #74897 ? This is a wasm template project being built with a rc2 sdk, and wasm-tools workload installed.

This is effectively what's being run:

  1. dotnet new wasmconsole
  2. dotnet publish -p:WasmBuildOnlyAfterPublish=true /p:AppRefDir=/datadisks/disk1/work/ABD10942/p/microsoft.netcore.app.ref /p:Configuration=Debug /nologo /v:minimal

@ericstj
Copy link
Member

ericstj commented Sep 1, 2022

Yes, you need #74943

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Sep 1, 2022
@ghost ghost added in-pr There is an active PR which will close this issue when it is merged and removed in-pr There is an active PR which will close this issue when it is merged labels Sep 1, 2022
@lewing
Copy link
Member

lewing commented Sep 2, 2022

It is a bit disheartening that #74897 landed without running a test of the JSImport generator, the wasm built tests would have indicated there was a problem.

@radical
Copy link
Member Author

radical commented Sep 2, 2022

dotnet-runtime-perf pipeline is also completely broken because of this.

@radical radical added the blocking Marks issues that we want to fast track in order to unblock other important work label Sep 2, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Sep 2, 2022
@radical radical removed blocking Marks issues that we want to fast track in order to unblock other important work blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' labels Sep 2, 2022
@ericstj
Copy link
Member

ericstj commented Sep 2, 2022

I'm pretty surprised that nothing in the PR validation caught this problem. I tried to go back and inspect the build for that PR but I cannot find it. cc @ViktorHofer
It looks like the pipeline was changed around the time my PR went up. Maybe validation was never triggered as a result and the badge showed "green" so it was merged?

@radical
Copy link
Member Author

radical commented Sep 2, 2022

The PR didn't run any pipelines at all - https://github.com/dotnet/runtime/pull/74897/checks . Probably because of the recent CI issues.

@ericstj
Copy link
Member

ericstj commented Sep 2, 2022

Yeah, that's my working theory. I hope we have some coverage in place that we produce a ref-pack that can be compiled against. I could imagine a gap here though, and it's something that ought to be filled.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants