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

Fix all remaining System.Security.Cryptography.Algorithms test suite crashes. #48432

Merged
2 commits merged into from
Feb 18, 2021

Conversation

jkoritzinsky
Copy link
Member

With this + PR #48348, the test suite runs to completion and reports the following results:

Tests run: 2527 Passed: 1285 Inconclusive: 0 Failed: 1227 Ignored: 7

So we've got a ways to go to get things passing, but now we can easily track it at least for this assembly.

…crashes.

With this + PR dotnet#48348, the test suite runs to completion and reports the following results:

> Tests run: 2527 Passed: 1285 Inconclusive: 0 Failed: 1227 Ignored: 7

So we've got a ways to go to get things passing, but now we can easily track it at least for this assembly.
@ghost
Copy link

ghost commented Feb 18, 2021

Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks
See info in area-owners.md if you want to be subscribed.

Issue Details

With this + PR #48348, the test suite runs to completion and reports the following results:

Tests run: 2527 Passed: 1285 Inconclusive: 0 Failed: 1227 Ignored: 7

So we've got a ways to go to get things passing, but now we can easily track it at least for this assembly.

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Security

Milestone: 6.0.0

@@ -111,7 +111,7 @@ private void ImportKey(ReadOnlySpan<byte> key)

if (plaintextBytesWritten != plaintext.Length)
{
Debug.Fail($"GCM decrypt wrote {plaintextBytesWritten} of {plaintext.Length} bytes.");
// Debug.Fail($"GCM decrypt wrote {plaintextBytesWritten} of {plaintext.Length} bytes.");
Copy link
Member Author

Choose a reason for hiding this comment

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

I'll work on trying to isolate and fix this issue, but in the meantime this is the easiest way to keep this Debug.Fail method from taking down the test process.

Copy link
Member

Choose a reason for hiding this comment

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

Unlike ECB and CBC, GCM produces one byte of output for one byte of input. Goodness isn't happening if this assert fails (and tests seemingly shouldn't be passing, unless they got the data from elsewhere having depended on this assert)

Copy link
Member

Choose a reason for hiding this comment

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

If this is needed, please don't merge without creating an issue to put it back.

Copy link
Member Author

@jkoritzinsky jkoritzinsky Feb 18, 2021

Choose a reason for hiding this comment

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

Oh the tests aren’t passing. But this commented out assert allows them to run and fail and have XUnit record the issue.

Copy link
Member Author

Choose a reason for hiding this comment

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

They fail from the exception that immediately follows this assert.

Copy link
Member Author

Choose a reason for hiding this comment

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

Tracking issue for re-enabling the assert is here: #48471

@elinor-fung
Copy link
Member

we can easily track it

Is this suite in some state where certain classes/groupings of tests pass now (with your other PR)?

I added System.Security.Cryptography.Algorithms to #45740. I was thinking we could break down the suites listed there into their test classes/collections (or whatever break-down makes sense for each suite) and mark things off as we get them working. Thoughts?

@jkoritzinsky
Copy link
Member Author

There's some suites that fully pass and others that are partial. I'll try to pull together a list for the issue based on this PR.

@jkoritzinsky
Copy link
Member Author

@elinor-fung I've updated the table with the list of test suites and added a link to the program I used to get the list so we can use it for the other assemblies and as we complete the test suites.

@ghost
Copy link

ghost commented Feb 18, 2021

Hello @jkoritzinsky!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 293ccda into dotnet:master Feb 18, 2021
@jkoritzinsky jkoritzinsky deleted the android-fix-algos-test-crash branch February 18, 2021 20:29
@ghost ghost locked as resolved and limited conversation to collaborators Mar 20, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants