Skip to content

ci: roll out shared Coverage reliability fixes - #33419

Merged
XuPeng-SH merged 7 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/coverage-ci-reliability-pin
Nov 28, 2026
Merged

XuPeng-SH merged 7 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/coverage-ci-reliability-pin

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Test and CI

Which issue(s) this PR fixes:

Fixes #33416.

What this PR does / why we need it:

Point the Coverage controller, both workers and the identity contract at the published revision ef2876eed20e186776c00127a1382384069e24e4 from CI #501. The default-branch entrypoint serves PRs targeting main and 4.2-dev.

Preflight checks the exact live PR revision on both sides of classification. It uses current GitHub cooldowns within a two-minute allowance on required revision reads. Unavailable file lists select full CI, and file counts at the API cap avoid pagination.

Successful parent attempts finish without standby discovery. Failed or cancelled attempts use one paginated scan per round to discover all active worker states. In a one-page time window this reduces discovery from 15 list calls to 3. The controller still verifies the exact worker marker and parent attempt before cancellation. The incident sample included 93 dedicated worker runs across six hours, which fits one page for those cleanup windows. Earlier cleanup change

On the published CI revision, 109 CI tests, 87 MatrixOne helper and contract tests, and actionlint passed locally. The pinned contract covers throttling, one failed-group redispatch, and exact cleanup.

The published CI revision has the same tree as the CI #501 head. A live 4.2-dev PR run confirmed that it uses the shared default-branch entrypoint and standby workflow. 4.2-dev Coverage run Measure live CS and Shanghai queue time and quota failures on fresh runs targeting both branches after rollout.

@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 →

@mergify

mergify Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH

XuPeng-SH commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · failed

Commit: da1bd46eb336836a4abfb190d2a7104acf39ff11

{"message": "You\u2019ve hit your usage limit. Visit https://chatgpt.com/settings/usage to purchase more credits or try again at Dec 1st, 2026 10:35 AM.", "codexErrorInfo": "usageLimitExceeded", "additionalDetails": null, "misalignment": null}

@XuPeng-SH
XuPeng-SH merged commit 3cb7a5e into matrixorigin:main Nov 28, 2026
61 of 87 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/coverage-ci-reliability-pin branch November 28, 2026 04:31
XuPeng-SH added a commit that referenced this pull request Nov 28, 2026
…29152)

## What type of PR is this?

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

## Which issue(s) this PR fixes:

Related to #28132. This PR delivers the opt-in external Python UDF
adapter for test and development. Production sandboxing and tenant
isolation remain outside this stage.

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

### Python type-family checks and launch config

