← Back to Pull requests

sysfs: the accessors, fixtures and topology entries three consumers rebuilt by hand #44

Closed
unknown closed this pull request without merging on Nov 10, 2026 10:29 UTC
View on GitHub
unknown unknown commented on Nov 04, 2026 01:55 UTC
Author

Three consumers rebuilt by hand what the library should give them, found while reviewing NVIDIA/nvrc#245 and kata-containers/kata-device-provisioner#16.

  • Sysfs::infiniband_mad() and Sysfs::misc(): NVRC reached both classes with with_file_name on infiniband(), next to a literal of the same path.

  • Topology::network_functions: every class 0x02 function in BDF order, the order a guest's CDI spec indexes them in. NVRC ran a second full PCI scan with the catalog for the ConnectX functions that discover_topology had already read.

  • vfio::module_for returns Ok(None) for a readable table without a device-specific alias and an error only for a table it cannot read. The provisioner re-stats the file to tell the two apart; only variant drivers register device-specific aliases, so the caller decides what generic vfio-pci means for the device.

  • The fixture writes subsystem_device (the catalog reads the whole identity), links a function into its IOMMU group's devices/ listing as the kernel does, and gains add_infiniband_mad. NVRC's and the provisioner's tests wrote all three by hand.
  • Stacked on #38. Consumers re-pin once the stack merges: NVRC #245 drops connectx_functions and takes the functions from the topology after mode::detect, the provisioner drops the re-stat in drivers::module_for and the list_group_members test helper.

    Diff: 171 lines (+128 / -43) across 2 files Reviewer: zvonkok Review duration: 9154m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.35) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 171 lines diff across 2 files
    0.35
    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%
    56%
    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.308
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #44"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 35.2% (MEDIUM) · Higher = larger blast radius
    35.2%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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.2% · Safe to merge
    15.2%