1. 10 6月, 2022 17 次提交
    • A
      [wasm][nodejs] Ensure that stdout/stderr have been flushed out before exiting (#70416) · c3618578
      Ankit Jain 提交于
      When the results xml is large, and we are writing the base64
      representation in one line, `node` can exit before all the output gets
      flushed out. This results in xharness getting an incomplete
      `STARTRESULTXML <len> <base64> ... ` with missing `ENDRESULTXML`, thus
      no `testResults.xml` is generated.
      
      This can be seen in the case of `Microsoft.Extensions.Primitives.Tests`
      which has xml ~140KB, and `System.Memory.Tests` which has a xml ~13MB.
      
      So, wait for the two streams to be flushed out, with a timeout of 3secs.
      
      - use the `drain` event only if `stream.write('')` returns `false`
      * Address review feedback @kg, @maraf
      c3618578
    • T
      Add basic testing infrastructure in NativeAOT (port from dotnet/linker) (#70408) · ed1595e2
      Tlakaelel Axayakatl Ceja 提交于
      Add basic testing infrastructure in NativeAOT (port from dotnet/linker)
      
      - Port the Mono.Linker.Tests* projects from dotnet/linker
      - Add the new projects to .editorconfig so they remain under the dotnet/linker format instead of dotnet/runtime
      - clr.toolstests subset now runs the Mono.Linker.Tests infrastructure
      - Make DisplayNameHelpers a public class so it can be used by the test infrastructure
      - Add a couple of simple test cases (Dataflow and Requires) along with a Repro test, just like the repro project the repro test serves prototyping purposes
      - Adds ProducedBy.NativeAOT to be able to represent differences between dotnet/linker and NativeAOT (either because of a bug or because NativeAOT correctly produces additional warnings)
      - Use MSBuild properties instead of trying to figure out with linker paths
      ed1595e2
    • B
      61ca87cb
    • I
      a0662e38
    • A
      Merge pull request #70401 from dotnet/darc-main-fe02c49f-0b42-470f-be36-18cf3ef8aacb · 4a79e069
      Andy Gocke 提交于
      [main] Update dependencies from dotnet/linker
      4a79e069
    • S
      Set `UnusedValue` correctly for the operands of `ARR_ADDR`/`BOX` (#70498) · 1bebb147
      SingleAccretion 提交于
      * Add a test
      
      * Fix the issue
      1bebb147
    • K
      Modify thread pool thread counting to be a bit more defensive (#70478) · 1adda4ec
      Koundinya Veluri 提交于
      * Modify thread pool thread counting to be a bit more defensive
      
      - An unexpected underflow in one or more thread counts can lead to a large number of threads to be created continually
      - Prevented underflows in changes to thread counts, such that following an unexpected underflow, subsequent paired increments and decrements would avoid repeating the underflow
      - Verified by creating an unexpected underflow in the debugger
      1adda4ec
    • S
    • S
      Enable IDE0110 (Remove unnecessary discard) (#70500) · daffba6b
      Stephen Toub 提交于
      daffba6b
    • A
      [wasm] Fix passing `shouldContinueOnError` through for the library tests (#70494) · b603a5de
      Ankit Jain 提交于
      The new `Threading*` CI jobs on `runtime-wasm` use `shouldContinueOnError: false` because the tests are known to be unstable right now. But they were not getting correctly forwarded to the base templates.
      b603a5de
    • S
      Support immutable types with configuration binding (#67258) · d78f3648
      Steve Dunn 提交于
      Merging. Thanks @SteveDunn for your contribution.
      d78f3648
    • D
      [main] Update dependencies from dotnet/arcade (#69643) · 77a8d3c8
      dotnet-maestro[bot] 提交于
      * Update dependencies from https://github.com/dotnet/arcade build 20220519.3
      
      Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
       From Version 2.5.1-beta.22255.2 -> To Version 2.5.1-beta.22269.3
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220523.1
      
      Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
       From Version 2.5.1-beta.22255.2 -> To Version 2.5.1-beta.22273.1
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220524.3
      
      Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
       From Version 2.5.1-beta.22255.2 -> To Version 2.5.1-beta.22274.3
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220524.7
      
      Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
       From Version 2.5.1-beta.22255.2 -> To Version 2.5.1-beta.22274.7
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220525.1
      
      Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
       From Version 2.5.1-beta.22255.2 -> To Version 2.5.1-beta.22275.1
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220525.2
      
      Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
       From Version 2.5.1-beta.22255.2 -> To Version 2.5.1-beta.22275.2
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220526.1
      
      Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 7.0.0-beta.22255.2 -> To Version 7.0.0-beta.22276.1
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220530.2
      
      Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 7.0.0-beta.22255.2 -> To Version 7.0.0-beta.22280.2
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220531.1
      
      Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 7.0.0-beta.22255.2 -> To Version 7.0.0-beta.22281.1
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220601.2
      
      Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 7.0.0-beta.22255.2 -> To Version 7.0.0-beta.22301.2
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220606.1
      
      Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 7.0.0-beta.22255.2 -> To Version 7.0.0-beta.22306.1
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220606.2
      
      Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 7.0.0-beta.22255.2 -> To Version 7.0.0-beta.22306.2
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220608.5
      
      Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 7.0.0-beta.22255.2 -> To Version 7.0.0-beta.22308.5
      Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
      Co-authored-by: NPremek Vysoky <premek.vysoky@microsoft.com>
      Co-authored-by: NLarry Ewing <lewing@microsoft.com>
      77a8d3c8
    • A
      Manually skip IL2118 · a3a55605
      Andy Gocke 提交于
      a3a55605
    • T
      Fix Crossgen2 PDB generator (#70407) · a325e52e
      Tomáš Rylek 提交于
      * Fix Crossgen2 PDB generator
      
      During my perf investigation work I have found out that PDB emitter
      in Crossgen2 is broken. I tracked this down to the change
      
      https://github.com/dotnet/runtime/commit/fdf6485c800ec580656d7491795e10881d493afb#diff-24e48862e3b82f52e7fa04f22700b1c976a012bfeb08a246406f4e5ec579699b
      
      that caused two behavioral changes in the PDB emitter:
      
      1) The logic around QueryPDBNameEx got refactored to use a char[]
      instead of a StringBuilder and that silently caused _pdbFilePath
      to be set to the string "System.Char[]" instead of the actual path
      (cf PdbWriter.cs#221 in the quoted commit).
      
      2) The COM wrapper refactoring ended up bumping the refcount
      on the _ngenWriter by one so that it never got actually closed
      and properly flushed; due to this the resulting PDB was invalid.
      
      Thanks
      
      Tomas
      a325e52e
    • J
      JIT: Unspecialize handle types after arithmetic ops in VN (#70452) · 9080239f
      Jakob Botsch Nielsen 提交于
      VN was retaining the precise handle types when applying arithmetic
      operations to handles. This meant that we could not rely on handles of
      types like GTF_ICON_METHOD_HDL actually containing an embedded method
      handle after constant propagation.
      
      This change generalizes the handle type to GTF_ICON_CONST_PTR or
      GTF_ICON_GLOBAL_PTR whenever VN does anything that semantically
      "unassociates" the icon from the specialized handle type.
      9080239f
    • A
      [wasm] fix test failing when trimming · 5a73676b
      Ankit Jain 提交于
      ```
      [06:37:05] fail: [FAIL] System.Diagnostics.Tests.StopwatchTests.DebuggerAttributesValid
      [06:37:05] info: System.InvalidOperationException : Expected one DebuggerDisplayAttribute on System.Diagnostics.Stopwatch.
      [06:37:05] info:    at System.Diagnostics.DebuggerAttributes.ValidateDebuggerDisplayReferences(Object obj)
      [06:37:05] info:    at System.Diagnostics.Tests.StopwatchTests.DebuggerAttributesValid()
      [06:37:05] info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , Span`1 , BindingFlags )
      ```
      
      Fixed by preserving the `DebuggerDisplayAttribute`.
      5a73676b
    • A
      [wasm] Disable all trim warnings for tests, when using · 1873182e
      Ankit Jain 提交于
      .. `EnableAggressiveTrimming=true`, since the tests are not expected to
      be trim-safe.
      
      Based on @vitek-karas' suggestion.
      1873182e
  2. 09 6月, 2022 23 次提交