Commit `b23ac8120eb6c71223ef9c3688f86522c3808c4f` declares the intended
Python decimal and temporal subsets checked by `TestTypeSwitchFamilies`.
DECIMAL256 and YEAR remain outside the Python ABI. TIME keeps the Arrow
Duration representation, and TIMESTAMP NULLs use an explicit typed
branch. The type-check baseline is unchanged. The rebase onto
`940d135ce8c0af3e0d855fb19f71e87d5ff8904d` also preserves both the
upstream Sirius settings and the Python UDF client settings in
`etc/launch/cn.toml`. Both remain disabled by default. [Failing Coverage
worker](https://github.com/matrixorigin/matrixone/actions/runs/46110161943/job/140871682350)

New Darwin/arm64 validation reproduced all eight diagnostics on the
prior head and passed `go test -short -tags matrixone_test -count=1 -run
'^TestTypeSwitchFamilies$' ./pkg/container/types` with the fix. The
Python UDF Go package in short mode, seven focused catalog and launcher
tests, TOML equivalence checks, scoped vet and lint, and the Loom
artifact check passed. Earlier SQL parser evidence remains applicable.
Hosted CI has yet to validate the new commit.


### Coverage workflow refresh

Rebased onto official `main` at
`3cb7a5e4a93dc5bd85e0fb107e558a07df934693` to pick up the shared
Coverage controller and worker update. The previous run's two Coverage
workers succeeded, and both selectors received HTTP 403 while reading
worker metadata. The Coverage summary therefore had no complete inputs.
[Previous
run](https://github.com/matrixorigin/matrixone/actions/runs/46103494522)
· [Shared CI fix](#33419)

The PR patch content is unchanged at
`c73c922a5fc5a78ae0e97c2be5ed26c182df449d`. Fresh validation passed for
`node --test .github/ci/*.test.cjs` (86 tests), actionlint on the active
entrypoint and Coverage worker, the full parser suite, two focused
backup tests, vet on `cmd/mo-service` and `pkg/backup`, and Loom's
artifact check. The parser and prepared-routine regression sources are
unchanged. The earlier real SQL result below is retained. Hosted CI on
the rebased head is pending.


### SQL identifier compatibility

Commit `af7fcda18ee8ed21acd431a38b87a473cf6c53bc` restores bare
`called`, `input`, `scalar`, and `vector` in generic function calls,
role names, and Iceberg references. Python routine mode and NULL-policy
clauses still use these keywords. [Review
finding](#29152 (review))

New Darwin/arm64 validation with Go 1.27.1:

- `go test -count=1 ./pkg/sql/parsers/...` passed. All 16 focused cases
returned syntax errors on the prior head and passed with the official
main parser overlay and with the fix. Repository goyacc regeneration was
byte-identical with zero conflicts.
- `go test -tags=matrixone_test -run '^TestPreparedRoutineFieldHistory$'
./pkg/tests/sqlintegration` passed against a real embedded CN. An
unquoted SQL routine named `vector` worked in direct queries and binary
PREPARE. The existing text PREPARE control also passed.
- Scoped vet, incremental lint, and Loom's PR artifact check passed. The
[previous head's
CI](https://github.com/matrixorigin/matrixone/actions/runs/46024432342)
remains the reference for unchanged worker and runtime paths. This round
used the parser and embedded CN lanes. Hosted CI for the new commit is
pending.


Replace the demo's per-value protobuf transport with typed,
revision-bound Python UDF execution over Arrow Flight. CN evaluates
expressions using native MatrixOne vectors and runs user code in
external handler processes.

- Share immutable routine revisions, type descriptors, and exact
overload identities with SQL UDFs. Validate definitions before
publishing digest-addressed artifacts. Invalidate cached and prepared
calls when the overload namespace changes.
- Support scalar and vector handlers while preserving SQL evaluation
semantics, including conditional execution, NULL handling, and DML error
atomicity.
- Bound Gateway and worker admission, stream windows, and terminal
state. Cancel work independently across invocations and clean up owned
handlers on worker exit. Exercise real workers through SQL and existing
multi-CN CI/BVT.
- Keep Python disabled in generic launch. Enabling the development
adapter requires explicit unisolated opt-in.

[Current design contract
(r46)](https://github.com/matrixorigin/matrixone/blob/e7d568b65b0bafd119444b5cbf1a96c91d1a4620/docs/design/python_udf_current_stage.md)
· [Design and approval
history](https://github.com/matrixorigin/matrixone/blob/e7d568b65b0bafd119444b5cbf1a96c91d1a4620/docs/design/python_udf_current_stage_approval.md)
· [Implementation and
rollout](https://github.com/matrixorigin/matrixone/blob/e7d568b65b0bafd119444b5cbf1a96c91d1a4620/docs/design/python_udf.md)
· [Overload
validation](https://github.com/matrixorigin/matrixone/blob/e7d568b65b0bafd119444b5cbf1a96c91d1a4620/docs/design/routine_namespace_validation.md)
· [Usage and BVT
cases](https://github.com/matrixorigin/matrixone/blob/e7d568b65b0bafd119444b5cbf1a96c91d1a4620/test/distributed/cases/udf_python/README.md)

### Compatibility and rollout

- Preserve existing SQL UDF behavior, including overload ranking and
snapshots with historical catalog layouts. Legacy demo Python
definitions require explicit recreation. A retained v4.2.6 launcher
block for the old Python server is skipped with a migration diagnostic.
[Snapshot and launcher
evidence](#29152 (review))
· [Overload compatibility
evidence](#29152 (review))
- The current contract uses catalog `4.0.7/53` and retains MORPC `134`
and the Arrow/Flight ABI. The new Python status RPC uses separate slots
from the upstream cache-locality RPC. Worker/Gateway capabilities and
environment digests must agree before execution.
- Artifact publication uses a shared lifetime reservation limit.
Production isolation, authenticated/TLS Flight, and full production
Operator rollout are outside this stage. See the current design contract
for limits and remaining verification.

### Validation and open review

- At `e7d568b65b0b`, hosted **CI Required**, ARM64 SCA, and the enabled
multi-CN BVT lanes passed. The rebased head also has local parser
regeneration, focused FLUSH/PREPARE, Python SQL, and cancellation
coverage. Hosted release-upgrade lanes were skipped. [CI
run](https://github.com/matrixorigin/matrixone/actions/runs/46024432342)
- Earlier targeted evidence covers published catalog fixtures, real
Flight workers, and cross-account snapshot restore. The capability-probe
cancellation fix passed focused race tests and CI on `41947d4bce9a`.
[Earlier capability-fix
CI](https://github.com/matrixorigin/matrixone/actions/runs/45980144802/attempts/2)
- **Open change request for `e7d568b65b0b`.** The latest review reports
that newly reserved words break some previously valid unquoted
identifiers in shared SQL parsing. [Current
review](#29152 (review))

---------

Co-authored-by: XuPeng-SH <[email protected]>

This branch was successfully deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

[Bug] Shared CI loses Coverage results during GitHub throttling and runs 4.2-dev with the wrong Go

2 participants