Repository navigation
[Test Coverage] src/nvx/cleanup-registry.ts - #11079
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The test fixture changes both bindings simultaneously, so it never independently verifies the namespace mismatch guard and needs an additional assertion to cover that branch.
1 open issue
What changed in this PR
This pull request expands unit-test coverage for DurableNvxCleanupRegistry, covering validation guards, resource tracking, lifecycle transitions, and durable-record removal.
Changes:
- Adds tests for artifact paths, account preparation, identity matching, network plans, and mount namespaces.
- Covers device ACL deduplication and release behavior.
- Verifies that completing a cleanup handle removes its durable record.
| File | Summary |
|---|---|
src/nvx/cleanup-registry.test.ts |
Adds nine focused tests for cleanup-handle guards and lifecycle behavior. Nit: the network-plan fixture changes both runId and namespaceName, so the namespace-binding guard is not independently exercised. |
Review effort: Lite (auto)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
✅ Copilot review passed with no inline comments. @github-actions[bot] Add the |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
|
@copilot fix the failing supply chain check https://github.com/github/gh-aw-firewall/actions/runs/41849125765/job/126652439298?pr=11079 |
Added narrowly scoped Grype exceptions for the four unpatched Alpine SQLite findings in |

The pre-selected target,
src/docker-manager.ts, is a barrel file whose re-exports are already fully tested. I targetedsrc/nvx/cleanup-registry.tsinstead, the lowest-coverage file in the list (48%).Adds 9 tests to
src/nvx/cleanup-registry.test.tsfor the cleanup handle guards:completeremoves the durable recordTargeted Jest run passes: 15 of 15 tests. ESLint on the file reports 5 warnings, all in the existing test setup (the fs mocks), none in the new tests.