Skip to content

ci: install Python UDF wheels from the runner cache - #510

Merged
XuPeng-SH merged 1 commit into
matrixorigin:mainfrom
XuPeng-SH:fix/python-udf-offline-wheelhouse
Nov 30, 2026
Merged

XuPeng-SH merged 1 commit into
matrixorigin:mainfrom
XuPeng-SH:fix/python-udf-offline-wheelhouse

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

Why

Shanghai jobs running the Python UDF preparation step repeatedly downloaded a 48.9 MB PyArrow wheel before UT. Multiple jobs timed out at this point. Legacy Coverage example

Change

Use the runner-provided wheelhouse when the architecture, Python ABI, and checked-out requirements digest match. Install into the existing per-job venv with --no-index. A cache miss follows the existing pip index path with the same retries and timeouts. The action now participates in the existing action metadata validation.

Validation

  • In a fresh, network-disabled Ubuntu 24.04 runner container, the real setup-python v5 found the prewarmed CPython. The action installed PyArrow from the runner image in about three seconds and all 154 MatrixOne Python worker tests passed.
  • An updated requirements digest used a controlled package index. A matching wheelhouse with a missing wheel failed the dependency installation.
  • All 160 Coverage routing and cache contract tests, actionlint 1.7.12, Bash syntax and whitespace checks passed.

Image producer

The cache becomes available after the companion image changes are published and rolled out to the Shanghai runner pools. ci-images #115

@XuPeng-SH
XuPeng-SH merged commit 32bb18d into matrixorigin:main Nov 30, 2026
1 check passed
XuPeng-SH added a commit to matrixorigin/matrixone that referenced this pull request Nov 30, 2026
## Summary

Update all four immutable CI references for routed Coverage to
`fbe329ef34f33871e96bbcf3a2a1e1a3bdc6a190`. The dispatcher, both
workers, and the pinned contract now point at the same CI release. CI
#510 added installation from the runner wheelhouse and CI #511 selected
that action in the Shanghai IDC worker. The published Shanghai runner
contains the matching Python UDF wheels.

## Validation

- `actionlint` 1.7.12 and `git diff --check` passed.
- All 11 MatrixOne Coverage identity and pin contract tests passed with
the exact merged CI companion.
- All 141 companion routing, admission, and capacity tests passed in the
runner base image with `jq`.
- The current MatrixOne Python UDF requirements match the published
wheelhouse checksum.

After merge, a Shanghai routed Coverage job running through the
protected entrypoint can verify the image wheelhouse with `Installing
Python UDF wheels from the runner image`. [CI
#510](matrixorigin/CI#510) · [CI
#511](matrixorigin/CI#511) · [Runner
release](https://github.com/matrixorigin/ci-images/actions/runs/46354323420/job/141634763247)
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