feat: add --skip-hardware-checks hidden option#375
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request introduces a hidden CLI flag --unsafe-skip-hardware-checks that allows users to bypass hardware validation checks during installation workflows. The flag is designed for advanced use cases such as development, testing, or working around false-positive hardware check failures. The implementation includes flag registration, workflow modifications, command updates, and comprehensive documentation.
Changes:
- Added a hidden persistent flag
--unsafe-skip-hardware-checksregistered on the root command that skips hardware validation steps during installation - Modified workflow constructors to accept and propagate a
skipHardwareChecksboolean parameter through the workflow chain - Updated install commands to read the flag value and pass it to workflows
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| cmd/weaver/commands/common/flags.go | Defined the FlagUnsafeSkipHardwareChecks flag with documentation |
| cmd/weaver/commands/root.go | Registered the flag as a hidden persistent flag on the root command |
| cmd/weaver/commands/block/node/install.go | Read the flag value and pass it to the block node install workflow |
| cmd/weaver/commands/kube/cluster/install.go | Read the flag value and pass it to the cluster install workflow |
| internal/workflows/preflight.go | Modified NewNodeSafetyCheckWorkflow to conditionally skip hardware checks based on the flag |
| internal/workflows/setup.go | Updated NodeSetupWorkflow to accept and propagate the skipHardwareChecks parameter |
| internal/workflows/cluster.go | Updated InstallClusterWorkflow to accept and propagate the skipHardwareChecks parameter |
| internal/workflows/blocknode.go | Updated NewBlockNodeInstallWorkflow to accept and propagate the skipHardwareChecks parameter |
| internal/workflows/cluster_it_test.go | Updated integration test to pass false for the new skipHardwareChecks parameter |
| docs/dev/hidden-flags.md | Added documentation describing the flag's purpose, scope, and implementation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ad8df4e to
c8e5e62
Compare
c8e5e62 to
b688c06
Compare
Signed-off-by: Bruno De Assis Marques <bruno.marques@swirldslabs.com>
b688c06 to
088023b
Compare
leninmehedy
approved these changes
Feb 21, 2026
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.
Description
This pull request introduces a hidden CLI flag,
--unsafe-skip-hardware-checks, which allows users to bypass hardware validation checks (CPU, memory, storage) during installation workflows for block nodes and Kubernetes clusters. The flag is intended for advanced use cases such as development, testing, or working around false-positive hardware check failures. The implementation ensures that other critical checks (privilege, user, host profile, OS) still run, and the flag is not available for thecheckcommand to maintain system safety. Documentation has also been added to clarify the flag's purpose and usage.The most important changes are:
Feature: Add hidden flag to skip hardware checks
--unsafe-skip-hardware-checksflag as a hidden persistent flag on the root command, with clear warnings about its risks and intended use. The flag is documented and registered inflags.goandroot.go. [1] [2] [3] [4]Workflow updates to support the new flag
InstallClusterWorkflow,NewBlockNodeInstallWorkflow,NodeSetupWorkflow,NewNodeSafetyCheckWorkflow) to accept and propagate theskipHardwareChecksboolean, ensuring hardware validation steps are conditionally included or excluded. [1] [2] [3] [4]Command changes to wire the flag into install workflows
block node installandkube cluster installcommands to read the new flag and pass its value into the workflow chain, enabling hardware check skipping when requested. [1] [2]Testing and documentation
hidden-flags.md) detailing the flag’s scope, use cases, and implementation. [1] [2]Logging and messaging
These changes collectively provide a controlled, well-documented mechanism to bypass hardware checks for advanced scenarios while preserving safety for standard operations.
Related Issues