Skip to content

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Jun 30, 2021

  1. fixes regression Regression in 16.10.0 release results in System.BadImageFormatException #11620
  2. re-enables --optimize- testing for some key test suites in tests/fsharp/core. If this was enabled we would have avoided this regression. It used to be enabled a long time ago but somewhere along the way we dropped it.
  3. fixes a bug with debug-code for genericmeasures that was revealed through (2)

Note that because of slow compilation speeds in repeatedly invoking the external fsc process in tests/fsharp/core tests this will add 5min or so to the execution of the FSharpSuite tests, depending on the speed of your system. We should move this test suite to use in-memory compilation via FCS rather than compilation via the .NET SDK.

@TIHan
Copy link
Contributor

TIHan commented Jun 30, 2021

@jonsequitur should we try to put this fix into servicing for 16.10?

@dsyme
Copy link
Contributor Author

dsyme commented Jun 30, 2021

Two failing tests:

2021-06-30T15:34:59.7336691Z   Failed innerpoly-GENERATED_SIGNATURE [2 s]
2021-06-30T15:56:12.3427046Z   Failed unitsOfMeasure [4 s]

The first is benign, some mistak in signature printing. For the second I may separate out the fix for units of measure found via the additional testing

@dsyme
Copy link
Contributor Author

dsyme commented Jun 30, 2021

@TIHan @jonsequitur I strongly expect we'll need this as a servicing fix. The bug would have been caught by our existing test suite if the --optimize- code generation had been enabled for this chunk of our testing. So I expect it will occur in user code in debug mode.

@dsyme dsyme merged commit 692eaa4 into dotnet:main Jul 1, 2021
@dsyme
Copy link
Contributor Author

dsyme commented Jul 1, 2021

@TIHan @jonsequitur Will leave the servicing fix and branch propagation in your hands :)

vzarytovskii pushed a commit that referenced this pull request Jul 1, 2021
dsyme added a commit that referenced this pull request Aug 12, 2021
* fix 11620

* reinstate debug mode testing

* remove assert in debug code

* merge main

* Update IlxGen.fs

* Update IlxGen.fs

* Update FSharp.Compiler.Service.Tests.fsproj

* Update FSharp.Test.Utilities.fsproj

* Update FSharp.Compiler.Service.Tests.fsproj

* Update FSharp.Compiler.Service.Tests.fsproj

* Update tests.fs

* fix test

* add extra tests

Co-authored-by: Don Syme <donsyme@fastmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants