← Back to Pull requests

ci: fix kind e2e and test jobs on ubuntu-26.04 runners #20

Closed
unknown closed this pull request without merging on Oct 29, 2026 17:52 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 15:12 UTC
Author

ubuntu-latest now resolves to the ubuntu-26.04 runner image, and two of its changes break CI. The E2E Nightly workflow has been failing on every run since 2026-10-27, and Build and Test fails on every PR.

  • E2E (kind): the 26.04 runner boots with the kernel default inotify limits (max_user_instances=128, max_user_watches=129238). The runner-images build script still appends 1280 and 655360 to /etc/sysctl.conf, but 26.04 does not apply that file. Kind nodes share the runner kernel, so the connectivity test pods run out of inotify instances and the json-server echo pods crash:

  •   Error: EMFILE: too many open files, watch '/'
      

    ztunnel-pod-to-pod-encryption then times out in setup while it waits for cilium-test-ztunnel-unenrolled/echo-same-node. Failed run: https://github.com/cilium/ztunnel/actions/runs/40458580097. e2e-nightly.yaml and e2e-tests.yaml now set the 24.04 limits with sysctl before kind creates the cluster (kind known issue). The step is the same as the one cilium/cilium added to its two-cluster kind workflows in cilium/cilium@e7b22cadcc.
  • Build and Test: 26.04 ships sudo-rs as sudo. sudo-rs ignores a bare -E and always sets HOME to the target user's home, so cargo test runs the rustup proxy with HOME=/root:

  •   sudo: preserving the entire environment is not supported, '-E' is ignored
      error: rustup could not choose a version of cargo to run, because one wasn't specified explicitly, and no default is configured.
      

    pr-tests.yaml now drops -E and sets HOME and the job's cargo variables with env, which behaves the same under sudo and sudo-rs.

    The two fixes ship together because Build and Test and E2E Test (stable) are both required checks, so neither fix can merge alone.

    Also drops the invalid-value case from test_readiness_bind_address. It set READINESS_BIND_ADDRESS=not-an-ip in the process environment, so other config tests that call construct_config on parallel threads failed at random with EnvVar("READINESS_BIND_ADDRESS", "not-an-ip", "invalid IP address syntax"). Build and Test failed this way on this PR.

    Testing

    A workflow_dispatch run of E2E Tests on master without this PR fails on ubuntu-26.04 with the same EMFILE crash: https://github.com/cilium/ztunnel/actions/runs/40899232261

    Running the config::tests module 20 times locally gives 3 failures before the test change and 0 after.

    Reproduced the rustup error locally with classic sudo and no -E (HOME=/root). The new sudo env ... line resolves the toolchain as root. CI on this PR validates both fixes on ubuntu-26.04. E2E Nightly waits for the CI image of the master commit, so it validates on the first scheduled run after merge.

    Diff: 357 lines (+267 / -90) across 4 files Reviewer: MikeZappa87 Review duration: 160m
    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 · 357 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.352
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #20"
    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: 42.6% (MEDIUM) · Higher = larger blast radius
    42.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: 16.8% · Safe to merge
    16.8%
    Repository