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

update version of SqlClient used by sql cache #2006

Merged
merged 1 commit into from
Jul 16, 2019

Conversation

analogrelay
Copy link

I also added a script to run the db tests (including re-creating database assets as necessary). And I added a slnf for caching.

NOTE: There is an issue in Microsoft.Data.SqlClient with transitive references: dotnet/SqlClient#137 . To mitigate this, I've added a direct reference from the SqlCache test project to Microsoft.Data.SqlClient. As long as the linked issue is resolved by RTM (and we update to the RTM, which we plan to do) we can remove that hack.

Also, EnvironmentVariableSkipConditionAttribute.SkipOnMatch seems to behave completely opposite to how it's written... I think the confusion stems from ITestCondition.IsMet being intended to return true when the test should be run (actual behavior) rather than when the test should be skipped (presumed behavior).

  • Ran the database tests using the new build:
Table and index were created successfully.
Test run for C:\Code\aspnet\Extensions\artifacts\bin\Microsoft.Extensions.Caching.SqlServer.Tests\Debug\netcoreapp3.0\Microsoft.Extensions.Caching.SqlServer.Tests.dll(.NETCoreApp,Version=v3.0)
Microsoft (R) Test Execution Command Line Tool Version 16.0.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

Total tests: 28. Passed: 28. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 1.4260 Seconds
Test run for C:\Code\aspnet\Extensions\artifacts\bin\Microsoft.Extensions.Caching.SqlServer.Tests\Debug\net472\Microsoft.Extensions.Caching.SqlServer.Tests.dll(.NETFramework,Version=v4.7.2)
Microsoft (R) Test Execution Command Line Tool Version 16.0.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

Total tests: 28. Passed: 28. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 3.0087 Seconds

@analogrelay analogrelay added this to the 3.0.0-preview8 milestone Jul 10, 2019
@analogrelay analogrelay requested review from Tratcher and a team as code owners July 10, 2019 21:09
/// </summary>
public bool SkipOnMatch { get; set; } = true;
public bool RunOnMatch { get; set; } = true;
Copy link
Author

Choose a reason for hiding this comment

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

The behavior of this property doesn't at all match the old name, so I fixed it.

@analogrelay
Copy link
Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@analogrelay
Copy link
Author

Got stale and I want a refreshed build before merging :)

@analogrelay analogrelay merged commit b1ff0d9 into master Jul 16, 2019
@analogrelay analogrelay deleted the anurse/1992-update-sqlclient branch July 16, 2019 21:42
JunTaoLuo pushed a commit to dotnet/aspnetcore that referenced this pull request Feb 12, 2020
JunTaoLuo pushed a commit to dotnet/aspnetcore that referenced this pull request Feb 15, 2020
maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Mar 11, 2020
maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Mar 11, 2020
maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Mar 27, 2020
JunTaoLuo pushed a commit to dotnet/aspnetcore that referenced this pull request Nov 17, 2020
@ghost ghost locked as resolved and limited conversation to collaborators May 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants