Skip to content

Fix nullability context for typedefs generator #200

Fix nullability context for typedefs generator

Fix nullability context for typedefs generator #200

GitHub Actions / test results (ubuntu-latest, node18.x, Release) failed Oct 7, 2023 in 1s

test results (ubuntu-latest, node18.x, Release) ❌

Tests failed

Report Passed Failed Skipped Time
test/dotnet6-node18.x-Release/_fv-az485-822_2023-10-07_03_26_21.trx 40✅ 1❌ 4⚪ 83s
test/dotnet8-node18.x-Release/_fv-az485-822_2023-10-07_03_27_34.trx 65✅ 1❌ 4⚪ 110s

❌ test/dotnet6-node18.x-Release/_fv-az485-822_2023-10-07_03_26_21.trx

45 tests were completed in 83s with 40 passed, 1 failed and 4 skipped.

Test suite Passed Failed Skipped Time
Microsoft.JavaScript.NodeApi.Test.GCTests 1⚪ 1ms
Microsoft.JavaScript.NodeApi.Test.HostedClrTests 28✅ 38s
Microsoft.JavaScript.NodeApi.Test.JSProjectTests 3✅ 1❌ 42s
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests 3⚪ 3ms
Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests 9✅ 33ms

✅ Microsoft.JavaScript.NodeApi.Test.GCTests

⚪ GCTest

✅ Microsoft.JavaScript.NodeApi.Test.HostedClrTests

✅ Test(id: "edgejs-perf/measure-latency")
✅ Test(id: "napi-dotnet-init/custom_export")
✅ Test(id: "napi-dotnet-init/custom_init")
✅ Test(id: "napi-dotnet/async_methods")
✅ Test(id: "napi-dotnet/complex_types")
✅ Test(id: "napi-dotnet/delegates")
✅ Test(id: "napi-dotnet/dynamic_generics")
✅ Test(id: "napi-dotnet/dynamic_invoke")
✅ Test(id: "napi-dotnet/dynamic_optional_params")
✅ Test(id: "napi-dotnet/errors")
✅ Test(id: "napi-dotnet/hello")
✅ Test(id: "napi-dotnet/module_class")
✅ Test(id: "napi-dotnet/multi_instance")
✅ Test(id: "napi-dotnet/streams")
✅ Test(id: "node-addon-api/basic_types/array")
✅ Test(id: "node-addon-api/basic_types/boolean")
✅ Test(id: "node-addon-api/basic_types/number")
✅ Test(id: "node-addon-api/basic_types/value")
✅ Test(id: "node-addon-api/object/delete_property")
✅ Test(id: "node-addon-api/object/finalizer")
✅ Test(id: "node-addon-api/object/get_property")
✅ Test(id: "node-addon-api/object/has_own_property")
✅ Test(id: "node-addon-api/object/has_property")
✅ Test(id: "node-addon-api/object/object_freeze_seal")
✅ Test(id: "node-addon-api/object/object")
✅ Test(id: "node-addon-api/object/set_property")
✅ Test(id: "node-addon-api/object/subscript_operator")
✅ Test(id: "node-addon-api/testUtil")

❌ Microsoft.JavaScript.NodeApi.Test.JSProjectTests

