[code-improvement] deduplication: consolidate kernel config checks - #160
Merged
Pedro Henrique Penna (ppenna) merged 1 commit intoSep 21, 2026
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Pedro Henrique Penna (ppenna)
September 21, 2026 05:52
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused refactor preserves behavior, diagnostics, and existing interfaces.
Review effort: Balanced
Findings: None
What changed in this PR
Consolidates duplicated kernel configuration validation while preserving existing wrappers and diagnostics.
Changes:
- Adds a shared private validation helper.
- Delegates three capability-specific validators to it.
| File | Description |
|---|---|
scripts/nvx_tools/build.py |
Deduplicates kernel configuration checks. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Pedro Henrique Penna (ppenna)
marked this pull request as ready for review
September 21, 2026 13:05
Pedro Henrique Penna (ppenna)
deleted the
code-improvement/deduplicate-kernel-config-checks-8d55ff736de670a6
branch
September 21, 2026 13:43
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.
Scope:
deduplicationThree private kernel-configuration validators repeated the same file read, membership scan, and missing-setting error path. This change moves that shared logic into one private helper while retaining the existing capability-specific wrappers and exact diagnostics.
The candidate is grounded in the adjacent implementations in
scripts/nvx_tools/build.py. Searches of open microsoft/nvx issues and pull requests found no active work for this concern, and the recent code-improvement history contains no matching proposal or maintainer rejection.Patch
scripts/nvx_tools/build.py: consolidate repeated kernel-config membership validation.Validation
Passed:
No dependency, public API/CLI/ABI, gitlink, or OpenVMM change was made.