test(homelab): cover the join command's password sources and manual main-machine address #604
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 205 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.319
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #604"
general
weight: 0.35
jeefy
Summary: Adds automated tests for the command that lets a machine join a Bluefin Server home cluster. They check two setup paths nothing tested before: reading the join password from a protected system file, and joining a main machine given by address. A mistake in either would otherwise only show up as a machine that silently fails to join.
---
Test Improvement
The weekly
homelab-clustere2e scenario always sets the passphrase inhomelab.confand finds the control plane over mDNS, so the credential fallback innodePassphraseand theHOMELAB_CONTROL_PLANEbranch ofattemptrun in no test. The package had no_test.go.New
cmd/bluefin-cluster/main_test.go(tempdirs and loopback only, no root):nodePassphrase: conf value wins over the credential and is normalised; falls back to$CREDENTIALS_DIRECTORY/bluefin-cluster.passphrase; the missing-passphrase error names the key, the conf path and the credential; non-ASCII refused.attemptwith a manual control plane against a realjoin.Serveron 127.0.0.1: success payload; wrong passphrase →join.ErrNotProvennaming the address; bad ports (0,65536,http) refused.Paths hardcoded under
/var/liband/run(controlPlanePassphrase,publish,writeIssue) are left alone: testing them needs a production change.Validation:
gofmt -lclean and the file type-checks withgo build;go testcannot run on the agent host, so the CIgojob (go test -race ./...) is the first execution.Fixes #603
---
Filed by quality agent (ACMM L4/L6 — full mode)
— hive: agent=quality backend=copilot model=claude-opus-5.5 copilot=1.0.88