← Back to Pull requests

OCPBUGS-113647: E2E: Minor fixes to Memory Manager and hugepages split tests #1578

Closed
unknown closed this pull request without merging on Aug 25, 2026 17:50 UTC
View on GitHub
unknown unknown commented on Aug 06, 2026 07:40 UTC
Author

1. updating_profile: preserve existing reserved/isolated CPUs

Hardcoding isolated=1-2 and reserved=0,3 on large-CPU nodes inflated tuned.non_isolcpus and systemd.cpu_affinity, which could drop later cmdline args such as hugepages and break test_id:34081. Keep the profile's CPU set and assert isolcpus, affinity, and ReservedSystemCPUs against those values instead.

2. E2E: memorymanager: pin hugepages per NUMA for TopologyAffinityError tests

The restricted and single-numa-node fixtures assumed that configuring 20 x 2Mi hugepages without a NUMA Node would split evenly across both NUMA nodes (10/10). That is not how cmdline hugepages=N works: the
kernel places pages system-wide, and Memory Manager can see an uneven split (for example 24Mi on NUMA 0 and 16Mi on NUMA 1). With 24Mi free on one node, a Guaranteed pod requesting 24Mi hugepages + 2 CPUs was admitted instead of failing with TopologyAffinityError.

Pin 10 x 2Mi hugepages on each NUMA node so each zone has only 20Mi, restoring the rejection expectation. Also DeferCleanup test pods so flake retries do not leak hugepages from a failed attempt.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

Tests
Improved validation of hugepage allocation and capacity on each NUMA node.
Expanded coverage for NUMA affinity, topology errors, and scheduling failures.
Enhanced performance profile update checks to preserve and validate existing reserved and isolated CPU assignments.
Added validation for kubelet and system CPU configuration consistency, including OVS-DPDK reservations.
Improved resource cleanup between test scenarios.
* Added coverage for extracting kernel command-line parameters across common formats.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 232 lines (+174 / -58) across 2 files Reviewer: mrniranjan Review duration: 27970m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 232 lines diff across 2 files
0.37
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.326
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1578"
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: 37.1% (MEDIUM) · Higher = larger blast radius
37.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: 14.6% · Safe to merge
14.6%