Skip to content

ci: warm Go dependencies for CloudSigma Coverage - #517

Merged
XuPeng-SH merged 4 commits into
mainfrom
codex/cs-coverage-go-setup-20261201
Dec 1, 2026
Merged

XuPeng-SH merged 4 commits into
mainfrom
codex/cs-coverage-go-setup-20261201

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Failure evidence

Fresh CloudSigma Coverage workers open an empty module cache per job. The RUH worker for MatrixOne #33567 reached the 900-second package-discovery deadline while fetching modules. Separately, a 4.2-dev worker restored the 1.27.1 node bundle before setup-go timed out fetching 1.26.4. Package-discovery evidence · Go setup evidence

Changes

  • Select the source Go version before restoring the node bundle. Exact matches keep the verified PVC path. The release toolchain can come from the read-only image in ci-images #119. Other versions use the existing setup-go fallback.
  • Use the node’s standard file proxy only after the protected publisher activates a verified snapshot. The worker holds a shared local lock on the selected snapshot for the lifetime of the Coverage step. Its writable module cache remains private and uses the existing Go checksum rules. Misses follow the existing remote proxy chain.
  • Add a protected, on-demand workflow that prepares one deduplicated module proxy from the two target branches. It uploads a canonical tar identified by its content SHA-256 for site staging. Identical module versions share files across branches. The package is separate from the runner image.

Validation

  • 139 Coverage admission, standby, and worker contract tests passed under Linux/amd64. Actionlint and shell syntax checks passed.
  • In network-disabled Linux/amd64 containers with fresh module caches, the final worker read the verified 613,836,936-byte artifact snapshot and discovered 509 packages on main and 471 on 4.2-dev. A real Go test package graph completed with both the worker already reading a snapshot during rollback and a new worker selecting the restored snapshot.
  • Repacking the same module files with different file metadata and ZIP timestamps kept the content digest stable, skipped node transfer, and preserved the previous distinct snapshot.
  • The producer emitted a 601 MiB proxy containing 368 module ZIPs. It refused to replace an existing output and left no published output after an incomplete build.

Rollout

The protected node publisher is in cloudsigma-gitops #469. It verifies the transport on the existing PVC before atomically enabling it. After both PRs merge, prepare a producer artifact, publish to the target node and update the MatrixOne caller pin. Publish the image from ci-images #119 for the offline 4.2-dev compiler. Run a fresh RUH Coverage worker for each base after publication. Measure package-discovery duration and record the worker and collector results before closing MatrixOne #33529.

@XuPeng-SH
XuPeng-SH merged commit 03192c8 into main Dec 1, 2026
1 check passed
@XuPeng-SH
XuPeng-SH deleted the codex/cs-coverage-go-setup-20261201 branch December 1, 2026 11:13
XuPeng-SH added a commit to matrixorigin/matrixone that referenced this pull request Dec 1, 2026
## What type of PR is this?

- [ ] API-change
- [ ] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [x] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Related to #33529

## What this PR does / why we need it:

Pin the Coverage dispatcher, worker routes, collector and
cross-repository contract to the main commit of [CI
#517](matrixorigin/CI#517). The protected
default-branch entrypoint serves eligible PRs targeting both `main` and
`4.2-dev`.

CloudSigma workers can read the published module snapshot from their
node and use the Go toolchain matching the source `go.mod`. [GitOps
#469](matrixorigin/cloudsigma-gitops#469)
provides the snapshot publisher. [GitOps
#470](matrixorigin/cloudsigma-gitops#470) rolls
out the image carrying Go 1.26.4 and Python 3.12.

Actionlint and all 76 local entrypoint, worker identity and cancellation
contract tests passed against the published CI revision. Verify the
runner and snapshot rollouts before merging. After the switch, run
routed Coverage against both target branches and check package-discovery
timing, worker artifacts and the final collector.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant