← Back to Pull requests

Release pipeline automation and SSH agent fix #6

Closed
unknown closed this pull request without merging on Jul 17, 2026 11:51 UTC
View on GitHub
unknown unknown commented on Jul 16, 2026 08:29 UTC
Author

Summary

Consolidates findings from the v0.0.2 release cycle, PR #4 code review, and subsequent in-depth review.

Product code

  • Timeout nesting fix: sshRun now owns the per-command timeout via sshRunTimeout(cmd, seconds). fenceNode calls it with fenceTimeout+30 instead of nesting its own timeout 600 inside the wrapper's timeout 120 (which would silently kill any fence slower than 2 minutes).
  • SSH keepalive with reply deadline: Background goroutine sends keepalive@openssh.com every 30s, racing the probe against a 15s reply timer. Detects both dead transports and black-holed connections. Closes on first failure with a Warn that explains subsequent command errors. Uses client.Wait() to exit cleanly on normal close.
  • SSH agent fix: newAgentFromDefaults returned a keyring with zero signers when all ag.Add() calls failed. Now returns a descriptive error.
  • Second Ctrl-C is fatal: After the first SIGINT cancels the context, default signal handling is restored so the next signal terminates immediately.
  • Timeout flags: --ready-timeout (default 10m) and --not-ready-timeout (default 20m) threaded through fencing.Config. Converts threshold debates into a documented knob.
  • Fence timing: BMC warning now fires on the fence command duration alone, not fence-plus-Kubernetes-lag.
  • Stonith probe: Reordered to query defaults-aware pcs property config --all first; empty output gets its own error distinct from "explicitly false."
  • Daemon status: Distinguishes active/disabled ("running but not enabled at boot") from inactive/disabled ("not running") with actionable message.
  • Release pipeline

  • Krew manifest from release URL: hack/update-krew-manifest.sh fetches checksums.txt from the published GitHub release instead of local dist/. Anchored greps, || true for set -e compatibility with the validation loop, curl retry.
  • Automated manifest PR: hack/open-release-pr.sh with EXIT trap (returns to starting branch on failure), --force-with-lease (retry-safe), PR-already-exists tolerance, org-repo guard, gh auth check.
  • Manifest verification: hack/verify-krew-manifest.sh runs yamllint + validate-krew-manifest (if installed), then downloads all four tarballs and recomputes sha256s. macOS-portable (shasum -a 256 fallback).
  • Makefile: release target chains the full pipeline. Preflight checks gh CLI installed + authenticated, exports GITHUB_TOKEN to scripts. Sync check uses --verify -q for correctness without upstream remote.
  • Dependency: Bumped k8s.io/cli-runtime v0.34.0 to v0.35.1 to match client-go/apimachinery.
  • After this lands, a release is make release VERSION=vX.Y.Z GITHUB_TOKEN=... followed by one Slack ping for /lgtm.

    Test plan


  • make test - all unit tests pass (including new daemon status test case)

  • make build - binary builds

  • hack/verify-krew-manifest.sh - all four checksums verified against v0.0.2 release

  • Fencing validation passed on live TNF cluster (4.23 nightly, EC2) with v0.0.2 binary

  • Cut v0.0.3 with the new pipeline to confirm end-to-end flow
  • Diff: 396 lines (+297 / -99) across 4 files Reviewer: Neilhamza Review duration: 1641m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 396 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.358
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.2% (MEDIUM) · Higher = larger blast radius
    43.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.1% · Safe to merge
    17.1%