Skip to content

Use managed ntlm on linux-bionic - #95274

Merged
rzikm merged 8 commits into
dotnet:mainfrom
rzikm:93104-managed-ntlm-bionic
Nov 29, 2023
Merged

Use managed ntlm on linux-bionic#95274
rzikm merged 8 commits into
dotnet:mainfrom
rzikm:93104-managed-ntlm-bionic

Conversation

@rzikm

@rzikmrzikm commented Nov 27, 2023

Copy link
Copy Markdown
Member

Fixes#93104
Fixes#87665

@ghost

Copy link
Copy Markdown

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

Issue Details

Fixes #93104.

Author:rzikm
Assignees:-
Labels:

area-System.Net.Security

Milestone:-

@rzikm

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-linuxbionic

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@wfurtwfurt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@rzikm

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-linuxbionic

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@rzikm

Copy link
Copy Markdown
MemberAuthor

https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-95274-merge-c4a195fd94144e029e/System.Net.Security.Unit.Tests/1/console.d9c12e57.log?helixlogtype=result

[05:14:46] info: Running command System.Net.Security.Unit.Tests.sh took 2.6011403 seconds
[05:14:46] dbug: Exit code: 0
Std out:
Discovering: System.Net.Security.Unit.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Net.Security.Unit.Tests (found 75 of 78 test cases)
Starting: System.Net.Security.Unit.Tests (parallel test collections = on, max threads = 8)
System.Net.Security.Tests.NegotiateAuthenticationTests.Package_Unsupported_NTLM [SKIP]
Condition(s) not met: "IsNtlmUnavailable"
Finished: System.Net.Security.Unit.Tests
=== TEST EXECUTION SUMMARY ===
System.Net.Security.Unit.Tests Total: 97, Errors: 0, Failed: 0, Skipped: 1, Time: 1.251s

CI looks good

@bartonjsbartonjs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It should either be StartsWith("linux-bionic-") or, if it's sometimes Equals and sometimes has a hyphen, should change to regex. But StartsWith ending with an "unterminated" string isn't good in production code.

@ghostghost added the needs-author-action An issue or pull request that requires more info or actions from the author. label Nov 28, 2023

@filipnavarafilipnavara left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM in general. I agree with the StartsWith("linux-bionic-") comment.

@MichalStrehovsky

Copy link
Copy Markdown
Member

Can this test exclusion be also removed? Looks like it has been there since Bionic was initially added.

<ProjectExclusionsInclude="$(MSBuildThisFileDirectory)System.Net.Security\tests\FunctionalTests\System.Net.Security.Tests.csproj" />

@ghostghost removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Nov 29, 2023
@rzikm

Copy link
Copy Markdown
MemberAuthor

Can this test exclusion be also removed? Looks like it has been there since Bionic was initially added.

I don't think this is related to this change. NTLM tests are in the UnitTests project, not FunctionalTests.

@rzikm

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-linuxbionic

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@rzikm

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-linuxbionic

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Comment threadsrc/libraries/Common/tests/System/Net/Capability.Security.Unix.cs Outdated
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
@rzikm

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-linuxbionic

@rzikm
rzikm requested a review from bartonjsNovember 29, 2023 13:03
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@rzikm

Copy link
Copy Markdown
MemberAuthor

CI looks good https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-95274-merge-01c93e7798af48e0a3/System.Net.Security.Unit.Tests/1/console.a6959422.log?helixlogtype=result

[13:52:45] dbug: Exit code: 0
Std out:
Discovering: System.Net.Security.Unit.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Net.Security.Unit.Tests (found 75 of 78 test cases)
Starting: System.Net.Security.Unit.Tests (parallel test collections = on, max threads = 1)
System.Net.Security.Tests.NegotiateAuthenticationTests.Package_Unsupported_NTLM [SKIP]
Condition(s) not met: "IsNtlmUnavailable"
Finished: System.Net.Security.Unit.Tests
=== TEST EXECUTION SUMMARY ===
System.Net.Security.Unit.Tests Total: 97, Errors: 0, Failed: 0, Skipped: 1, Time: 4.565s

@rzikm

Copy link
Copy Markdown
MemberAuthor

All CI failures are known build errors.

Sign up for freeto 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.

[mono][tests] The type initializer for 'NetSecurityNative' threw an exception Things needing System.Net.Security.Native may not work on Bionic

9 participants

@rzikm@MichalStrehovsky@akoeplinger@filipnavara@am11@jkotas@bartonjs@wfurt@karelz