❌ Test(id: "projects/js-cjs/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/js-cjs-ts-build.log
✅ Test(id: "projects/js-esm/test")
✅ Test(id: "projects/ts-cjs/test")
✅ Test(id: "projects/ts-esm/test")

✅ Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests

⚪ NodejsErrorPropagation
⚪ NodejsStart
⚪ NodejsUnhandledRejection

✅ Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests

✅ GenerateEnum
✅ GenerateGenericClass
✅ GenerateGenericDelegate
✅ GenerateGenericInterface
✅ GenerateSimpleClass
✅ GenerateSimpleDelegate
✅ GenerateSimpleInterface
✅ GenerateSimpleMethod
✅ GenerateSimpleProperty

❌ test/dotnet8-node18.x-Release/_fv-az485-822_2023-10-07_03_27_34.trx

70 tests were completed in 110s with 65 passed, 1 failed and 4 skipped.

Test suite Passed Failed Skipped Time
Microsoft.JavaScript.NodeApi.Test.GCTests 1⚪ 1ms
Microsoft.JavaScript.NodeApi.Test.HostedClrTests 28✅ 34s
Microsoft.JavaScript.NodeApi.Test.JSProjectTests 3✅ 1❌ 38s
Microsoft.JavaScript.NodeApi.Test.NativeAotTests 25✅ 36s
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests 3⚪ 3ms
Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests 9✅ 25ms

✅ Microsoft.JavaScript.NodeApi.Test.GCTests

⚪ GCTest

✅ Microsoft.JavaScript.NodeApi.Test.HostedClrTests

✅ Test(id: "edgejs-perf/measure-latency")
✅ Test(id: "napi-dotnet-init/custom_export")
✅ Test(id: "napi-dotnet-init/custom_init")
✅ Test(id: "napi-dotnet/async_methods")
✅ Test(id: "napi-dotnet/complex_types")
✅ Test(id: "napi-dotnet/delegates")
✅ Test(id: "napi-dotnet/dynamic_generics")
✅ Test(id: "napi-dotnet/dynamic_invoke")
✅ Test(id: "napi-dotnet/dynamic_optional_params")
✅ Test(id: "napi-dotnet/errors")
✅ Test(id: "napi-dotnet/hello")
✅ Test(id: "napi-dotnet/module_class")
✅ Test(id: "napi-dotnet/multi_instance")
✅ Test(id: "napi-dotnet/streams")
✅ Test(id: "node-addon-api/basic_types/array")
✅ Test(id: "node-addon-api/basic_types/boolean")
✅ Test(id: "node-addon-api/basic_types/number")
✅ Test(id: "node-addon-api/basic_types/value")
✅ Test(id: "node-addon-api/object/delete_property")
✅ Test(id: "node-addon-api/object/finalizer")
✅ Test(id: "node-addon-api/object/get_property")
✅ Test(id: "node-addon-api/object/has_own_property")
✅ Test(id: "node-addon-api/object/has_property")
✅ Test(id: "node-addon-api/object/object_freeze_seal")
✅ Test(id: "node-addon-api/object/object")
✅ Test(id: "node-addon-api/object/set_property")
✅ Test(id: "node-addon-api/object/subscript_operator")
✅ Test(id: "node-addon-api/testUtil")

❌ Microsoft.JavaScript.NodeApi.Test.JSProjectTests

❌ Test(id: "projects/js-cjs/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/js-cjs-ts-build.log
✅ Test(id: "projects/js-esm/test")
✅ Test(id: "projects/ts-cjs/test")
✅ Test(id: "projects/ts-esm/test")

✅ Microsoft.JavaScript.NodeApi.Test.NativeAotTests

✅ Test(id: "edgejs-perf/measure-latency")
✅ Test(id: "napi-dotnet-init/custom_export")
✅ Test(id: "napi-dotnet-init/custom_init")
✅ Test(id: "napi-dotnet/async_methods")
✅ Test(id: "napi-dotnet/complex_types")
✅ Test(id: "napi-dotnet/delegates")
✅ Test(id: "napi-dotnet/errors")
✅ Test(id: "napi-dotnet/hello")
✅ Test(id: "napi-dotnet/module_class")
✅ Test(id: "napi-dotnet/multi_instance")
✅ Test(id: "napi-dotnet/streams")
✅ Test(id: "node-addon-api/basic_types/array")
✅ Test(id: "node-addon-api/basic_types/boolean")
✅ Test(id: "node-addon-api/basic_types/number")
✅ Test(id: "node-addon-api/basic_types/value")
✅ Test(id: "node-addon-api/object/delete_property")
✅ Test(id: "node-addon-api/object/finalizer")
✅ Test(id: "node-addon-api/object/get_property")
✅ Test(id: "node-addon-api/object/has_own_property")
✅ Test(id: "node-addon-api/object/has_property")
✅ Test(id: "node-addon-api/object/object_freeze_seal")
✅ Test(id: "node-addon-api/object/object")
✅ Test(id: "node-addon-api/object/set_property")
✅ Test(id: "node-addon-api/object/subscript_operator")
✅ Test(id: "node-addon-api/testUtil")

✅ Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests

⚪ NodejsErrorPropagation
⚪ NodejsStart
⚪ NodejsUnhandledRejection

✅ Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests

✅ GenerateEnum
✅ GenerateGenericClass
✅ GenerateGenericDelegate
✅ GenerateGenericInterface
✅ GenerateSimpleClass
✅ GenerateSimpleDelegate
✅ GenerateSimpleInterface
✅ GenerateSimpleMethod
✅ GenerateSimpleProperty

Annotations

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/js-cjs/test")

Failed test found in:
  test/dotnet6-node18.x-Release/_fv-az485-822_2023-10-07_03_26_21.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/js-cjs-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/js-cjs-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/js-cjs/test")

Failed test found in:
  test/dotnet8-node18.x-Release/_fv-az485-822_2023-10-07_03_27_34.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/js-cjs-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/js-cjs-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40
   at InvokeStub_JSProjectTests.Test(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)