Skip to content

[4.2-dev] fix(build): use Go 1.26.4 for SIMD builds - #33001

Merged
XuPeng-SH merged 4 commits into
4.2-devfrom
issue-33000-4.2-dev
Nov 20, 2026
Merged

XuPeng-SH merged 4 commits into
4.2-devfrom
issue-33000-4.2-dev

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Fixes #33000

What this PR does / why we need it:

The shared CI builder now ships Go 1.27.0. Its experimental simd/archsimd API no longer provides the slice loads and pointer-based stores used by the 4.2-dev vector kernels.

For SIMD builds, the Makefile now uses the exact Go toolchain version declared in the root go.mod. Both modules keep Go 1.26.4 and the existing vector kernels stay in place. The binary's version metadata uses the selected compiler. The release runner can use its bundled Go 1.26.4. The shared builder can use a cached copy or obtain the toolchain through its configured Go proxy.

Validation

  • On Linux amd64, reproduced the original archsimd errors with the Go 1.27.0 launcher.
  • Ran make build GOBUILD_OPT=-cover with that same launcher and an available Go 1.26.4 toolchain. The binary built successfully. Its build info reported Go 1.26.4, GOAMD64=v3 and GOEXPERIMENT=simd. The mo-service -version output also reported Go 1.26.4.
  • Ran the vector metric package tests with SIMD enabled on an AVX2/AVX-512 host. All 392 test and subtest cases passed.
  • Checked the build commands for the normal, prebuilt-native, musl, SIMD-disabled and arm64 configurations.

…md API

Go 1.27 removed the deprecated simd/archsimd helpers that 4.2-dev's GOEXPERIMENT=simd kernels still call, so the rebuilt Go 1.27 ci-builder image can no longer compile pkg/vectorindex/metric (#33000). Port the mechanical migration from main #29496: 132 Load*Slice->Load renames and 5 Store(&arr)->StoreArray(&arr) call sites across the 7 amd64 kernel files, and raise the toolchain floor to go 1.27.0, matching main. Kernel math and CPU dispatch unchanged.

Fixes #33000
@XuPeng-SH
XuPeng-SH requested a review from fengttt as a code owner November 20, 2026 11:53
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify

mergify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

The root module now declares go >= 1.27.0 (#33001); the iceberg submodule builds against the root module via replace, so its go directive must not stay below the root's.
The shared Go 1.27 builder removed the Go 1.26 archsimd API. Restore both module versions and the release kernels, and select the root module toolchain for SIMD builds so the shared container and source fallback compile the same code.
@XuPeng-SH XuPeng-SH changed the title [4.2-dev] fix(vectorindex): build simd metric with the Go 1.27 archsimd API [4.2-dev] fix(build): use Go 1.26.4 for SIMD builds Nov 20, 2026
@matrix-meow matrix-meow added size/S Denotes a PR that changes [10,99] lines and removed size/M Denotes a PR that changes [100,499] lines labels Nov 20, 2026
@XuPeng-SH
XuPeng-SH merged commit 8a636f8 into 4.2-dev Nov 20, 2026
@XuPeng-SH
XuPeng-SH deleted the issue-33000-4.2-dev branch November 30, 2026 13:07
XuPeng-SH added a commit to jiangxinmeng1/matrixone that referenced this pull request Dec 1, 2026
Drop the backport-specific SIMD workaround superseded by matrixorigin#33001. Use the release Makefile to select the toolchain in go.mod and generate matching service and unit test coverage blocks.
XuPeng-SH added a commit to jiangxinmeng1/matrixone that referenced this pull request Dec 2, 2026
Drop the backport-specific SIMD workaround superseded by matrixorigin#33001. Use the release Makefile to select the toolchain in go.mod and generate matching service and unit test coverage blocks.

This branch was successfully deployed

No deployments
ci — 56acd121 Deployed Nov 20, 2026 by XuPeng-SH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants