← Back to Pull requests

e2e: DRA: compare topology-aware devices with the reference driver devices #896

Closed
unknown closed this pull request without merging on Nov 18, 2026 13:41 UTC
View on GitHub
unknown unknown commented on Nov 15, 2026 17:59 UTC
Author

A new e2e test, test50-dra-standard-slices, compares the DRA devices of the topology-aware policy with the reference driver devices. That driver publishes the standard CPU device attributes.

The test runs these steps:

  • It saves our devices before any claim exists.

  • It stops our plugin. Both drivers are NRI plugins. Only one of them runs at a time.

  • It runs the reference driver twice. The first run publishes a device per NUMA node. The second run publishes a device per socket.

  • For each reference device, it looks for our device with the same name and level. Our device must have every attribute of the reference device with the same value. The capacity values and allowMultipleAllocations must match too.
  • Our devices may lack the legacy NUMA attributes dra.net/numaNode and dra.cpu/numaNodeID. Our devices may also have extra attributes.

    The test does not compare machine devices. The two drivers pick the claim CPUs in different places. The reference driver groups by machine only with its external allocator. Its machine device then lists the IDs of all its CPUs. The Kubernetes scheduler picks the CPUs of each claim from them. Our policy picks the claim CPUs itself. Our machine device does not list CPU IDs.

    The reference driver runs from its staging image. Its chart comes from its git repository, at the commit of the image. By default the test runs the "latest" tag. It fails when that image lags the main branch of the repository by more than 14 days.

    Test variables change the defaults. std_tag sets the image tag. std_max_lag_days sets the allowed lag. std_allowed sets the attributes which our devices may lack.

    The test is skipped when DRAConsumableCapacity is not enabled.

    Both drivers list the PCIe roots of a device only if the API server accepts list attributes. Our plugin checks this itself. The test turns them on in the reference driver only when a new test helper, dra-list-attributes, reports support. test43 uses the helper too. The helper fails the test when the check fails for a reason other than a disabled gate.

    The test fails at start when another dra.cpu driver has slices in the cluster.

    Testing

  • n4c16 Fedora 43 VM with containerd: test43 and test50 passed. "latest" was tag v20261116-9984d46, the head of main. Our devices matched the reference devices by NUMA node and by socket. The VM does not have the DRAListTypeAttributes gate. Neither driver published PCIe roots.

  • n4c16 Fedora 43 VM with containerd and the DRAListTypeAttributes gate: test43 and test50 passed. Both drivers published PCIe roots. Our devices matched the reference devices by NUMA node and by socket.
  • Diff: 330 lines (+247 / -83) across 4 files Reviewer: askervin Review duration: 4062m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 330 lines diff across 4 files
    0.42
    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.347
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #896"
    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.1% (MEDIUM) · Higher = larger blast radius
    42.1%
    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.6% · Safe to merge
    16.6%