Skip to content

DatabaseLoaderTests.Iris* fail: iris.mdf attached read-only on 1es-windows-2022-open image #7657

Description

@kotlarmilos

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1493245
Build error leg or test failing: MachineLearning-CodeCoverage / Windows_x64 Build_Debug / Run All Tests. (Microsoft.ML.Tests.DatabaseLoaderTests)
Pull request: #7653

The DatabaseLoaderTests.Iris* tests fail when LocalDB attaches TestDatabases\iris.mdf as read-only on the 1es-windows-2022-open pool image, so the connection cannot be opened:

System.Data.SqlClient.SqlException : Database 'iris' cannot be upgraded because it is read-only, has read-only files or the user does not have permissions to modify some of the files. Make the database or files writeable, and rerun recovery.
Cannot attach the file '...\artifacts\bin\Microsoft.ML.Tests\Debug\net8.0\TestDatabases\iris.mdf' as database 'iris'.

Affected tests:

  • Microsoft.ML.Tests.DatabaseLoaderTests.IrisLightGbm
  • Microsoft.ML.Tests.DatabaseLoaderTests.IrisLightGbmWithLoadColumnName
  • Microsoft.ML.Tests.DatabaseLoaderTests.IrisLightGbmWithTimeout
  • Microsoft.ML.Tests.DatabaseLoaderTests.IrisSdcaMaximumEntropy
  • Microsoft.ML.Tests.DatabaseLoaderTests.IrisVectorLightGbm

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "cannot be upgraded because it is read-only",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1493245
Error message validated: [cannot be upgraded because it is read-only]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/7/2026 8:45:27 AM UTC

Report

Build Repository Test Pull Request
1496638 dotnet/machinelearning Microsoft.ML.Tests.DatabaseLoaderTests.IrisVectorLightGbmWithLoadColumnName
1493245 dotnet/machinelearning Microsoft.ML.Tests.DatabaseLoaderTests.IrisVectorLightGbmWithLoadColumnName #7653

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 2 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tab

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions