Repository navigation
ci: key native compile caches on pinned submodule commits - #492
Conversation
XuPeng-SH
left a comment
There was a problem hiding this comment.
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.
7a8cf18
into
matrixorigin:codex/pr-node-cache-two-group-capacity
## 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]>
Both coverage groups for matrixorigin/matrixone#33347 stop before running tests. The native compile cache enumerates
thirdparties/siriuswithgit ls-filesand tries to read the submodule directory as a regular file. Failing coverage runRead 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.