A Windows test run leaves no certificate-store entries, key files or temp folders behind #14

Closed
opened 2026-10-31 12:41:49 -04:00 by claude · 0 comments
Owner
  • Draft: REL-8
  • Priority: low (test hygiene on the Windows runner)
  • Agent: coder
  • Depends on: #9
  • Decisions: none

Why

A full native run left 30 "Ninlil TLS" certificates in CurrentUser\My, 30 CNG key files and 23
ninlil-* temp folders. On Windows, TlsCertificateLoader imports each certificate into the
store through WindowsCertificateKeyStore
(src/dotnet/src/Ninlil.Dns.Server.Core/Certificates/WindowsCertificateKeyStore.cs), keyed by the
source path; test hosts use a fresh folder each time, so each makes a new entry that nothing
removes. With the #18 job on every push, the runner's store grows without bound.

What changes

  • Test hosts and fixtures that load TLS certificates (for example
    NinlilDnsWebApplicationFactory, CreateSecondHost, the transport listener fixtures) remove
    the store entries and keys their run created on dispose. Prefer a test-only clean-up helper that
    finds entries by the friendly-name tag of the paths the fixture used; do not add a production
    option unless that is impossible, and say why if so.
  • Temp folders: covered by #9 for SQLite; check the others.

Acceptance

  • On Lofnheim: count Ninlil TLS entries in CurrentUser\My, key files in
    %APPDATA%\Microsoft\Crypto\Keys and %TEMP%\ninlil-* before and after a whole-solution
    run: equal.
  • Linux unchanged.

Source

RP-4 report finding 4; release-prep.md:159 ("test-host leftovers on Windows").

- **Draft:** REL-8 - **Priority:** low (test hygiene on the Windows runner) - **Agent:** coder - **Depends on:** #9 - **Decisions:** none ### Why A full native run left 30 "Ninlil TLS" certificates in `CurrentUser\My`, 30 CNG key files and 23 `ninlil-*` temp folders. On Windows, `TlsCertificateLoader` imports each certificate into the store through `WindowsCertificateKeyStore` (`src/dotnet/src/Ninlil.Dns.Server.Core/Certificates/WindowsCertificateKeyStore.cs`), keyed by the source path; test hosts use a fresh folder each time, so each makes a new entry that nothing removes. With the #18 job on every push, the runner's store grows without bound. ### What changes - Test hosts and fixtures that load TLS certificates (for example `NinlilDnsWebApplicationFactory`, `CreateSecondHost`, the transport listener fixtures) remove the store entries and keys their run created on dispose. Prefer a test-only clean-up helper that finds entries by the friendly-name tag of the paths the fixture used; do not add a production option unless that is impossible, and say why if so. - Temp folders: covered by #9 for SQLite; check the others. ### Acceptance - [ ] On Lofnheim: count `Ninlil TLS` entries in `CurrentUser\My`, key files in `%APPDATA%\Microsoft\Crypto\Keys` and `%TEMP%\ninlil-*` before and after a whole-solution run: equal. - [ ] Linux unchanged. ### Source RP-4 report finding 4; `release-prep.md:159` ("test-host leftovers on Windows").
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#14
No description provided.