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

React to HW-api changes #46

Merged
merged 4 commits into from
Dec 25, 2018
Merged

React to HW-api changes #46

merged 4 commits into from
Dec 25, 2018

Conversation

gfoidl
Copy link
Owner

@gfoidl gfoidl commented Dec 25, 2018

The HW-apis changed for netcoreapp3.0, this is the reaction for this.

Fixes #15

@gfoidl gfoidl added the simd label Dec 25, 2018
@gfoidl gfoidl added this to the v1.0.0 milestone Dec 25, 2018
@gfoidl gfoidl self-assigned this Dec 25, 2018
Copy link
Owner Author

@gfoidl gfoidl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the #ifs look a bit messy. Maybe separte to files?

.azure/pipelines/ci.yml Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Dec 25, 2018

Codecov Report

Merging #46 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #46    +/-   ##
======================================
  Coverage     100%   100%            
======================================
  Files          10     10            
  Lines        2068   2207   +139     
======================================
+ Hits         2068   2207   +139
Impacted Files Coverage Δ
...idl.Base64/Internal/Base64Encoder/Base64Encoder.cs 100% <100%> (ø) ⬆️
source/gfoidl.Base64/Internal/Avx2Helper.cs 100% <100%> (ø) ⬆️
...e64/Internal/Base64Encoder/Base64Encoder.Encode.cs 100% <100%> (ø) ⬆️
...se64/Internal/Base64UrlEncoder/Base64UrlEncoder.cs 100% <100%> (ø) ⬆️
...e64/Internal/Base64Encoder/Base64Encoder.Decode.cs 100% <100%> (ø) ⬆️
source/gfoidl.Base64/Internal/Base64EncoderImpl.cs 100% <100%> (ø) ⬆️
...ternal/Base64UrlEncoder/Base64UrlEncoder.Encode.cs 100% <100%> (ø) ⬆️
...ternal/Base64UrlEncoder/Base64UrlEncoder.Decode.cs 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c8c69f...4487852. Read the comment docs.

@gfoidl
Copy link
Owner Author

gfoidl commented Dec 25, 2018

windows builds fail due

Test run for D:\a\1\s\tests\gfoidl.Base64.Tests\bin\Release\net471\gfoidl.Base64.Tests.dll(.NETFramework,Version=v4.7.1)
Microsoft (R) Test Execution Command Line Tool Version 15.9.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
Failed   Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(1)
Error Message:
   Expected string length 119 but was 120. Strings differ at index 100.
  Expected: "...e64 standard. It must be >= 4.\r\nParametername: encodedLength"
  But was:  "...e64 standard. It must be >= 4.\r\nParameter name: encodedLength"
  ---------------------------------------------------------^

Stack Trace:
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.<>c__DisplayClass4_0.<Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange>b__1() in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 101
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(Int32 encodedLength) in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 102

Failed   Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(2)
Error Message:
   Expected string length 119 but was 120. Strings differ at index 100.
  Expected: "...e64 standard. It must be >= 4.\r\nParametername: encodedLength"
  But was:  "...e64 standard. It must be >= 4.\r\nParameter name: encodedLength"
  ---------------------------------------------------------^

Stack Trace:
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.<>c__DisplayClass4_0.<Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange>b__1() in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 101
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(Int32 encodedLength) in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 102

Failed   Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(3)
Error Message:
   Expected string length 119 but was 120. Strings differ at index 100.
  Expected: "...e64 standard. It must be >= 4.\r\nParametername: encodedLength"
  But was:  "...e64 standard. It must be >= 4.\r\nParameter name: encodedLength"
  ---------------------------------------------------------^

Stack Trace:
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.<>c__DisplayClass4_0.<Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange>b__1() in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 101
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(Int32 encodedLength) in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 102

Failed   Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(1)
Error Message:
   Expected string length 119 but was 120. Strings differ at index 100.
  Expected: "...e64 standard. It must be >= 4.\r\nParametername: encodedLength"
  But was:  "...e64 standard. It must be >= 4.\r\nParameter name: encodedLength"
  ---------------------------------------------------------^

Stack Trace:
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.<>c__DisplayClass4_0.<Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange>b__1() in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 101
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(Int32 encodedLength) in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 102

Failed   Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(2)
Error Message:
   Expected string length 119 but was 120. Strings differ at index 100.
  Expected: "...e64 standard. It must be >= 4.\r\nParametername: encodedLength"
  But was:  "...e64 standard. It must be >= 4.\r\nParameter name: encodedLength"
  ---------------------------------------------------------^

