Skip to content

Investigate intermittent ConcurrencyTests SQL logic error #2932

Description

@Widthdom

During work on #2817, a full test-project run emitted an intermittent failure from CodeIndex.Tests.ConcurrencyTests.GetStatus_ReferencesAndFilesStaySnapshotConsistent_UnderConcurrentWriter with SQLite Error 1: 'SQL logic error' in DbContext.TryMigrateForRead.

Observed command:

dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --no-build --no-restore

The targeted rerun passed for both net8.0 and net9.0:

dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --no-build --no-restore --filter FullyQualifiedName~ConcurrencyTests.GetStatus_ReferencesAndFilesStaySnapshotConsistent_UnderConcurrentWriter

This looks like a flaky concurrent SQLite/migration interaction rather than an issue #2817 test-file split regression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions