← Back to Pull requests

e2e: allow running e2e tests against an external host. #883

Closed
unknown closed this pull request without merging on Nov 06, 2026 08:53 UTC
View on GitHub
unknown unknown commented on Oct 30, 2026 17:02 UTC
Author

This patch series adds basic plumbing to allow running e2e tests against an existing/external host instead of the e2e test framework creating a VM for the tests. Among other things the series of commits

  • stop assuming the login user is vagrant

  • add test_hw_addr and test_hw_key variables for passing in test user name and SSH key location

  • update vm-play reach a host which is not a VM

  • add support for provisioning an existing host over SSH

  • configure kubelet to tolerate swap instead of forcing swap off

  • drop obsolete NRI setup bits (enabling NRI, creating NRI-related directories)

  • fix provisioned/installed runtime systemd unit file location to be in /etc (not in /lib)
  • The easiest way to test this is probably against your own development environment with something like this. The same applies for testing against some other host, apart from the details of arranging your test user, the SSH keys, and the passwordless sudo which you should then do on the target host, not in you development environment. In either case, remember to nuke the throwaway test user afterwards and its passwordless sudoers config.

    # A throwaway user to log in as, and a key for it.
    sudo useradd -G root,wheel test
    ssh-keygen -t ed25519 -N '' -f ~/.ssh/ansible-test-ssh
    sudo install -d -m 700 -o test -g test /home/test/.ssh
    sudo install -m 600 -o test -g test ~/.ssh/ansible-test-ssh.pub \
        /home/test/.ssh/authorized_keys
    
    # Passwordless sudo for it.
    sudo /bin/bash -c 'echo "test ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/test'
    
    # Check both before handing them to the framework.
    ssh -i ~/.ssh/ansible-test-ssh test@127.0.0.1 sudo -n true && echo ok
    
    # Run one test against it, from the top of the repository.
    test_hw_addr=test@127.0.0.1 test_hw_key=~/.ssh/ansible-test-ssh \
        ./test/e2e/run_tests.sh ./test/e2e/policies.test-suite/template/n4c16/test01-dra
    
    # The same, leaving the runtime the host already has alone.
    containerd_release=installed test_hw_addr=test@127.0.0.1 test_hw_key=~/.ssh/ansible-test-ssh \
        ./test/e2e/run_tests.sh ./test/e2e/policies.test-suite/template/n4c16/test01-dra
     

    Diff: 268 lines (+201 / -67) across 3 files Reviewer: bart0sh Review duration: 9591m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 268 lines diff across 3 files
    0.39
    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.335
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #883"
    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: 39.4% (MEDIUM) · Higher = larger blast radius
    39.4%
    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: 15.6% · Safe to merge
    15.6%