Repository navigation
GeneralUpdate.Drivelution: production readiness overhaul - #564
Merged
Merged
Conversation
Correctness fixes (behavior now matches the API contract):
- Automatic rollback was a no-op: the pipeline now invokes real platform
rollback (driver-store aware) on failure; result.RolledBack is truthful
- User cancellation is no longer reported as timeout (UpdateStatus.Cancelled,
ErrorType.UserCancelled, ERR_CANCELLED); deterministic timeout keeps a
retry hint in SuggestedResolution
- UpdateStrategy.RetryCount/RetryIntervalSeconds are honored per call
(RetryPolicy.FromStrategy); DrivelutionOptions provide defaults
- Verify step honors strategy.FailOnVerificationFailure (default remains
non-blocking); Windows verification checks connected devices first
- All previously dead DrivelutionOptions are implemented (DefaultBackupPath
fallback, debug-gated skip switches, ForceTerminateOnPermissionFailure,
backup auto-cleanup, trusted thumbprints / GPG keys)
- Directory scan no longer stores a self-computed hash in DriverInfo.Hash
(self-referential validation); it is diagnostics-only metadata now
Windows:
- pnputil parsing verified against real Windows 11 output: combined
"<date> <version>" field, device Status/ProblemCode, en-US/zh-CN labels
plus a locale-independent positional fallback
- Backup copies the full package directory; a backup hook exports the
currently installed package via pnputil /export-driver
- Rollback deletes the newly added package first (install_state.json
records the exact published name), then reinstalls the exported one
- Reboot-required detection (exit 3010 + localized markers), /scan-devices
after install, INF parsing scoped to [Version], [Strings] resolution,
InvariantCulture DriverVer dates
Linux:
- .ko installs via /lib/modules/{release}/updates + depmod + modprobe; the
old "insmod failed -> modprobe by name" path (silent wrong-version load)
is gone; direct insmod fallback only when the standard tree is unwritable
- DKMS source trees supported (add/build/install) with full rollback
- dpkg -i dependency repair via apt-get -f; rpm->dnf fallback keeps the
original failure; rollback aggregates per-item failures
- GPG validation enforces key fingerprints (--trust-model always; WoT is
not meaningful here), no automatic keyserver fetches
- Installed-driver inventory via lsmod + bounded-parallel modinfo
New capabilities:
- Download step: HttpNetworkDownloader with mirror fallback, HTTP-Range
resume, http/socks5(h) proxy, auth headers, post-download SHA256 check,
SSRF guards; DriverInfo.DownloadUrl/MirrorUrls
- GetInstalledDriversAsync inventory; UpdateIfNeededAsync / Incremental
mode with SemVer comparison (Status=Skipped, PreviousVersion)
- DryRun strategy (checks only, Status=DryRunCompleted)
- Restart orchestration: injectable RestartCallback/RestartPromptCallback,
UpdateResult.RestartRequired, UpdateStatus.RestartRequired; RestartHelper
no longer reads the console
- Backup manifests (AOT source-gen JSON), ListBackupsAsync/PurgeBackupsAsync,
automatic retention cleanup; batch updates get MaxDegreeOfParallelism
(SemaphoreSlim, default 1) and priority ordering
- IGeneralDrivelution now exposes step/update events; GeneralTracer bridges
to Microsoft.Extensions.Logging; CommandRunner gained thread-safe output
capture, per-command timeout, and CommandExecutionException
- RetryPolicy retries transient failures only (default predicate + custom
shouldRetry + optional jitter); CommandRunner exceptions classified
Platform and packaging:
- macOS support removed (implementation, factory, DI, tests, metadata)
- Multi-target net8.0;net10.0
Tests and CI:
- 320 tests green on both TFMs: unit suites updated for new semantics,
real-machine smoke tests (live pnputil parsing, INF scan, DryRun) and
env-gated VM acceptance tests (real install/rollback round-trip,
export-driver hook) that self-skip outside elevated gated runs
- scripts/acceptance/run-windows-acceptance.ps1 runs the VM gate
- ci.yml runs DrivelutionTest on the Ubuntu leg too (Acceptance filtered)
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical issues allow writes outside the extraction directory and signature trust bypasses, while backup and restore defects can make rollback impossible.
20 open issues
Make command runner tests portable to Ubuntu · New Clear inherited INF settings in non-destructive runs · New Reject bundle paths that escape the extraction directory · New Validate bundle entry ranges against the payload · New Require a valid footer for newly generated patches · New Align the net11.0 target with available CI SDKs · New Protect active backups from retention cleanup · New Prevent recursive self-copy in DKMS backups · New Handle directory-backed package backups during restore · New Require a trust-list match when either allowlist is configured · New Reject backup destinations inside the source directory · New Restore directory-backed backups before modifying the target · New Fail acceptance gates when destructive tests are skipped · New Propagate cancellation through LZMA compression · New Dispose the bundle stream when validation fails · New Translate truncated patch headers for fallback recovery · New Check for timeout after waiting for process exit · New Honor CanRetry for driver backup failures · New Forward logs when built-in tracing is disabled · New Include subdirectories when backing up INF packages · New
What changed in this PR
This PR expands Drivelution’s Windows/Linux driver-update capabilities and adds integrity, compression, and packaging features to the differential-update pipeline.
Changes:
- Extends driver configuration, backup management, inventory, restart callbacks, logging, and command execution; removes macOS support.
- Adds differential patch metadata, integrity footers, bundle support, LZMA compression, and recovery options.
- Expands tests, framework targets, Ubuntu CI coverage, and Windows acceptance tooling.
| File | Description |
|---|---|
| tests/DrivelutionTest/Windows/Implementation/WindowsGeneralDrivelutionTests.cs | Updates signature-validation mocks. |
| tests/DrivelutionTest/Utilities/VersionComparerAndRestartHelperTests.cs | Tests restart callbacks. |
| tests/DrivelutionTest/Smoke/RealMachineSmokeTests.cs | Adds non-destructive machine checks. |
| tests/DrivelutionTest/Pipeline/RetryPolicyTests.cs | Tests retry classification and configuration. |
| tests/DrivelutionTest/Pipeline/BaseDriverUpdaterTests.cs | Updates pipeline fixtures and progress recording. |
| tests/DrivelutionTest/Models/ModelTests.cs | Updates defaults and status expectations. |
| tests/DrivelutionTest/MacOSImplementations/MacOSDriverBackupTests.cs | Removes macOS backup tests. |
| tests/DrivelutionTest/Linux/Implementation/LinuxGeneralDrivelutionTests.cs | Updates signature-validation mocks. |
| tests/DrivelutionTest/GeneralDrivelutionTests.cs | Checks diagnostic-only computed hashes. |
| tests/DrivelutionTest/Execution/CommandRunnerTests.cs | Tests command failures and timeouts. |
| tests/DrivelutionTest/DrivelutionTest.csproj | Targets .NET 8 and 10. |
| tests/DifferentialTest/Pipeline/MinSavingsTests.cs | Tests patch-size thresholds. |
| tests/DifferentialTest/Pipeline/BundleIntegrationTests.cs | Tests bundle application and corruption handling. |
| tests/DifferentialTest/DifferentialTest.csproj | Adds framework targets and fixture copying. |
| tests/DifferentialTest/Differ/PatchMetadataTests.cs | Tests footer metadata inspection. |
| tests/DifferentialTest/Differ/LegacyPatchCompatibilityTests.cs | Tests legacy patch compatibility. |
| tests/DifferentialTest/Differ/CancellationTests.cs | Adds cancellation checks. |
| tests/DifferentialTest/Compress/LzmaCompressionProviderTests.cs | Tests LZMA round-trips. |
| tests/DifferentialTest/ComprehensiveDifferentialTests.cs | Switches tests to BlockHashDiffer. |
| src/GeneralUpdate.Drivelution/Windows/Implementation/WindowsDriverValidator.cs | Forwards trusted thumbprints. |
| src/GeneralUpdate.Drivelution/Windows/Implementation/WindowsDriverBackup.cs | Adds directory-backed package backups. |
| src/GeneralUpdate.Drivelution/Windows/Helpers/WindowsSignatureHelper.cs | Adds thumbprint-based trust matching. |
| src/GeneralUpdate.Drivelution/Tracer/GeneralTracer.cs | Adds an ILogger bridge. |
| src/GeneralUpdate.Drivelution/MacOS/Helpers/MacOSPermissionHelper.cs | Removes macOS permission helpers. |
| src/GeneralUpdate.Drivelution/Linux/Implementation/LinuxDriverValidator.cs | Incorporates configured GPG keys. |
| src/GeneralUpdate.Drivelution/Linux/Implementation/LinuxDriverBackup.cs | Expands package backup handling. |
| src/GeneralUpdate.Drivelution/GeneralUpdate.Drivelution.csproj | Updates targets, dependencies, and package metadata. |
| src/GeneralUpdate.Drivelution/GeneralDrivelution.cs | Exposes inventory and backup-management helpers. |
| src/GeneralUpdate.Drivelution/Core/Utilities/RestartHelper.cs | Introduces callback-driven restarts. |
| src/GeneralUpdate.Drivelution/Core/Utilities/BackupManifestStore.cs | Persists manifests and install state. |
| src/GeneralUpdate.Drivelution/Core/ServiceCollectionExtensions.cs | Registers download and logging services. |
| src/GeneralUpdate.Drivelution/Core/Pipeline/RetryPolicy.cs | Adds strategy overrides and transient retries. |
| src/GeneralUpdate.Drivelution/Core/Pipeline/PipelineResult.cs | Represents skipped updates. |
| src/GeneralUpdate.Drivelution/Core/Pipeline/PipelineContext.cs | Carries options, progress, and backup hooks. |
| src/GeneralUpdate.Drivelution/Core/Execution/ICommandRunner.cs | Adds command timeout parameters. |
| src/GeneralUpdate.Drivelution/Core/Execution/CommandRunner.cs | Adds timeout handling and synchronized output capture. |
| src/GeneralUpdate.Drivelution/Core/Execution/CommandExecutionException.cs | Represents structured command failures. |
| src/GeneralUpdate.Drivelution/Core/DriverUpdaterFactory.cs | Wires downloads and removes macOS creation. |
| src/GeneralUpdate.Drivelution/Abstractions/Models/UpdateStrategy.cs | Adds dry-run, verification, and concurrency settings. |
| src/GeneralUpdate.Drivelution/Abstractions/Models/UpdateResult.cs | Adds version, restart, and dry-run outcomes. |
| src/GeneralUpdate.Drivelution/Abstractions/Models/InstallState.cs | Records installed-package identifiers. |
| src/GeneralUpdate.Drivelution/Abstractions/Models/InstalledDriverInfo.cs | Models installed-driver inventory. |
| src/GeneralUpdate.Drivelution/Abstractions/Models/DriverInfo.cs | Adds download and mirror URLs. |
| src/GeneralUpdate.Drivelution/Abstractions/Models/BackupManifest.cs | Models backup provenance and contents. |
| src/GeneralUpdate.Drivelution/Abstractions/INetworkDownloader.cs | Defines configurable download requests. |
| src/GeneralUpdate.Drivelution/Abstractions/IGeneralDrivelution.cs | Expands updater APIs and events. |
| src/GeneralUpdate.Drivelution/Abstractions/IDriverValidator.cs | Extends signature-validation parameters. |
| src/GeneralUpdate.Drivelution/Abstractions/Configuration/DriverUpdateOptions.cs | Expands runtime configuration. |
| src/GeneralUpdate.Differential/PatchMetadata.cs | Exposes patch integrity metadata. |
| src/GeneralUpdate.Differential/GeneralUpdate.Differential.csproj | Updates version, targets, and release notes. |
| src/GeneralUpdate.Differential/Formats/PatchFormatDetector.cs | Detects patch layouts and compression. |
| src/GeneralUpdate.Differential/Formats/PatchFooter.cs | Defines integrity trailers. |
| src/GeneralUpdate.Differential/Formats/HashUtility.cs | Adds shared SHA256 helpers. |
| src/GeneralUpdate.Differential/Formats/BundleStreams.cs | Provides bundle payload windows. |
| src/GeneralUpdate.Differential/Formats/BundleFormat.cs | Defines bundle encoding and checksums. |
| src/GeneralUpdate.Differential/Formats/BsdiffFormat.cs | Centralizes patch-format primitives. |
| src/GeneralUpdate.Differential/Exceptions/PatchVerificationException.cs | Represents output-hash failures. |
| src/GeneralUpdate.Differential/Exceptions/PatchFormatException.cs | Represents malformed patches and bundles. |
| src/GeneralUpdate.Differential/Exceptions/PatchException.cs | Defines the patch-error base class. |
| src/GeneralUpdate.Differential/Exceptions/PatchBaseMismatchException.cs | Represents baseline-hash mismatches. |
| src/GeneralUpdate.Differential/Compression/Lzma/RangeCoder/RangeCoderBitTree.cs | Adds LZMA bit-tree coding. |
| src/GeneralUpdate.Differential/Compression/Lzma/RangeCoder/RangeCoderBit.cs | Adds probability-based bit coding. |
| src/GeneralUpdate.Differential/Compression/Lzma/RangeCoder/RangeCoder.cs | Adds range encoding and decoding. |
| src/GeneralUpdate.Differential/Compression/Lzma/LZMA/LzmaBase.cs | Adds LZMA constants and state. |
| src/GeneralUpdate.Differential/Compression/Lzma/LZ/LzOutWindow.cs | Adds the decompression output window. |
| src/GeneralUpdate.Differential/Compression/Lzma/LZ/LzInWindow.cs | Adds the compression input window. |
| src/GeneralUpdate.Differential/Compression/Lzma/LZ/IMatchFinder.cs | Defines internal match-finder interfaces. |
| src/GeneralUpdate.Differential/Compression/Lzma/ICoder.cs | Defines internal codec contracts. |
| src/GeneralUpdate.Differential/Compression/Lzma/CRC.cs | Adds SDK checksum support. |
| src/GeneralUpdate.Differential/Bundle/BundleReader.cs | Opens and reads verified bundles. |
| src/GeneralUpdate.Differential/Bundle/BundleEntry.cs | Models bundle payload metadata. |
| src/GeneralUpdate.Differential/Binary/StrangeCRC.cs | Disables nullable analysis for legacy code. |
| src/GeneralUpdate.Differential/Binary/IChecksum.cs | Disables nullable analysis for legacy code. |
| src/GeneralUpdate.Differential/Binary/BZip2OutputStream.cs | Disables nullable analysis for legacy code. |
| src/GeneralUpdate.Differential/Binary/BZip2InputStream.cs | Disables nullable analysis for legacy code. |
| src/GeneralUpdate.Differential/Binary/BZip2Constants.cs | Disables nullable analysis for legacy code. |
| src/GeneralUpdate.Differential/Abstractions/LzmaProperties.cs | Defines LZMA compression settings. |
| src/GeneralUpdate.Differential/Abstractions/LzmaCompressionProvider.cs | Exposes the LZMA provider. |
| src/GeneralUpdate.Core/Pipeline/DiffPipelineOptions.cs | Adds fallback, bundle, and savings options. |
| src/GeneralUpdate.Core/Pipeline/DiffPipelineBuilder.cs | Exposes new pipeline configuration methods. |
| scripts/acceptance/run-windows-acceptance.ps1 | Adds Windows acceptance tooling. |
| .github/workflows/ci.yml | Adds Drivelution tests on Ubuntu. |
Review effort: Balanced
GeneralUpdate.Core and GeneralUpdate.Differential now multi-target net11.0, so every workflow that restores or builds the full solution (or a multi-targeted library project) needs an SDK that understands net11.0. Those jobs only stayed green because the hosted runner images happen to ship an SDK 11; on an SDK-10-only environment they fail with NETSDK1045. List both SDKs explicitly in ci.yml, diagnostic-outbox.yml and dotnet-ci.yaml.
JusterZhu
added a commit
that referenced
this pull request
Dec 5, 2026
Review follow-ups for the Differential rework, covering the Differential findings raised on this PR and on #564. Patch format - The header's format byte carries a footer flag (0x80|format). A flagged patch must have a valid integrity footer: a missing or damaged trailer is a PatchFormatException instead of a silent downgrade to the footer-less seek convention. Releases before 10.6.0 accept 0x00-0x02 only and therefore reject new patches instead of mis-applying them with the historical seek timing. - Decoder failures (truncated blocks, invalid BZip2/Deflate/Brotli/LZMA data) are translated to PatchFormatException, so the full-file fallback is reached for corrupt downloads; a partially written output is deleted. Bundles - Entry count, table bounds, flags and payload ranges are validated. Unsafe relative paths (rooted, '..', ':', backslashes, ...) are rejected by both the reader and the writer. - BundleReader.ExtractToDirectoryAsync extracts with a root-confinement check and per-entry SHA256 verification through a temporary file; DiffPipeline uses it and logs an unusable bundle before rethrowing. - Open disposes the stream it owns when validation fails, and entry windows share a gate so that concurrent reads cannot interleave. Cancellation - Tokens reach the LZMA encoder/decoder and the compress streams of both differs; block copies observe cancellation and Clean checks it before publishing a patch. - Base and output hashing is asynchronous and cancellation-aware. - The LZMA range coder counts its output instead of reading Stream.Position, so forward-only outputs are supported. Pipeline - Clean and Dirty canonicalise their directories: relative paths used to fail inside the storage layer on every target framework, not only on netstandard2.0. - netstandard2.0 builds derive the fallback's relative path textually instead of through URI arithmetic. - MinSavings keeps the patch for blacklisted formats, which Dirty never copies into the application directory. Tests: 168 -> 228 per runtime, including regressions with non-zero seeks for both seek conventions (the previous compatibility tests only used patches whose seeks were all zero).
…cross-platform The kill callback registered on the wait token can make WaitForExitAsync return normally for a process that was just killed, so a timed-out command could come back as a CommandResult instead of a TimeoutException. The token states are now checked after the wait as well, in the normal-completion path and in the cancellation path alike, through one decision in which the caller's cancellation outranks the per-command timeout. The tests run through the interpreter of the platform (cmd.exe /c on Windows, /bin/sh -c on Unix) instead of a hard-coded cmd, which is what failed on the Ubuntu CI runner. A misnamed duplicate (RunAsync_WithEmptyArguments_DoesNotThrow) is dropped; output capture, a caller that cancels while a timeout is pending, and the decision itself are covered in addition.
…trust Backups (WindowsDriverBackup / LinuxDriverBackup) - A backup is the driver package tree: a driver file (INF, kernel module) is backed up together with everything in and under its directory, not only with its top-level siblings, because that is what its reinstallation needs. - A backup location that overlaps the package - inside it or around it - is refused before anything is created: the copy used to enumerate its own output and grow until the disk or the path limit gave. The failure is not retryable, and neither is a missing source. - RestoreAsync handles the directory a backup is: a directory target receives the tree (without the pipeline's metadata), a file target receives the backup's copy of that file; single-file backups of older versions are still restored as files. Nothing at the target is touched before it is known what goes there, and a target moved aside as ".old" is put back when the copy fails. Both platforms share the file operations (DriverBackupFiles). Rollback - The rollback used to run only when a step returned Fail. An install step that throws (a failed pnputil or dpkg does), and an install cut short by the timeout or by a cancellation, skipped it. Every update that fails after its install step began is now rolled back from its backup; a rollback that fails or throws is traced and reported as a failed one and never hides the original error. Retention - The backup step pins its backup before the manifest makes it visible to a purge, and the updater releases the pin when the update ends. A parallel update that finishes first can no longer purge the backup that a running update still rolls back to. Signer trust - Any valid signature is accepted only when neither the driver's publishers nor the options' allowlist (certificate thumbprints on Windows, GPG keys on Linux) is configured; an allowlist that did not match used to fall through to "accept any" when the driver listed no publishers. - Signature validation runs whenever trust is configured, in the driver or in the options. Trust held only in the options was never consulted. - Accepted and rejected signers are traced with subject and thumbprint. Regressions: DriverBackupTests (the platform's real implementation, on a real file system), AutomaticRollbackTests, BackupRetentionTests, SignerTrustTests, CreateValidateStep_TrustConfiguredOnlyInOptions_StillValidatesTheSignature. Each fix was checked to fail its regression when reverted.
…nformed with the built-in listeners off - RetryPolicy.IsTransient retried every DriverBackupException although the flag is public and documented as the contract. It is honored now, as it is for installation and command failures. - SetTracingEnabled(false) silenced the external ILogger together with the console and file listeners, so the documented ILogger-only configuration logged nothing. The external logger receives every message either way. Regressions: RetryPolicy_IsTransient_ClassifiesFailures (extended), GeneralTracerTests.
…er clears a gate it did not run - The driver-store acceptance tests returned silently when they could not run, which counted as a pass. They are discovered as skipped, with the reason, unless the gate is armed (AcceptanceGate / WindowsAcceptanceFact). - run-windows-acceptance.ps1 clears an inherited DRIVELUTION_ACCEPTANCE_INF in its non-destructive branch; it used to arm the destructive tests while announcing that they skip. - Exit codes: 0 = the gate was exercised and passed; 1 = a test failed, or the gate was skipped although -InfPath was given; 2 = only the non-destructive tests ran, so the gate was not evaluated. A green run is no longer reported as a cleared gate when no INF was provided. - The script carries a UTF-8 BOM: Windows PowerShell 5.1 reads BOM-less files as ANSI and garbled its non-ASCII output.
…yout The test built its "other spelling" from Path.GetRelativePath(working directory, target), which returns the absolute target when the two are on different drives — the layout of the Windows CI runner (repository on D:, temp on C:). "./" + that is not a path inside the package, so the backup was rightly not refused as overlapping and failed elsewhere. The relative case now steps aside on such layouts, and an absolute spelling with a "." segment covers the check everywhere.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Brings
GeneralUpdate.Drivelutionto production standard: fixes every point where behavior diverged from the API contract, completes all previously-dead configuration, adds the missing core capabilities (download, installed-driver inventory, version-aware updates, dry-run, restart orchestration, backup management), and establishes a verified, gated acceptance path for real driver installs.Breaking changes: macOS support removed (factory now throws
PlatformNotSupportedException); multi-target isnet8.0;net10.0;INetworkDownloader/IDriverValidator.ValidateSignatureAsyncsignatures evolved;UpdateStrategyretry/timeout defaults now defer toDrivelutionOptions(0 = use options).Correctness (contract vs implementation)
RolledBack). The pipeline now invokes real platform rollback; rollback deletes the newly added driver package first (install_state.jsonrecords the exactoemXX.infcaptured at install time), then reinstalls the backed-up one.UpdateStatus.Cancelled/ErrorType.UserCancelled.RetryCount/RetryIntervalSecondswere silently ignored → per-callRetryPolicy.FromStrategy.strategy.FailOnVerificationFailure(default non-blocking preserved).DrivelutionOptionsproperties were never read → all implemented (backup-path fallback, debug-session-gated skip switches, permission-failure policy, backup retention, trusted cert thumbprints / GPG keys).Windows (verified against real Windows 11
pnputiloutput)<date> <version>field, deviceStatus/Problem Code, en-US/zh-CN labels, plus a locale-independent positional fallback for other languages.pnputil /export-driverhook exports the installed package for true rollback; reboot-required detection (exit 3010 + localized markers);/scan-devicesafter install; INF parsing fixes ([Version] scoping,[Strings]resolution, invariant-culture dates).Linux
.koinstalls through/lib/modules/{release}/updates+depmod+modprobe— removed the old fallback that could silently load a wrong-version module; DKMS trees supported with full rollback;dpkg -idependency repair; rollback aggregates failures instead of always returning true; GPG fingerprint enforcement (--trust-model always, no keyserver fetches); installed inventory vialsmod+ bounded-parallelmodinfo.New capabilities
HttpNetworkDownloader— mirror fallback, HTTP-Range resume, http/socks5(h) proxy, auth headers, post-download SHA256, SSRF guards (DriverInfo.DownloadUrl/MirrorUrls).GetInstalledDriversAsync,UpdateIfNeededAsync/UpdateMode.Incremental(SemVer compare →Status=Skipped,PreviousVersion).RestartRequireddetection), backup manifests +ListBackupsAsync/PurgeBackupsAsync+ retention cleanup.MaxDegreeOfParallelism(SemaphoreSlim, default 1) + priority ordering.IGeneralDrivelution;ILoggerbridge forGeneralTracer; thread-safeCommandRunnerwith per-command timeout and classifiedCommandExecutionException; transient-only retries with jitter.Tests & CI
pnputilparsing, INF scan, full-pipeline DryRun — non-destructive, run on any Windows machine).scripts/acceptance/run-windows-acceptance.ps1runs the acceptance gate on a disposable VM.Remaining release gate (outside this PR)
Real install/rollback and the Linux chain require a disposable VM run:
scripts/acceptance/run-windows-acceptance.ps1 -InfPath <test-signed INF>.🤖 Generated with ZCode