[AIX] Check installed Go version with GOTOOLCHAIN=local in setup-host.sh #58301
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 316 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.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #58301"
general
weight: 0.35
chouquette
<!-- dd-meta {"pullId":"f65fd0f7-3369-4a80-9636-eab208460069","source":"chat","resourceId":"ac3c0eb7-3ca5-41d7-91d2-667b5d7344c8","workflowId":"8bae74e4-c70a-4d90-911d-4a583799cd00","codeChangeId":"8bae74e4-c70a-4d90-911d-4a583799cd00","sourceType":"code_channel"} -->
<!--Please give us some feedback on your experience writing this PR ! https://app.datadoghq.com/forms/43db4c02-6837-400c-8083-692e141b1b88 !-->
What does this PR do?
Runs the "is Go already installed?" check in Step 3 of packaging/aix/setup-host.sh with
GOTOOLCHAIN=local, so it reports the version actually installed in /opt/go. With a correct answer, the script reinstalls Go when the installed version doesn't match.go-version.Also replaces the outdated comment above the check (it still mentioned 1.26.5/1.26.6) with one that doesn't name versions, and explains why
GOTOOLCHAIN=localis needed.Motivation
The nightly
package_aix-ppc64job fails at the final verification step withgo: got go1.26.7, expected go1.26.9(e.g. https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/2145333658).Step 3 runs
/opt/go/bin/go versionfrom inside the repo beforelib/env.shis sourced, soGOTOOLCHAINfalls back to its default,auto. Since #57994 bumpedgo.worktogo 1.26.9, the installed go1.26.7 switches to a downloaded go1.26.9 toolchain and reports go1.26.9. The check passes and the reinstall is skipped.env.shthen exportsGOTOOLCHAIN=local, so the Step 6 verification sees the real go1.26.7 and fails.Describe how you validated your changes
go.workdeclares 1.26.9:-
GOTOOLCHAIN=auto go version→go1.26.9-
GOTOOLCHAIN=local go version→go1.26.3sh -non the script passes. shellcheck isn't installed in my environment, so the repo's shell lint in CI is the lint check.package_aix-ppc64run should install go1.26.9 and pass the final verification.Additional Notes
Step 6 doesn't need the same change: it runs after
env.shis sourced, andenv.shalready exportsGOTOOLCHAIN=local.🤖 Generated with <span>Claude Code</span> ([link removed](#removed-for-safety))
<a name="removed-for-safety"></a>
---
PR by Bits - View session in Datadog
Comment @datadog to request changes