Adding E2e tests (TC 6-9) #22
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.52) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 400 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.359
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #22"
general
weight: 0.35
Chunxia202410
(TC 6-7) DownwardAPIAssignedResources Feature Gate Toggle Test
This PR adds an e2e test verifying the full feature gate lifecycle (ON→OFF→ON) for
DownwardAPIAssignedResources:assigned.cpusetDownwardAPI volumeassigned.cpusetdropped from spec and not visible in containerassigned.cpuset(not retroactively restored)assigned.cpusetpresent and visible(TC 8-9) CPU Scale-Down Delay During Kubelet Upgrade/Downgrade
This PR adds an e2e test (
TestCPUScaleDownDelayKubeletUpgradeDowngrade) that validates the CPU scale-down delay behavior during kubelet upgrade and downgrade scenarios:DownwardAPIAssignedResources=true, and CPU manager static policy withscale-delay-time=10sDownwardAPIAssignedResources; verifies Pod-A survives downgrade; creates Pod-B to verify DownwardAPI cpuset is NOT populated with old kubeletFile Changes Summary
1.
feature_gate_toggle_test/downward_api_assigned_resources_toggle_test.go: Contains TC (6-7) - Feature gate toggle test implementation2.
kubelet_upgrade_downgrade/cpu_scale_down_delay_test.go: Contains TC (8-9) - Kubelet upgrade/downgrade test with CPU scale-down delay validation3.
common/kubelet_version_utils.go: Contains common functions to detect current K8s version and download old K8s binaries (implementation same as DRA team's, now exported for reuse)4.
common/resize.go: Contains common resize verification methods (implementation same ascpu_manager_test.go, moved here since Go doesn't allow exporting functions from test packages; modified to usektestingframework instead ofginkgo)5.
utils/localupcluster.go: AddsModifyFlagsByComponentfield toModifyOptionsthat allows modifying, replacing, or deleting command-line flags per component duringcluster.Modify(). This is needed for the kubelet upgrade/downgrade e2e test where the previous kubelet binary doesn't recognize certain flags and feature gates added in the current release.