Repository navigation
Description
Description
The documented MatrixOne Iceberg adapter test target fails from a clean main checkout before executing any adapter test because the nested adapter module's committed go.mod / go.sum are stale.
This was found while validating #23359. It is independent of the external Iceberg read failure: this issue concerns repository test reproducibility and dependency hygiene.
Environment
- Branch:
main - Commit:
1f9e501594509fb5d2e0284833faf8c3426e2285 - Test date:
2026-08-16 - Host: macOS arm64
- Go:
1.26.5 - Command:
make test-iceberg-adapter
Steps to reproduce
git clone https://github.com/matrixorigin/matrixone.git
cd matrixone
git checkout 1f9e501594509fb5d2e0284833faf8c3426e2285
export GOROOT=/path/to/go1.26.5
export PATH="$GOROOT/bin:$PATH"
# Build first so MatrixOne CGo headers/libraries are present.
make build
# Run the documented adapter gate.
make test-iceberg-adapterThe target executes:
cd pkg/iceberg/adapter/iceberggo
go test -tags iceberggo -count=1 ./...Actual behavior
The target exits before running tests:
[iceberg-ci] go test -tags iceberggo -count=1 ./...
go: updates to go.mod needed; to update it:
go mod tidy
make: *** [test-iceberg-adapter] Error 1
The failure reproduced 3/3 in a fresh detached worktree at the exact main commit.
go mod tidy -diff reports committed dependency drift, including:
+ github.com/BurntSushi/toml v1.2.1 // indirect
- github.com/andres-erbsen/clock ... // indirect
- go.uber.org/ratelimit v0.2.0 // indirectand corresponding go.sum cleanup.
Expected behavior
make test-iceberg-adapter should be reproducible from a clean checkout and execute the adapter test suite without modifying tracked module files.
Stability and controls
- Reproducer: 3/3 failed with the same
go.mod needederror. - Control: after running
go mod tidyin the nested module,go test -tags iceberggo -count=1 ./...passed in the original isolated diagnostic worktree after the normal MatrixOne build prerequisites were present. go mod tidy -diffis deterministic and identifies only dependency metadata drift.- No MatrixOne service, catalog, object store, credentials or external data are involved.
Evidence
Three consecutive fresh target outputs:
ROUND 1: rc=2, go: updates to go.mod needed
ROUND 2: rc=2, go: updates to go.mod needed
ROUND 3: rc=2, go: updates to go.mod needed
Code analysis
Confirmed location:
pkg/iceberg/adapter/iceberggo/go.modpkg/iceberg/adapter/iceberggo/go.sumoptools/iceberg_ci.bashadapter target invokes Go with module updates disabled by normal module-readonly behavior.
The deterministic go mod tidy -diff output confirms that the committed nested-module graph no longer matches imports and selected dependencies.
Regression coverage
After correcting the nested module files:
- Keep
make test-iceberg-adapteras a required Iceberg gate. - Add a CI hygiene assertion such as
cd pkg/iceberg/adapter/iceberggo && go mod tidy -diff, failing when the diff is non-empty. - Run the adapter target on the supported Linux CI environment; this does not require MOTR, big-data or chaos.
Related
- Source feature validation: [Feature Request]: Support External Iceberg Tables #23359
- Related CI builder/cold-cache timeout work: ci: move MongoDB and Iceberg E2E builds to a Docker-based shared builder #27094. That issue does not track the deterministic nested
go.mod/go.sumdrift reported here. - No matching open or closed MatrixOne issue was found using
Iceberg adapter,go.mod,go mod tidy, andtest-iceberg-adapter.
Activity
iamlinjunhong commentedon Aug 17, 2026
ci 目前关闭,等放到回归测试后处理
iamlinjunhong commentedon Aug 17, 2026
Additional CI evidence from PR #27157 (head
327b6b45c6e05dc604834ffe23294ba7f48466fe):32014540351, attempt1, job95341079450.make test-iceberg-e2e-local→ nestedpkg/iceberg/adapter/iceberggo:go test -tags iceberggo -count=1 ./....go: updates to go.mod needed; to update it: go mod tidy.up/main414fb8e0f854a4ab31519394542f93535e2c492f, aftermake build, the same nested command exits 1 with the identical error.This confirms the failure is independent of PR #27157. The associated workflow is advisory /
continue-on-error; a single failed-job rerun will be attempted after this evidence is recorded.iamlinjunhong commentedon Aug 17, 2026
Additional CI evidence from PR #27157:
327b6b45c6e05dc604834ffe23294ba7f48466fecd pkg/iceberg/adapter/iceberggo && go test -tags iceberggo -count=1 ./...go: updates to go.mod needed; go mod tidy.up/mainat484e1969531e7fbf7219b20e34d7ef23e110560breproduces the exact command with the same signature and exit status 1.This is therefore independent of PR #27157. The run already has one accepted rerun (attempt 2); it failed with the same signature, so no additional rerun was requested.
iamlinjunhong commentedon Aug 17, 2026
CI evidence for PR #27157 (head
327b6b45c6e05dc604834ffe23294ba7f48466fe):cd pkg/iceberg/adapter/iceberggo && go test -tags iceberggo -count=1 ./...(invoked bymake test-iceberg-e2e-local).go: updates to go.mod needed; to update it: go mod tidy; the job exits before adapter tests or E2E services start.up/mainworktree at484e1969531e7fbf7219b20e34d7ef23e110560balso exited 1 with the identical signature. The PR does not modify the adapter module, its module files, or Iceberg CI scripts.Per the CI-maintainer process, rerunning the failed job once after recording this evidence.
iamlinjunhong commentedon Aug 17, 2026
Additional final evidence for PR #27157 (head
327b6b45c6e05dc604834ffe23294ba7f48466fe):3.make test-iceberg-e2e-local→cd pkg/iceberg/adapter/iceberggo && go test -tags iceberggo -count=1 ./....go: updates to go.mod needed; to update it: go mod tidy(the job exits before the adapter tests and E2E services start).1with this signature; a clean detached officialup/mainworktree at484e1969531e7fbf7219b20e34d7ef23e110560bexits1with the identical command and signature.This confirms the failure is independent of PR #27157. Attempt 3 was accepted but failed identically; per the one-rerun-per-run policy, no further rerun is requested.