← Back to Pull requests

e2e: run the tests on the cluster and Helm a host already has #887

Closed
unknown closed this pull request without merging on Nov 10, 2026 09:41 UTC
View on GitHub
unknown unknown commented on Nov 06, 2026 08:57 UTC
Author

Two options for a host we were given, which already runs a cluster:

  • k8s_release=installed uses the cluster on the host. The run reads its version, its one node and that node's taints through /etc/kubernetes/admin.conf. Provisioning then leaves the cluster as it is: no Kubernetes packages or repository, no CNI configuration, sysctls, kernel modules, kubeconfigs or taints, and no kubeadm. The node is named after the cluster's node, which can differ from the host name, because kubespray names nodes after its inventory. The run refuses provision=all, k8s_feature_gates, a cluster with more than one node, and a node with a NoSchedule or NoExecute taint.

  • helm_release=installed uses the Helm that root's login shell finds, and records its version. Without this option, the Helm the run installs in /usr/local/bin would hide a host's own /usr/bin/helm.
  • Together with containerd_release=installed, the tests can run on a kubespray cluster without changing it.

    Testing

  • The two resolvers, against fake ssh, sudo, kubectl and helm:

  • - a single-node cluster, a control-plane taint, PreferNoSchedule, two nodes, provision=all, k8s_feature_gates, and no test_hw_addr
    - a host's Helm, and no Helm
  • manage_k8s and manage_helm in ansible-vars.json.

  • bash -n and ansible-playbook --syntax-check.

  • Not yet run against a real cluster. A run on a kubespray host comes next.
  • Diff: 178 lines (+133 / -45) across 2 files Reviewer: askervin Review duration: 5804m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.59) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 178 lines diff across 2 files
    0.59
    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.310
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.059
    Real PR Conversation Timeline
    1 comments
    "Review active on #887"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 58.7% (MEDIUM) · Higher = larger blast radius
    58.7%
    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: 23.2% · Safe to merge
    23.2%