Stack Trace:
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.<>c__DisplayClass4_0.<Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange>b__1() in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 101
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(Int32 encodedLength) in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 102

Failed   Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(3)
Error Message:
   Expected string length 119 but was 120. Strings differ at index 100.
  Expected: "...e64 standard. It must be >= 4.\r\nParametername: encodedLength"
  But was:  "...e64 standard. It must be >= 4.\r\nParameter name: encodedLength"
  ---------------------------------------------------------^

Stack Trace:
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.<>c__DisplayClass4_0.<Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange>b__1() in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 101
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetDecodedLength`1.Issue_32_EncodedLength_is_lt_4___throws_ArgumentOutOfRange(Int32 encodedLength) in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetDecodedLength.cs:line 102

Failed   EncodedLength_is_negative___throws_ArgumentOutOfRange
Error Message:
   Expected string length 119 but was 120. Strings differ at index 100.
  Expected: "...e64 standard. It must be >= 4.\r\nParametername: encodedLength"
  But was:  "...e64 standard. It must be >= 4.\r\nParameter name: encodedLength"
  ---------------------------------------------------------^

Stack Trace:
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetMaxDecodedLength.<>c__DisplayClass0_0.<EncodedLength_is_negative___throws_ArgumentOutOfRange>b__1() in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetMaxDecodedLength.cs:line 26
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at gfoidl.Base64.Tests.Internal.Base64EncoderTests.GetMaxDecodedLength.EncodedLength_is_negative___throws_ArgumentOutOfRange() in D:\a\1\s\tests\gfoidl.Base64.Tests\Internal\Base64EncoderTests\GetMaxDecodedLength.cs:line 27

@gfoidl
Copy link
Owner Author

gfoidl commented Dec 25, 2018

windows build fail due

Test run for D:\a\1\s\tests\gfoidl.Base64.Tests\bin\Release\net471\gfoidl.Base64.Tests.dll(.NETFramework,Version=v4.7.1)
Microsoft (R) Test Execution Command Line Tool Version 15.9.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
Failed   Default___base64_is_used
Error Message:
 System.TypeInitializationException : The type initializer for 'Coverlet.Core.Instrumentation.Tracker.gfoidl.Base64_ca953f4c-294c-4af4-87e9-cce811fc9369' threw an exception.
  ----> System.IO.FileNotFoundException : Could not load file or assembly 'System.Runtime.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Stack Trace:
   at Coverlet.Core.Instrumentation.Tracker.gfoidl.Base64_ca953f4c-294c-4af4-87e9-cce811fc9369.RecordHit(Int32 )
   at gfoidl.Base64.Base64.get_Default()
   at gfoidl.Base64.Tests.Base64Tests.Default`1.Default___base64_is_used() in D:\a\1\s\tests\gfoidl.Base64.Tests\Base64Tests\Default.cs:line 16
--FileNotFoundException
   at Coverlet.Core.Instrumentation.Tracker.gfoidl.Base64_ca953f4c-294c-4af4-87e9-cce811fc9369..cctor()
Failed   Default_with_buffers___base64_is_used
Error Message:
 System.TypeInitializationException : The type initializer for 'Coverlet.Core.Instrumentation.Tracker.gfoidl.Base64_ca953f4c-294c-4af4-87e9-cce811fc9369' threw an exception.
  ----> System.IO.FileNotFoundException : Could not load file or assembly 'System.Runtime.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Stack Trace:
   at Coverlet.Core.Instrumentation.Tracker.gfoidl.Base64_ca953f4c-294c-4af4-87e9-cce811fc9369.RecordHit(Int32 )
   at gfoidl.Base64.Base64.get_Default()
   at gfoidl.Base64.Tests.Base64Tests.Default`1.Default_with_buffers___base64_is_used() in D:\a\1\s\tests\gfoidl.Base64.Tests\Base64Tests\Default.cs:line 28
--FileNotFoundException
   at Coverlet.Core.Instrumentation.Tracker.gfoidl.Base64_ca953f4c-294c-4af4-87e9-cce811fc9369..cctor()
...

@gfoidl
Copy link
Owner Author

gfoidl commented Dec 25, 2018

For the build failure of #46 (comment):
it works with coverlet 1.3.0, but not with coverlet 1.4.0 (latest as of now) -> coverlet-coverage/coverlet#274

@gfoidl
Copy link
Owner Author

gfoidl commented Dec 25, 2018

Will resolve #46 (comment) in a new PR, to keep the changes clean.

@gfoidl gfoidl merged commit 2534fb9 into master Dec 25, 2018
@gfoidl gfoidl deleted the coreclr-reaction branch December 25, 2018 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants