Skip to content

Add host readiness health check module - #6

Merged
MoSLoF merged 1 commit into
mainfrom
codex/enhance-repository-functionality
Nov 12, 2025
Merged

MoSLoF merged 1 commit into
mainfrom
codex/enhance-repository-functionality

Conversation

@MoSLoF

@MoSLoF MoSLoF commented Nov 12, 2025

Copy link
Copy Markdown
Owner

Summary

  • add an HBV-HealthCheck module that inspects the host for PowerShell, networking, Defender, and git prerequisites
  • wire the new health check into HBV-Core so orchestrations can emit readiness reports
  • extend the README with guidance for running the health check tool

Testing

  • pwsh -NoProfile -Command "[ScriptBlock]::Create((Get-Content -Raw -Path './HBV-HealthCheck.ps1')) | Out-Null" (fails: pwsh not available in container)

Codex Task

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread HBV-HealthCheck.ps1
Comment on lines +27 to +29
if (-not $IsWindows) {
throw 'HBV-HealthCheck.ps1 must be executed on a Windows host.'
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Guard clause rejects PowerShell 5.1 on Windows

The new module immediately throws when $IsWindows is falsey, but $IsWindows is only defined in PowerShell 6+. On the default Windows PowerShell 5.1 the variable is $null, so this check always throws and the health check cannot run on supported Windows hosts. Consider using [Environment]::OSVersion.Platform or Get-CimInstance Win32_OperatingSystem to detect non‑Windows systems instead of relying on $IsWindows.

Useful? React with 👍 / 👎.

@MoSLoF
MoSLoF merged commit 72ef658 into main Nov 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant