Skip to content

ci: warm SCA preparation caches - #27132

Merged
XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:xp/cache-sca-prepare-env
Aug 13, 2026
Merged

XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:xp/cache-sca-prepare-env

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #27076

What this PR does / why we need it:

Extends the trusted main-branch SCA cache producer introduced by #27128.

  • warms exact-key native prerequisites (thirdparties/install, CPU cgo objects, libmo) for the SCA platform and compiler
  • warms the three static-check binaries with an exact Go/tool-recipe key
  • pins molint instead of resolving @latest, making the tool cache deterministic
  • verifies every cached artifact before publishing it
  • retains the existing Go module cache producer

The corresponding reusable workflow remains restore-only, so pull_request_target runs cannot save or poison shared caches. Native artifacts intentionally have no restore prefix: a PR changing C/native inputs gets a cache miss and rebuilds from source.

No static analysis is skipped. The expected saving is in the current 6–8 minute Prepare ENV phase. The cached payload is about 170 MB before compression (about 88 MB tools and 80 MB native artifacts).

Companion consumer: matrixorigin/CI#423

Validation

  • workflow YAML parsed successfully
  • actionlint passed for the warm-cache workflow
  • producer/consumer cache keys and paths match mechanically
  • make install-static-check-tools completed successfully with the pinned molint
  • make -n install-static-check-tools shows all three expected fixed tool versions
  • git diff --check passed

@XuPeng-SH
XuPeng-SH requested a review from fengttt as a code owner August 13, 2026 16:45
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH
XuPeng-SH merged commit 68a1377 into matrixorigin:main Aug 13, 2026
29 checks passed
@XuPeng-SH
XuPeng-SH deleted the xp/cache-sca-prepare-env branch August 13, 2026 17:21
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue matrixorigin#27076

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

Extends the trusted main-branch SCA cache producer introduced by matrixorigin#27128.

- warms exact-key native prerequisites (`thirdparties/install`, CPU
`cgo` objects, `libmo`) for the SCA platform and compiler
- warms the three static-check binaries with an exact Go/tool-recipe key
- pins `molint` instead of resolving `@latest`, making the tool cache
deterministic
- verifies every cached artifact before publishing it
- retains the existing Go module cache producer

The corresponding reusable workflow remains restore-only, so
`pull_request_target` runs cannot save or poison shared caches. Native
artifacts intentionally have no restore prefix: a PR changing C/native
inputs gets a cache miss and rebuilds from source.

No static analysis is skipped. The expected saving is in the current 6–8
minute `Prepare ENV` phase. The cached payload is about 170 MB before
compression (about 88 MB tools and 80 MB native artifacts).

Companion consumer: matrixorigin/CI#423

## Validation

- workflow YAML parsed successfully
- actionlint passed for the warm-cache workflow
- producer/consumer cache keys and paths match mechanically
- `make install-static-check-tools` completed successfully with the
pinned `molint`
- `make -n install-static-check-tools` shows all three expected fixed
tool versions
- `git diff --check` passed

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue matrixorigin#27076

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

Extends the trusted main-branch SCA cache producer introduced by matrixorigin#27128.

- warms exact-key native prerequisites (`thirdparties/install`, CPU
`cgo` objects, `libmo`) for the SCA platform and compiler
- warms the three static-check binaries with an exact Go/tool-recipe key
- pins `molint` instead of resolving `@latest`, making the tool cache
deterministic
- verifies every cached artifact before publishing it
- retains the existing Go module cache producer

The corresponding reusable workflow remains restore-only, so
`pull_request_target` runs cannot save or poison shared caches. Native
artifacts intentionally have no restore prefix: a PR changing C/native
inputs gets a cache miss and rebuilds from source.

No static analysis is skipped. The expected saving is in the current 6–8
minute `Prepare ENV` phase. The cached payload is about 170 MB before
compression (about 88 MB tools and 80 MB native artifacts).

Companion consumer: matrixorigin/CI#423

## Validation

- workflow YAML parsed successfully
- actionlint passed for the warm-cache workflow
- producer/consumer cache keys and paths match mechanically
- `make install-static-check-tools` completed successfully with the
pinned `molint`
- `make -n install-static-check-tools` shows all three expected fixed
tool versions
- `git diff --check` passed

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue matrixorigin#27076

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

Extends the trusted main-branch SCA cache producer introduced by matrixorigin#27128.

- warms exact-key native prerequisites (`thirdparties/install`, CPU
`cgo` objects, `libmo`) for the SCA platform and compiler
- warms the three static-check binaries with an exact Go/tool-recipe key
- pins `molint` instead of resolving `@latest`, making the tool cache
deterministic
- verifies every cached artifact before publishing it
- retains the existing Go module cache producer

The corresponding reusable workflow remains restore-only, so
`pull_request_target` runs cannot save or poison shared caches. Native
artifacts intentionally have no restore prefix: a PR changing C/native
inputs gets a cache miss and rebuilds from source.

No static analysis is skipped. The expected saving is in the current 6–8
minute `Prepare ENV` phase. The cached payload is about 170 MB before
compression (about 88 MB tools and 80 MB native artifacts).

Companion consumer: matrixorigin/CI#423

## Validation

- workflow YAML parsed successfully
- actionlint passed for the warm-cache workflow
- producer/consumer cache keys and paths match mechanically
- `make install-static-check-tools` completed successfully with the
pinned `molint`
- `make -n install-static-check-tools` shows all three expected fixed
tool versions
- `git diff --check` passed

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
ci — 27c88ad5 Deployed Aug 13, 2026 by XuPeng-SH via Matrixone Utils CI / Coverage #46127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants