Skip to content

Tests failing in Microsoft.Data.Sqlite on unchanged clone #35424

Open
@davemateer

Description

@davemateer

I'm looking to potentially get involved contributing this year, but am having a little trouble getting started. I have gone through the documents on getting set up, and while the build completes without errors, I am getting 9 failed tests before making any code changes. I'm sure this is just something on my local machine, but am having trouble determining what the issue might be.

All failing tests are in Microsoft.Data.Sqlite.sqlite3.Tests, and look to be pretty much all Microsoft.Data.Sqlite.SqliteBlobTest.Read_works, Microsoft.Data.Sqlite.SqliteBlobTest.Write_works, and Microsoft.Data.Sqlite.SqliteDataReaderTest.GetTextReader_works_streaming tests. The same exception is being thrown for all of them:

Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'SQL logic error'.

Here is a representative stack trace:

Microsoft.Data.Sqlite.SqliteBlobTest.Read_works(expectedBytesRead: 0, expectedBuffer: [], initialPosition: 0, offset: 0, count: 0)
Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'SQL logic error'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) in /Users/dave/code/efcore/src/Microsoft.Data.Sqlite.Core/SqliteException.cs:line 84
   at Microsoft.Data.Sqlite.SqliteBlob.Read(Span`1 buffer) in /Users/dave/code/efcore/src/Microsoft.Data.Sqlite.Core/SqliteBlob.cs:line 210
   at Microsoft.Data.Sqlite.SqliteBlob.Read(Byte[] buffer, Int32 offset, Int32 count) in /Users/dave/code/efcore/src/Microsoft.Data.Sqlite.Core/SqliteBlob.cs:line 170
   at Microsoft.Data.Sqlite.SqliteBlobTest.Read_works(Int32 expectedBytesRead, Byte[] expectedBuffer, Int64 initialPosition, Int32 offset, Int32 count) in /Users/dave/code/efcore/test/Microsoft.Data.Sqlite.Tests/SqliteBlobTest.cs:line 153
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

In case it makes a difference, I am working on MacOS Sequoia 15.2 (M2 Chip), and as of the time this issue was written, commit c434d6cc793f5157a677bc08b7743dbdaf14393c

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions