Skip to content

[Bug]: test-iceberg-adapter fails because nested Go module metadata is stale #27197

Closed

Description

@Ariznawlll

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-adapter

The 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 // indirect

and 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 needed error.
  • Control: after running go mod tidy in 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 -diff is 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.mod
  • pkg/iceberg/adapter/iceberggo/go.sum
  • optools/iceberg_ci.bash adapter 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:

  1. Keep make test-iceberg-adapter as a required Iceberg gate.
  2. Add a CI hygiene assertion such as cd pkg/iceberg/adapter/iceberggo && go mod tidy -diff, failing when the diff is non-empty.
  3. Run the adapter target on the supported Linux CI environment; this does not require MOTR, big-data or chaos.

Related

Activity

  1. added this to the MO-202608 milestone on Aug 16, 2026
  2. added
    kind/bug
    on Aug 16, 2026
  3. added theissue type on Aug 16, 2026
  4. iamlinjunhong commented on Aug 17, 2026

    @iamlinjunhong
    Contributor

    ci 目前关闭,等放到回归测试后处理

  5. iamlinjunhong commented on Aug 17, 2026

    @iamlinjunhong
    Contributor

    Additional CI evidence from PR #27157 (head 327b6b45c6e05dc604834ffe23294ba7f48466fe):

    • Failed advisory check: Iceberg E2E Local, run 32014540351, attempt 1, job 95341079450.
    • Failed command: make test-iceberg-e2e-local → nested pkg/iceberg/adapter/iceberggo: go test -tags iceberggo -count=1 ./....
    • Stable error: go: updates to go.mod needed; to update it: go mod tidy.
    • Clean-main control: in detached current up/main 414fb8e0f854a4ab31519394542f93535e2c492f, after make 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.

  6. iamlinjunhong commented on Aug 17, 2026

    @iamlinjunhong
    Contributor

    Additional CI evidence from PR #27157:

    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.

  7. iamlinjunhong commented on Aug 17, 2026

    @iamlinjunhong
    Contributor

    CI evidence for PR #27157 (head 327b6b45c6e05dc604834ffe23294ba7f48466fe):

    • Failed check: Iceberg E2E Local; run 32014540351, job 95347711319, attempt 2.
    • Failing command: cd pkg/iceberg/adapter/iceberggo && go test -tags iceberggo -count=1 ./... (invoked by make test-iceberg-e2e-local).
    • Stable signature: go: updates to go.mod needed; to update it: go mod tidy; the job exits before adapter tests or E2E services start.
    • Attribution control: with the same CGo environment and command, the PR head exited 1 with that signature, and a clean detached official up/main worktree at 484e1969531e7fbf7219b20e34d7ef23e110560b also 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.

  8. iamlinjunhong commented on Aug 17, 2026

    @iamlinjunhong
    Contributor

    Additional final evidence for PR #27157 (head 327b6b45c6e05dc604834ffe23294ba7f48466fe):

    • Failed check: Iceberg E2E Local; run 32014540351, job 95353623414, accepted rerun attempt 3.
    • Failing command: make test-iceberg-e2e-local → cd pkg/iceberg/adapter/iceberggo && go test -tags iceberggo -count=1 ./....
    • Stable signature: go: updates to go.mod needed; to update it: go mod tidy (the job exits before the adapter tests and E2E services start).
    • Attribution control run today: PR head exits 1 with this signature; a clean detached official up/main worktree at 484e1969531e7fbf7219b20e34d7ef23e110560b exits 1 with 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.

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

Metadata

Metadata

Assignees

Labels

kind/bug

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions