Skip to content

Re-tidy the lang-SDK Go example against the upstream go-sdk - #70928

Merged
potiuk merged 1 commit into
apache:v3-3-testfrom
potiuk:backport-langsdk-tidy
Aug 1, 2026
Merged

Re-tidy the lang-SDK Go example against the upstream go-sdk#70928
potiuk merged 1 commit into
apache:v3-3-testfrom
potiuk:backport-langsdk-tidy

Conversation

@potiuk

@potiuk potiuk commented Aug 1, 2026

Copy link
Copy Markdown
Member

Kubernetes tests / K8S Lang-SDK:3.10-v1.30.13 fails on every commit on v3-3-test
(e.g. #70912, #70908), so it blocks every PR against the branch.

_lang_sdk_build_go_bundle packs go_example against upstream main's go-sdk, but
go_example's committed go.sum was tidied against this branch's go-sdk. Once the two
dependency graphs diverge Go refuses to build:

go: updates to go.mod needed; to update it:
	go mod tidy

Reproduced locally by assembling the same scratch workspace CI builds (upstream main's
go-sdk + this branch's go_example); go mod tidy reconciles three indirect pins
(x/net, x/sys, x/text, where main is ahead) and the bundle then packs cleanly.

main already carries this fix — the cherry-pick of #70824 landed without the re-tidy step
and its two test assertions. This restores both, leaving _lang_sdk_build_go_bundle and
test_kubernetes_lang_sdk_commands.py byte-identical to main.

Only the throwaway scratch copy is tidied; the committed go.sum is untouched and stays
guarded by the check-go-example-mod-tidy prek hook.

Both restored assertions fail without the source change and pass with it (18 passed).

Dev/CI tooling only, not user-facing, so no newsfragment.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

Generated-by: Claude Code (Opus 5) following the guidelines

The K8S Lang-SDK job fails on every commit here: the bundle is packed
against upstream main's go-sdk, but go_example's committed go.sum was
tidied against this branch's go-sdk, and the two dependency graphs have
diverged. Go refuses to build on that drift.

The cherry-pick of apache#70824 landed without the re-tidy step and its tests,
so main builds cleanly and this branch does not.
@potiuk
potiuk merged commit 2ce3cb4 into apache:v3-3-test Aug 1, 2026
4 checks passed
@potiuk
potiuk deleted the backport-langsdk-tidy branch August 1, 2026 21:20
@jason810496

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants