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
Added SQLite database to test loading of datasets in non-Windows builds #5080
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5080 +/- ##
==========================================
- Coverage 75.66% 75.64% -0.02%
==========================================
Files 993 993
Lines 178157 178192 +35
Branches 19125 19125
==========================================
- Hits 134800 134799 -1
- Misses 38136 38164 +28
- Partials 5221 5229 +8
|
Codecov Report
@@ Coverage Diff @@
## master #5080 +/- ##
==========================================
- Coverage 75.66% 75.64% -0.02%
==========================================
Files 993 993
Lines 178157 178192 +35
Branches 19125 19125
==========================================
- Hits 134800 134799 -1
- Misses 38136 38164 +28
- Partials 5221 5229 +8
|
Currently tests on MacOS and Linux builds are failing as the version of |
Marking this PR as draft for now, until the NuGet package for the up-to-date NuGet package for the |
@@ -20,6 +20,7 @@ | |||
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json; | |||
https://dotnet.myget.org/F/roslyn-analyzers/api/v3/index.json; | |||
https://pkgs.dev.azure.com/dnceng/public/_packaging/MachineLearning/nuget/v3/index.json; | |||
https://pkgs.dev.azure.com/dnceng/public/_packaging/machinelearning-testdata/nuget/v3/index.json; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is necessary to obtain the most up-to-date NuGet package for TestDatasets
.
return new DatabaseSource( | ||
SqlClientFactory.Instance, | ||
GetMSSQLConnectionString(TestDatasets.irisDb.name), | ||
String.Format(command, $@"""{TestDatasets.irisDb.trainFilename}""")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing TestDatasets.irisDb.trainFilename
as $@"""{TestDatasets.irisDb.trainFilename}"""
is necessary to correctly pass the table name as \"iris-train\"
in MSSQL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix #4156 and related to #4175
MSSQL databases are not supported on Mac and Linux builds. As such, I've generated an equivalent SQLite database, and re-activated these disabled Iris tests so that these unit tests can run on non-Windows builds and produce equivalent test results.
Reactivated tests on Linux and MacOS list:
IrisLightGbm()
IrisLightGbmWithLoadColumnName()
IrisVectorLightGbm()
IrisVectorLightGbmWithLoadColumnName()
IrisSdcaMaximumEntropy()