CNV-97765: Normalize ARM machine platform #6452
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 · 342 lines diff across 4 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.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6452"
general
weight: 0.35
geetikakay
##### What this PR does / why we need it:
Normalize
aarch64to the existingARM_64(arm64) value inget_machine_platform()so ARM machine names match the architecture spelling used for binary artifacts. Preserve the existingx86_64toamd64mapping and pass-through behavior for other architectures.Add
AARCH_64to the architecture constants and isolate the pure normalization helper inutilities/machine_platform.py.utilities.infrare-exports it for existing callers. Focused constants/helper tests import the real helper directly, withoutsys.modulesmanipulation or module-mock restoration.##### Which issue(s) this PR fixes:
ARM architecture-name normalization in cluster binary-artifact selection.
##### Special notes for reviewer:
Source inspection confirms the ARM execution guard in
tests/install_upgrade_operators/console_cli_download/test_disconnected_virtctl.pycan now match hosts reportingaarch64: itsget_machine_platform() == platformcomparison can match the ARM parameter'sarm64value. This is source-level verification, not evidence of an ARM cluster or full-image E2E run.Rebased onto
mainat7902463e5c659109c872ac938069f73ec6ff164c, preserving the original normalization changes. A follow-up adds only a descriptive assertion failure message required by the current test policy.Local validation on commit
f74a10e3e3280f8dd187146ea64e166e00d71025:uv run pre-commit run --all-files: all hooks passed.uv run tox -e utilities-unittests: 935 tests passed, 99.33% coverage against the required 95%.uv run tox: all six configured local environments passed. These include collection checks and do not establish end-to-end ARM cluster validation.A prior standalone import-order probe without Kubernetes configuration failed. It was not rerun for this rebase and is not counted as passing validation.
To repeat the focused verification:
Image-based ARM end-to-end validation is pending. Before merge, verify a full checkup image containing this tests revision through the checkup project's matching self-validation procedure on ARM nodes. Local unit tests are not a substitute for that verification.
Jira integration is intentionally not enabled: no ticket URL is supplied below.
##### jira-ticket:
NONE
---
AI-generated. Review for accuracy.
@dominikholler requested from Slack