Test clean-up on Windows no longer fails on SQLite files the connection pool still holds #9
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
lantea-one/ninlil#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
On Windows,
Directory.DeletethrowsIOException: The process cannot access the file 'test.sqlite3' because it is being used by another process: Microsoft.Data.Sqlite pools theconnection, which keeps the file open. Linux allows deleting an open file, so it passes there.
What changes
src/dotnet/tests/Ninlil.Dns.Server.Backup.Tests/SystemBackupServiceArchiveValidationTests.cs:93and
SystemBackupServiceAtomicRestoreTests(20 tests): callSqliteConnection.ClearAllPools()(or clear the pool of the test's connection string) before deleting the folder.
src/dotnet/tests/Ninlil.Web.Tests/StorageHealthCheckTests.cs(the SQLite case) andStorageReplicaHealthCheckTests.cs(2 tests, filehealth.sqlite3): same.Dispose/DisposeAsyncand apply thesame rule (grep
Directory.Deleteand.sqlite3undersrc/dotnet/tests).Acceptance
dotnet test src/dotnet/tests/Ninlil.Dns.Server.Backup.Testsanddotnet test src/dotnet/tests/Ninlil.Web.Tests --filter "FullyQualifiedName~StorageHealthCheckTests|FullyQualifiedName~StorageReplicaHealthCheckTests".ninlil-*temp folder behind on Windows.Source
RP-4 report finding 3 ("20 Backup tests", "StorageHealthCheckTests Sqlite and 2
StorageReplicaHealthCheckTests");
release-prep.md:159.Done on
feature/8-windows-test-suite(e78555de): Windows Backup.Tests 42/65 → 65/65, storage health 3/9 → 9/9; whole solution green on Linux. Closes when the epic branch merges into develop.Ghost referenced this issue2026-11-06 12:32:24 -05:00