Skip to content

ci: key native compile caches on pinned submodule commits - #492

Merged
XuPeng-SH merged 1 commit into
matrixorigin:codex/pr-node-cache-two-group-capacityfrom
zuyu:fix/native-cache-gitlinks
Nov 26, 2026
Merged

XuPeng-SH merged 1 commit into
matrixorigin:codex/pr-node-cache-two-group-capacityfrom
zuyu:fix/native-cache-gitlinks

Conversation

@zuyu

@zuyu zuyu commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Both coverage groups for matrixorigin/matrixone#33347 stop before running tests. The native compile cache enumerates thirdparties/sirius with git ls-files and tries to read the submodule directory as a regular file. Failing coverage run

Read staged Git metadata for native inputs and include each gitlink path and pinned object ID in the cache key. Regular files retain their content hashes and manifest timestamps. Checkouts without gitlinks retain their existing key format.

This PR targets the helper branch closest to the workflow’s pinned revision, 48edf24. Rollout requires selecting a reviewed helper SHA in the reusable CI workflows and then updating the MatrixOne workflow references.

Validation: all 10 node compile cache tests and 14 legacy coverage cache tests passed. The regression exercises an absent submodule directory, a populated directory, and a pin change. The helper also computed a key for the MatrixOne PR checkout with 196 regular file inputs.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head aad6dfe. The node-cache failure comes from treating a mode-160000 index entry as a regular file. This change gives gitlinks an explicit identity (path plus pinned OID) without adding them to the file manifest or timestamp restore; producer and consumer use the same key calculation and restore recomputes it. For checkouts without gitlinks, the serialized key shape is unchanged.

I verified the script blobs and ran the old and new key calculation against the exact MatrixOne #33347 checkout (c083fbe4) with the Sirius gitlink uninitialized: the old helper rejects the directory as non-regular, and the new helper returns a key with 196 regular inputs, excluding the gitlink from the manifest. The focused tests also cover pin changes, present/absent submodule content, and regular-file/build-flag invalidation. Independently, 14 legacy tests and 7 node-cache tests passed; the other 3 node-cache tests could not complete here because CMake is absent or the environment has less than the required 20 GiB free. No live coverage runner or cache publication was exercised.

Rollout check: pin this reviewed helper in the callers and verify both original coverage groups enter UT. This approval is for the node compile cache fix; it does not extend legacy exact-version artifacts to gitlink-bearing checkouts.

@XuPeng-SH
XuPeng-SH merged commit 7a8cf18 into matrixorigin:codex/pr-node-cache-two-group-capacity Nov 26, 2026
@zuyu
zuyu deleted the fix/native-cache-gitlinks branch November 26, 2026 23:58
mergify Bot pushed a commit to matrixorigin/matrixone that referenced this pull request Nov 27, 2026
## What changed

Pin the coverage coordinator and both standby workers to the workflow revision merged in matrixorigin/CI#493. The workers use the helper from matrixorigin/CI#492, which includes each submodule’s pinned commit in the native compile cache key.

Both coverage groups for #33347 failed before running tests when the old helper tried to hash the Sirius submodule directory as a file. The pull_request_target coordinator reads the trusted MatrixOne entrypoint from the default branch, so this rollout needs to land on main before a fresh coverage run can exercise the fix.

## Validation

Parsed both caller workflows and checked all three calls against the merged upstream YAML, including supplied and required inputs and the helper SHA. git diff --check passed.


Approved-by: XuPeng-SH <[email protected]>
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.

2 participants