test/e2e: Enhance E2E Test Suite Flexibility and Configurability #3475
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 269 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.335
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #3475"
general
weight: 0.35
stevenhorsman
This Pull Request enhances the flexibility and configurability of the E2E test suite. It introduces environment-driven configurations and chainable builder methods to allow tests to run cleanly in custom or constrained test environments.
Specifically, it addresses three main aspects:
1. Configurable CAA Pod Labeling: Allows custom label key-value pairs to identify Cloud API Adaptor (CAA) pods.
2. Configurable Libvirt Assertion Timeout: Replaces the hardcoded 1-minute timeout with a configurable field.
3. Conditional PodVM Validation Skipping: Centralizes a bypass mechanism via the
SKIP_PODVM_VALIDATIONenvironment variable for environments where direct PodVM status checks/retrievals are restricted or unsupported.---
Detailed Changes
🏷️ 1. Configurable CAA Pod Labels
Added
GetCAAPodLabel()helper to the test provisioner package (test/provisioner/provision.go). This readsTEST_CAA_POD_LABEL_NAMEandTEST_CAA_POD_LABEL_VALUEenvironment variables, defaulting toapp=cloud-api-adaptorif unset.Updated the
getCaaPod()helper (test/e2e/assessment_helpers.go) to query dynamic labels using this new helper rather than expecting hardcoded label keys/values.⏱️ 2. Configurable Libvirt Assert Timeout
Added
timeout time.Durationfield toLibvirtAssertstruct (test/e2e/libvirt_common.go).Initialized
timeoutto1 time.Minuteduring construction of the assert helper.Added a chainable builder method
SetTimeout(timeout time.Duration) LibvirtAssert.Modified
DefaultTimeout()to return the configured timeout duration dynamically instead of a hardcoded 1-minute value.🚫 3. Conditional PodVM Validation Skipping
Added
SkipPodVMValidation()to the provisioner package to check forSKIP_PODVM_VALIDATION=true.Created a centralized package-level helper
skipPodVMValidation()intest/e2e/assessment_helpers.goto wrap and log when validation is being bypassed.test/e2e/assessment_runner.goandtest/e2e/nginx_deployment.goto check!skipPodvmValidation()before querying and asserting on PodVM resource limits and existence.