← Back to Pull requests

e2e: fixes from running the tests on real hardware #895

Closed
unknown closed this pull request without merging on Nov 18, 2026 08:26 UTC
View on GitHub
unknown unknown commented on Nov 13, 2026 12:28 UTC
Author

Fixes for e2e runs on a host given with test_hw_addr. They came up on two hosts: an Ubuntu 24.04 desktop which the playbook provisions, and an openSUSE Tumbleweed host with its own kubespray cluster.

Provisioning:

  • An existing Kubernetes apt keyring is overwritten. The key task used to stop with "gpg: cannot open '/dev/tty'".

  • The Helm, CRI-O and cilium tarballs are installed owned by root. Their files used to keep uid 1001.

  • A new CNI configuration restarts the runtime. Without the restart, an installed containerd did not load it. The node stayed NotReady.

  • The kubeadm join command is no longer written. The cluster has one node. Each run created a bootstrap token for nothing.

  • On a test_hw_addr host, the DNS and firewalld tasks are skipped. So are the packages only VMs use: python3-pip, systemd-container, grubby, cloud-utils-growpart, btrfs-progs and the apt packages of the playbook.

  • runc is installed only when the playbook installs the runtime.

  • netplan is edited only when dns_nameserver is set. Before, an empty value emptied every addresses: [...] line of /etc/netplan/01-netcfg.yaml.

  • The image import finds ctr in /usr/local/bin. sudo's secure_path leaves that directory out on some distros.
  • Runner:

  • e2e_ansible_args adds options to the ansible-playbook command. --check, --syntax-check, --help, --version and the --list-* options make the run a preview. A preview stops after the playbook. It leaves the host record as it is. It is reported as skipped.

  • Check mode skips the tasks which need files or services that a first run installs.

  • e2e_ansible_args takes only --check, -C, --diff, -D, --step, -v to -vvvv, --syntax-check, --list-hosts, --list-tasks, --list-tags, --help, -h and --version. A run with any other option fails. Other options could change the host, the connection, the tasks or the variables of the run.

  • With containerd_release=installed, the version is read from the binary the systemd unit starts. It used to come from the first containerd on the PATH.

  • Times are computed with awk. The runner no longer needs bc.

  • A test ended by skip-test is reported as skipped. Its summary.txt used to say PASS.

  • test_hw_port sets the ssh port of a test_hw_addr host. A vagrant-qemu VM answers only on a port forwarded to 127.0.0.1. Port 22 there is the sshd of the runner.

  • The run header shows the address, OS, CPUs and NUMA nodes of a test_hw_addr host. The VM, distro and topology defaults and the vagrant boxes are left out.
  • The README gets two new sections: "Passing options to Ansible" and "Running a test step by step".

    Testing

  • Desktop, provision=all with e2e_ansible_args="--check --diff": the preview listed the expected changes. The run ended as skipped.

  • Desktop, provision=all with e2e_ansible_args="--step --diff": the cluster was rebuilt. The node became Ready. The plugin ran with DRA on and published its ResourceSlice.

  • Desktop, provision=1 e2e_ansible_args="--check --diff": the DNS, runc and VM package tasks were skipped.

  • openSUSE host with containerd_release, k8s_release and helm_release set to installed: the --check --diff preview changed nothing. The real run changed nothing in /etc except the e2e record. The kubeconfigs and the kubelet config kept their checksums. The plugin ran with DRA on and published its ResourceSlice.

  • Both hosts: a breakpoint test shows the new run header and passes. The openSUSE host has no bc. Its run printed no bc error.

  • Fresh Fedora 43 VM, never provisioned, with test_hw_port and e2e_ansible_args="--check --diff": the preview ended with SKIP, also in summary.txt. Nothing changed on the VM or in the host record. With SELinux enforcing, the run failed as expected and left summary.txt empty.

  • The later changes to the preview, check mode and skip-test were checked with small local playbooks and shell simulations, bash -n and ansible-playbook --syntax-check. They were not run on a host.
  • Diff: 504 lines (+378 / -126) across 6 files Reviewer: askervin Review duration: 6957m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 504 lines diff across 6 files
    0.48
    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.372
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #895"
    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: 47.6% (MEDIUM) · Higher = larger blast radius
    47.6%
    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: 18.8% · Safe to merge
    18.8%