Skip to content

feat(sql): add local sliding-window ranks mrank, cumrank, tmrank - #31020

Merged
mergify[bot] merged 5 commits into
matrixorigin:mainfrom
gouhongshen:agent/issue-29947-main-a57124ee
Oct 24, 2026
Merged

mergify[bot] merged 5 commits into
matrixorigin:mainfrom
gouhongshen:agent/issue-29947-main-a57124ee

Conversation

@gouhongshen

@gouhongshen gouhongshen commented Oct 24, 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:

Related to #29947

What this PR does / why we need it:

An alert often needs to ask how unusual the current observation is relative to
the most recent observations. Partition-wide RANK changes with the entire
history and cannot answer that local question, and a ROWS clause on RANK does
not make it frame-local: the SQL ranking functions exposed by MatrixOne
(RANK, DENSE_RANK, PERCENT_RANK, ROW_NUMBER) are all partition-wide by
definition. This PR adds the three frame-local competition-rank operators
requested in the issue, so the local question has a direct SQL spelling:

  • mrank(v, N): 1-based ascending competition rank of the current non-NULL
    v[j] among the last N physical rows of the partition (frame
    max(partStart(j), j-N+1) .. j, ties share the rank, NULL values never
    rank), returning NULL when v[j] is NULL.
  • cumrank(v): the same rank counted from the partition start through the
    current row.
  • tmrank(v, INTERVAL n unit): the same rank over the trailing time window -
    RANGE-interval membership [ts_j - D, ts_j] including the current
    timestamp's peer group - intersected with the rows at or before the current
    row (k <= j), using the same window-interval grammar user RANGE frame
    bounds use (string spellings take MySQL's integral prefix, decimal
    magnitudes quantize to microseconds, prepared numeric values take MySQL's
    nearest-integer conversion).

The declared business profile from the issue - mrank(v, 3) over its six-row
fixture producing NULL, 1, 2, 2, NULL, 1, agreeing with the issue's own
independent self-join control - is asserted end to end by the new BVT case.

Root cause

The capability has no owner in the engine: no frame-local ranking entry
existed in the function catalog, the binder had no path that publishes the
(moving) row-count or (time) interval width as window-function configuration,
and the window operator had no kernel that ranks only within the current
frame. Adding it requires three coordinated owners (catalog entry with exact
shape checks, a binder path for each operator's width contract, and a window
operator kernel with per-row frame access), which is why the change ships with
the reviewed versioned design docs/design/20261023-local-sliding-window-ranks.md
(approved revision 8, file SHA-256
7bd5296382c677319455fc8fafc3ed63b4fdf3900e3ab36ff108f51f9ba52e76,
design-review PASS completed 2026-10-23 - the traceable record is section 9
of that document) and tests at every layer.

What changed

  • Parser (pkg/sql/parsers/dialect/mysql): new non-reserved window tokens
    MRANK, CUMRANK, TMRANK and grammar productions
    MRANK '(' expression ',' expression ')' window_spec,
    CUMRANK '(' expression ')' window_spec,
    TMRANK '(' expression ',' interval-shaped expression ')' window_spec;
    table/column/alias identifiers named mrank/cumrank/tmrank keep parsing.
  • Catalog (pkg/sql/plan/function): function IDs 616-618 (renumbered from the
    drafted 605-607 when main's technical-indicator kernels feat: technical-indicator window kernels and rolling risk analytics #31017 claimed that
    block across the 2026-10-24 conflict-resolution merge; every rank reference
    is by name) and window-function
    entries with exact shape checks - mrank exactly (numeric-or-temporal value,
    integer width), cumrank exactly (value), tmrank only the internal
    three-argument (value, count, unit) shape the binder's conversion case
    publishes. Non-integer ordinary widths (1.5, strings) keep the ordinary bind
    rejection, mirroring NTILE's bucket count.
  • Binder (pkg/sql/plan): tmrank's public INTERVAL n unit width is
    converted through the window frame-bound interval grammar
    (bindTmRankWidthArgument); control functions, non-foldable, indirect-prepared
    and volatile/effectful width sources (INTERVAL RAND() DAY, INTERVAL SLEEP(0) DAY, INTERVAL (1 + RAND()) DAY in all spellings) are refused
    before evaluation by the shared admission boundary ([Bug] CI BVT fulltext2_copy_alter misses expected rows #28985 pattern): the
    tier-2 walk admits only the resolver's fold-switch operators over admitted
    spines plus functions the registry positively proves pure
    (function.GetFunctionIsProvenPureFoldableById, the same guarded-fold rule
    isGeometrySRIDConstFoldSafe uses), so nothing nondeterministic or
    side-effectful is ever eagerly evaluated at bind time; statement-constant width validation runs per
    execution before sources start, independently of row production
    (ValidateIntervalFrameBounds extension), including PREPAREd widths over
    empty input and under LIMIT 0; a bare prepared mrank width marker binds in
    the integer domain (NTILE parity) so PREPARE ... mrank(v, ?) OVER (...)
    succeeds and every EXECUTE is re-resolved against the fill's own domain;
    prepared tmrank magnitudes retain the raw (source, unit) pair and
    re-materialize per execution.
  • Plan rules: visit_plan_rule.go re-materializes prepared width sources with
    their runtime domain; deepcopy.go carries the new published expressions.
  • Operator (pkg/sql/colexec/window): new local_rank.go kernel - 1-based
    ascending competition rank over every catalog-admitted numeric/temporal value
    domain (including YEAR storage and DECIMAL256), a uint64-safe width reader
    (a width above the partition simply covers it), the trailing k <= j cut,
    NULL current values returning NULL, and scan-level cancellation; window.go
    resolves tmrank membership at partition-stable bounds through a civil-order
    index reused by every row of a partition generation (with a generation-scoped
    cache clear); interval.go owns tmrank's width materialization and its
    overflow validation.
  • Tests: grammar/error-shape tests
    (window_local_rank_parser_test.go), registry pin
    (function_id_test.go), bind tests (window_local_rank_bind_test.go
    including the prepared-width contracts), kernel tests
    (local_rank_test.go: fixtures and oracles, NULL bits, ties, partition
    resets, frame entry/exit, value domains, unsigned width boundaries, the
    DST-fold civil ordering, mid-scan cancellation, width-adapter typed
    conversions, plan immutability), bind-level volatile-width
    admission rejections (rand/sleep direct, sleep under an admitted arithmetic
    spine, the nil-proc pre-evaluation refusal proofs), and the BVT case
    test/distributed/cases/window/window_local_rank.sql (181 statements: the
    profile fixture and its self-join control, partitions, ties, NULL values and
    keys, value domains, unsigned widths, prepared mrank/tmrank ladders with
    overflow refusals and recovery, a 40-hour-witness section separating the
    constant decimal width grammar from the prepared nearest-int reading, and
    the public volatile-width refusals for rand/sleep, direct and nested).

Branch maintenance (2026-10-24)

main advanced into this PR's window/registry area with the
technical-indicator kernels (#31017), making the branch conflicting. The
conflict-resolution merge keeps both sides: the eleven indicator
registrations (SMA..CUMPOSITIVESTREAK, IDs 605-615) and the three rank
registrations (MRANK/CUMRANK/TMRANK, IDs 616-618, sentinel 619 - the
drafted 605-607 block was claimed on main first and was never in any
release; all rank references are by name, so the ordered renumber is
behavior-neutral per the registry's own ONNX_RUN/LOAD_TEXT merge
precedent); both generation-scoped executor cleanups at the same eval
entry; both grammar token/alternation sets, with mysql_sql.go
regenerated through the repository's zero-conflict gate. The merged
package suites stay green (parsers, function registry, plan,
window - the last running both this kernel and the indicator kernels).
The design document's section 9 records the ID renumber as
post-approval bookkeeping (D8's first-free-numbers decision applied to
the merged base). No public SQL surface changed.

Issue-to-test proof

  • The issue's declared profile is asserted by the new BVT case:
    mrank(v, 3) over the six-row fixture returns NULL, 1, 2, 2, NULL, 1,
    exactly what the issue's independent self-join control produces, and the
    case also covers the issue's requested additions: partitions, ties,
    NULL-valued rows, frame entry/exit, value-type and width boundaries, and
    prepared execution. Named/API availability is validated separately from the
    mathematical rewrite (entry resolution, grammar rejections, the OVER-less
    probe).
  • Red/green on the same case: 181/181 statements pass (100%) with this change;
    the identical case fails 101/181 on the unmodified base binary, where
    every mrank/cumrank/tmrank statement rejects on the grammar or binds
    as an unsupported function - the case itself discriminates the fix.
  • Red/green at bind level for the review fix (volatile widths): the real-SQL
    admission tests fail on the pre-fix walker (rand/sleep/nested-rand widths
    published as literal count/unit pairs) and pass with the fix, including the
    nil-proc refusal proofs that no eager evaluation runs before the admission
    decision.
  • Kernel-level oracles pin the semantics the SQL case cannot isolate: the
    k <= j trailing cut with a higher-valued first peer (a leaked later
    lower-valued peer would flip its rank), equal-value peers under any engine
    scan order, the DST-fold civil wall-clock membership, and the mutation check
    that scan-level cancellation actually aborts an active frame scan.

Test commands

go test ./pkg/sql/parsers/dialect/mysql/ ./pkg/sql/plan/function/ ./pkg/sql/colexec/window/ ./pkg/sql/plan/
# ok for each owning package on the merged branch
# (parsers: ok 1.277s, function: ok 17.219s, plan: ok 73.651s, window: ok 48.677s)

# BVT single case (mo-tester, window directory):
io.mo.Tester path=test/distributed/cases/window/ method=run rate=100 include=window_local_rank
# with this change: TOTAL: 181, SUCCESS: 181, SUCCESS RATE: 100%
# unmodified base binary: TOTAL: 181, SUCCESS: 80, FAILED: 101

# post-merge sibling integration check (mo-tester, function directory):
io.mo.Tester path=test/distributed/cases/function/ method=run rate=100 include=func_indicator_kernels
# merged branch keeps upstream's indicator BVT green: TOTAL: 69, SUCCESS: 69, SUCCESS RATE: 100%

Residual risks

  • The neighboring nine window BVT files carry pre-existing drifted expectations
    (identical failure sets on the base binary and on this branch); they are
    untouched by this PR and remain for CI's expected-failure handling. Only
    window_local_rank differs between the two binaries.
  • The full distributed BVT tree and launched-cluster/distributed modes were
    not run locally; the branch's evidence is the owning-directory single case
    plus the owning Go packages, and CI covers the wider matrix.
  • The prepared-width typed conventions are pinned at three layers (bind-level
    fill, SQL EXECUTE, COM_STMT); the recorded refusal texts ([DOUBLE DECIMAL64], [DOUBLE VARCHAR], [DOUBLE ANY], invalid argument interval)
    would change if the generic prepared re-resolution is ever unified - BVT
    expectations must then be regenerated deliberately.
  • Function-ID tail 616-619 is pinned by Test_funids (renumbered from the
    drafted 605-608 when main's feat: technical-indicator window kernels and rolling risk analytics #31017 claimed 605-615 across the merge) and
    fails loudly if a later registry rebase moves it again.

## What type of PR is this?

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

## Which issue(s) this PR fixes:

Related to matrixorigin#29947

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

An alert often needs to ask how unusual the current observation is relative to
the most recent observations. Partition-wide RANK changes with the entire
history and cannot answer that local question, and a ROWS clause on RANK does
not make it frame-local: the SQL ranking functions exposed by MatrixOne
(`RANK`, `DENSE_RANK`, `PERCENT_RANK`, `ROW_NUMBER`) are all partition-wide by
definition. This PR adds the three frame-local competition-rank operators
requested in the issue, so the local question has a direct SQL spelling:

- `mrank(v, N)`: 1-based ascending competition rank of the current non-NULL
  `v[j]` among the last N physical rows of the partition (frame
  `max(partStart(j), j-N+1) .. j`, ties share the rank, NULL values never
  rank), returning NULL when `v[j]` is NULL.
- `cumrank(v)`: the same rank counted from the partition start through the
  current row.
- `tmrank(v, INTERVAL n unit)`: the same rank over the trailing time window -
  RANGE-interval membership `[ts_j - D, ts_j]` including the current
  timestamp's peer group - intersected with the rows at or before the current
  row (`k <= j`), using the same window-interval grammar user RANGE frame
  bounds use (string spellings take MySQL's integral prefix, decimal
  magnitudes quantize to microseconds, prepared numeric values take MySQL's
  nearest-integer conversion).

The declared business profile from the issue - `mrank(v, 3)` over its six-row
fixture producing `NULL, 1, 2, 2, NULL, 1`, agreeing with the issue's own
independent self-join control - is asserted end to end by the new BVT case.

### Root cause

The capability has no owner in the engine: no frame-local ranking entry
existed in the function catalog, the binder had no path that publishes the
(moving) row-count or (time) interval width as window-function configuration,
and the window operator had no kernel that ranks only within the current
frame. Adding it requires three coordinated owners (catalog entry with exact
shape checks, a binder path for each operator's width contract, and a window
operator kernel with per-row frame access), which is why the change ships with
the reviewed versioned design `docs/design/20261023-local-sliding-window-ranks.md`
and tests at every layer.

### What changed

- Parser (`pkg/sql/parsers/dialect/mysql`): new non-reserved window tokens
  `MRANK`, `CUMRANK`, `TMRANK` and grammar productions
  `MRANK '(' expression ',' expression ')' window_spec`,
  `CUMRANK '(' expression ')' window_spec`,
  `TMRANK '(' expression ',' interval-shaped expression ')' window_spec`;
  table/column/alias identifiers named `mrank`/`cumrank`/`tmrank` keep parsing.
- Catalog (`pkg/sql/plan/function`): function IDs 605-607 and window-function
  entries with exact shape checks - `mrank` exactly (numeric-or-temporal value,
  integer width), `cumrank` exactly (value), `tmrank` only the internal
  three-argument (value, count, unit) shape the binder's conversion case
  publishes. Non-integer ordinary widths (1.5, strings) keep the ordinary bind
  rejection, mirroring NTILE's bucket count.
- Binder (`pkg/sql/plan`): `tmrank`'s public `INTERVAL n unit` width is
  converted through the window frame-bound interval grammar
  (`bindTmRankWidthArgument`); control functions, non-foldable and indirect
  prepared width sources are refused before evaluation by the shared admission
  boundary (matrixorigin#28985 pattern); statement-constant width validation runs per
  execution before sources start, independently of row production
  (`ValidateIntervalFrameBounds` extension), including PREPAREd widths over
  empty input and under LIMIT 0; a bare prepared `mrank` width marker binds in
  the integer domain (NTILE parity) so `PREPARE ... mrank(v, ?) OVER (...)`
  succeeds and every EXECUTE is re-resolved against the fill's own domain;
  prepared `tmrank` magnitudes retain the raw (source, unit) pair and
  re-materialize per execution.
- Plan rules: `visit_plan_rule.go` re-materializes prepared width sources with
  their runtime domain; `deepcopy.go` carries the new published expressions.
- Operator (`pkg/sql/colexec/window`): new `local_rank.go` kernel - 1-based
  ascending competition rank over every catalog-admitted numeric/temporal value
  domain (including YEAR storage and DECIMAL256), a uint64-safe width reader
  (a width above the partition simply covers it), the trailing `k <= j` cut,
  NULL current values returning NULL, and scan-level cancellation; `window.go`
  resolves tmrank membership at partition-stable bounds through a civil-order
  index reused by every row of a partition generation (with a generation-scoped
  cache clear); `interval.go` owns tmrank's width materialization and its
  overflow validation.
- Tests: grammar/error-shape tests
  (`window_local_rank_parser_test.go`), registry pin
  (`function_id_test.go`), bind tests (`window_local_rank_bind_test.go`
  including the prepared-width contracts), kernel tests
  (`local_rank_test.go`: fixtures and oracles, NULL bits, ties, partition
  resets, frame entry/exit, value domains, unsigned width boundaries, the
  DST-fold civil ordering, mid-scan cancellation, width-adapter typed
  conversions, plan immutability), and the BVT case
  `test/distributed/cases/window/window_local_rank.sql` (178 statements: the
  profile fixture and its self-join control, partitions, ties, NULL values and
  keys, value domains, unsigned widths, prepared mrank/tmrank ladders with
  overflow refusals and recovery, and a 40-hour-witness section separating the
  constant decimal width grammar from the prepared nearest-int reading).

### Issue-to-test proof

- The issue's declared profile is asserted by the new BVT case:
  `mrank(v, 3)` over the six-row fixture returns `NULL, 1, 2, 2, NULL, 1`,
  exactly what the issue's independent self-join control produces, and the
  case also covers the issue's requested additions: partitions, ties,
  NULL-valued rows, frame entry/exit, value-type and width boundaries, and
  prepared execution. Named/API availability is validated separately from the
  mathematical rewrite (entry resolution, grammar rejections, the OVER-less
  probe).
- Red/green on the same case: 178/178 statements pass (100%) with this change;
  the identical case fails 98/178 (44%) on the unmodified base binary, where
  every `mrank`/`cumrank`/`tmrank` statement rejects on the grammar or binds
  as an unsupported function - the case itself discriminates the fix.
- Kernel-level oracles pin the semantics the SQL case cannot isolate: the
  `k <= j` trailing cut with a higher-valued first peer (a leaked later
  lower-valued peer would flip its rank), equal-value peers under any engine
  scan order, the DST-fold civil wall-clock membership, and the mutation check
  that scan-level cancellation actually aborts an active frame scan.

### Test commands

```
go test ./pkg/sql/parsers/dialect/mysql/ ./pkg/sql/plan/function/ ./pkg/sql/colexec/window/ ./pkg/sql/plan/
# ok for each owning package (plan: ok 233.9s, window: ok 21.3s on this change)

# BVT single case (mo-tester, window directory):
io.mo.Tester path=test/distributed/cases/window/ method=run rate=100 include=window_local_rank
# with this change: TOTAL: 178, SUCCESS: 178, SUCCESS RATE: 100%
# unmodified base binary: TOTAL: 178, SUCCESS: 80, FAILED: 98
```

### Residual risks

- The neighboring nine window BVT files carry pre-existing drifted expectations
  (identical failure sets on the base binary and on this branch); they are
  untouched by this PR and remain for CI's expected-failure handling. Only
  `window_local_rank` differs between the two binaries.
- The full distributed BVT tree and launched-cluster/distributed modes were
  not run locally; the branch's evidence is the owning-directory single case
  plus the owning Go packages, and CI covers the wider matrix.
- The prepared-width typed conventions are pinned at three layers (bind-level
  fill, SQL EXECUTE, COM_STMT); the recorded refusal texts (`[DOUBLE
  DECIMAL64]`, `[DOUBLE VARCHAR]`, `[DOUBLE ANY]`, `invalid argument interval`)
  would change if the generic prepared re-resolution is ever unified - BVT
  expectations must then be regenerated deliberately.
- Function-ID tail 605-608 is pinned by `Test_funids` and fails loudly if the
  registry rebase moves it.
@gouhongshen

gouhongshen commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

CI status note for run 40063809240 — attempt 2 reached its terminal failure at 2026-10-24T05:57:13Z. The single authorized failed-jobs rerun (issued 05:48:41Z) reproduced the same infrastructure failure classes as attempt 1, this time entirely inside repository checkout: all three rerun producer jobs died fetching this PR's head e636088 from its fork behind the runner proxy, before any MatrixOne source was built, tested, or analyzed, and the two remaining failed checks are pure downstream gates. No build, unit test, static analysis, or coverage verdict of this PR's code has executed or failed in either attempt.

  1. Matrixone CI execution / UT Test on Ubuntu/x86 (job 120794347475, 05:48:55Z→05:54:35Z, runner amd64-mo-shanghai-8c16g-dkj59-runner-hh86r): all three actions/checkout fetch attempts ended with GnuTLS termination — error: RPC failed; curl 35 gnutls_handshake() failed + fatal: expected 'packfile', then two fatal: unable to access 'https://github.com/gouhongshen/matrixone/': gnutls_handshake() failed — git exit 128. Every later step, including Unit Testing, was skipped. Recorded on CI: Ubuntu UT checkout intermittently fails with GnuTLS handshake error #28113: recurrence record. Attempt 1 of this lane failed at the shared setup-cmake ninja-build download (tracked on [Bug]: Coverage CI fails when setup-cmake cannot download Ninja (HTTP 503) #27066).
  2. Matrixone CI execution / SCA Test on Linux/arm64 (job 120794347223, 05:48:56Z→05:53:51Z, runner arm64-mo-shanghai-4c8g-dcv8r-runner-jpjct): all three checkout fetch attempts failed with gnutls_handshake() failed: The TLS connection was non-properly terminated.; Set up Go, Static Code Analysis, and all later steps were skipped. Recorded on the umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028: recurrence record. Attempt 1 of this lane failed at the CMake download (tracked on [Bug]: Coverage CI fails when setup-cmake cannot download Ninja (HTTP 503) #27066).
  3. Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 (job 120794347622, 05:49:01Z→05:56:59Z, runner amd64-mo-guangzhou-2xlarge16-jvhxs-runner-z2w8r): the depth-3 git fetch of the head produced no output from 05:51:47Z until the 5-minute deadline — ##[error]The action 'Checkout MatrixOne source' has timed out after 5 minutes.; every coverage build/test/summary step was skipped and no profile was published. Recorded on [Bug]: UT Coverage checkout fails after repeated GnuTLS termination #28411: recurrence record — identical silent-stall variant, same Guangzhou jvhxs fleet as attempt 1.
  4. Matrixone Coverage execution / Coverage (job 120795923721, 05:57:02Z→05:57:06Z): downstream gate of item 3 — started with PREREQUISITES_READY: false and aborted with coverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated.
  5. CI Required (job 120795946481, 05:57:08Z→05:57:13Z): aggregate gate — failed with Error: matrixone-ci: failure, projecting items 1–4 only; no independent product-code verdict.

All failures are isolated from this PR's code: within the same run, CI preflight, Matrixone Shared Build / Build MatrixOne (shared) (identical head, fetched in ~8 seconds in attempt 1), multi cn e2e bvt test docker compose(PROXY), and multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC) all completed successfully and their results were retained in attempt 2, so the head is fetchable, buildable, and testable, and the failures reflect runner-proxy checkout transport state only. This PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action, so no source change is warranted for these failures.

The per-run failed-jobs rerun budget for run 40063809240 is consumed (attempt 2); no further rerun of this run is requested. The PR stays blocked on these documented runner-proxy infrastructure classes until a fresh CI attempt can reach a real verdict.


Update 2026-10-24T07:15Z — fresh run on the unchanged head reproduced the same two checkout-failure classes.

A new full MatrixOne ALL CI run, run 40072115909 (attempt 1, created 2026-10-24T06:55:35Z; head still e636088, not advanced), again lost both code-verdict lanes inside actions/checkout behind the runner proxy, before any MatrixOne source was built, tested, or analyzed:

  1. Matrixone CI execution / UT Test on Ubuntu/x86 (job 120807656220, 06:55:58Z→07:00:58Z, runner amd64-mo-shanghai-8c16g-dkj59-runner-6vp6z): all three depth-3 fetch attempts of the head ended with fatal: unable to access 'https://github.com/gouhongshen/matrixone/': gnutls_handshake() failed: The TLS connection was non-properly terminated. — git exit 128; Unit Testing and every build step was skipped; the post-failure report steps only found an empty workspace (find: 'scratch': No such file or directory). Recurrence recorded on CI: Ubuntu UT checkout intermittently fails with GnuTLS handshake error #28113: record.
  2. Matrixone CI execution / SCA Test on Linux/arm64 (job 120807656284, 06:56:01Z→07:00:54Z, runner arm64-mo-shanghai-4c8g-dcv8r-runner-2kscj): identical — all three fetch attempts ended with the same GnuTLS termination and git exit 128; Set up Go and Static Code Analysis were skipped. Recurrence recorded on the umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028: record.

Within this same fresh run, CI preflight and Matrixone Shared Build / Build MatrixOne (shared) fetched and built the identical head successfully (06:55:51Z→07:05:31Z), so the head remains fetchable and buildable and the lane failures again reflect runner-proxy checkout transport state only. No source change is warranted for these failures. The run has not yet reached its terminal state (UT Coverage and both BVT lanes still executing at the time of this update), so no failed-jobs rerun was issued from it — a rerun must not be requested while a run is pending; the run's outcome will be evaluated as a new event when its checks complete.


Update 2026-10-24T07:37Z — run 40072115909: the UT Coverage lane concluded with the same silent-stall checkout timeout.

Correction to the 07:15Z note above: the UT Coverage lane of run 40072115909 had already concluded by that time — Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 (job 120807679034, 06:56:38Z→07:06:16Z, runner amd64-mo-guangzhou-2xlarge16-jvhxs-runner-dbfls, same Guangzhou jvhxs fleet) failed in the identical class tracked on #28411: the depth-3 fetch of the unchanged head e636088 emitted no output from 07:01:01Z until ##[error]The action 'Checkout MatrixOne source' has timed out after 5 minutes. (07:06:00Z); Set up Go, Run coverage unit tests, and every coverage/summary step were skipped and no coverage verdict was calculated. Recurrence recorded on #28411: record. At 07:15Z only the two compose BVT lanes were still executing.

Fleet-wide context: the same tracker and #28113/#31028 also recorded fresh occurrences of the same checkout-transport classes today on other PRs behind the same runner proxy (PR #30311 runs 40068065600 / 40072523092, and records from PRs #30973 / #30928), confirming a broad runner-proxy infrastructure outage isolated from all affected PRs' code.

Run 40072115909 remains non-terminal at this update (both compose BVT lanes, started 07:05:31Z, still executing; the downstream Matrixone Coverage execution / Coverage merge gate has not started), so no failed-jobs rerun was issued from it — a rerun is not requested while a run is pending; its terminal outcome will be evaluated as a new event when the checks complete.


Update 2026-10-24T07:57Z — run 40072115909 reached terminal state; rerun of its failed jobs issued.

Run 40072115909 (attempt 1) concluded at 07:50:37Z with the same two checkout-transport failure classes and no code-verdict anywhere.

  1. The three producer lanes died fetching the unchanged head e636088 exactly as recorded at 07:15Z/07:37Z, before any MatrixOne source was built, tested, analyzed, or covered:
  2. The two findings that only appear at terminal state are pure downstream gates of the producer stalls — neither ran any product-code verdict:
  3. Positive verdicts inside the same run on the identical head: Matrixone Shared Build SUCCESS (9m40s) and both compose BVT lanes SUCCESS — multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC) (39m30s) and multi cn e2e bvt test docker compose(PROXY) (44m45s). The PESSIMISTIC lane executed this PR's test/distributed/cases/window/window_local_rank.sql with TOTAL :178, SUCCESS :178, FAILED :0, IGNORED :0 (100%), and closed the lane at The execution success rate is 100% ... this test succeed. — so CI itself has again demonstrated this head to be fetchable, buildable, and its end-to-end SQL behavior correct.

Since this run's attempt is 1 and every failed lane is one of the transient runner-proxy checkout classes tracked above, the single authorized failed-jobs rerun of run 40072115909 was issued at 2026-10-24T07:57:20Z; the run now shows attempt 2 / queued on the unchanged head. Its outcome will be evaluated as a new event when its checks complete. No source change is warranted for these failures and none was made. (Bookkeeping note: #27066, #28113 and #28411 have meanwhile been closed, but these entries stay in the marker below until a fresh attempt of this PR's reach verifies the classes as resolved — the classes recurred in this very run and the umbrella #31028 remains open.)


Update 2026-10-24T08:15Z — run 40072115909 attempt 2: both reran producer lanes failed again in runner-proxy transport, before any code verdict; per-run rerun budget consumed.

The failed-jobs rerun issued at 07:57:20Z (attempt 2, unchanged head e636088) again ended both reran code-verdict producer lanes inside runner-proxy transport, before any MatrixOne source was built, tested, analyzed, or covered.

  1. Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 — job 120819805685, 07:57:43Z→08:04:49Z, runner amd64-mo-guangzhou-2xlarge16-jvhxs-runner-7drgg (Guangzhou jvhxs fleet): all three depth-3 fetch attempts of the head from fork gouhongshen/matrixone died behind the runner proxy — GnuTLS recv error (-110): The TLS connection was non-properly terminated. (08:01:26Z), then gnutls_handshake() failed: The TLS connection was non-properly terminated. twice (08:03:03Z, 08:04:35Z) → git exit 128. Set up Go, Run coverage unit tests, and every coverage step were skipped; no coverage verdict was calculated. Variant note: attempt 1 of this lane failed with the silent-stall checkout timeout; attempt 2 failed with visible GnuTLS termination — the same checkout-transport class tracked on [Bug]: UT Coverage checkout fails after repeated GnuTLS termination #28411 (closed; class still live) and umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028.
  2. Matrixone CI execution / UT Test on Ubuntu/x86 — job 120819805452, 07:57:36Z→08:12:25Z, runner amd64-mo-shanghai-8c16g-dkj59-runner-9n7nz: this time actions/checkout succeeded (07:57:47Z→07:58:13Z, 26 s) — direct proof that this head is fetchable on this fleet — and the lane then died inside the Set up Go composite step: actions/setup-go@v5 did install go1.27.1 after a 9m06s toolchain download, and actions/setup-java@v4 failed all three attempts to download JDK 8.0.504+1 from the adoptium release asset with Client network socket disconnected before secure TLS connection was established (08:08:57Z, 08:10:35Z, 08:12:10Z). Unit Testing and every build/test step was skipped — no unit test executed and no code verdict exists; this is the setup/toolchain-download transport family of [Bug]: Coverage CI fails when setup-cmake cannot download Ninja (HTTP 503) #27066 (closed; class still live).
  3. Matrixone Coverage execution / Coverage — job 120821266151, 08:04:52Z→08:05:03Z: pure downstream gate — started with PREREQUISITES_READY: false and aborted with coverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated — projects item 1 only.

The reran Matrixone CI execution / SCA Test on Linux/arm64 lane (job 120819805601) was still executing at 08:15Z — past its attempt-1 checkout-failure duration, so checkout did not kill it this time; its outcome, and this run's terminal state, will be evaluated as a new event when the checks complete.

The identical head remains proven fetchable, buildable, and testable by this run's retained attempt-1 successes (CI preflight, Matrixone Shared Build in 9m40s, both compose BVT lanes — including multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC) executing this PR's test/distributed/cases/window/window_local_rank.sql with TOTAL :178, SUCCESS :178, FAILED :0) and by the 26-second checkout in item 2. The attempt-2 failures reflect runner-proxy transport state only; no source change is warranted.

Run 40072115909's single authorized failed-jobs rerun is consumed (attempt 2); no further rerun of this run is requested. Attempt-2 recurrence records for both classes were posted on the open umbrella #31028: record.


Update 2026-10-24T09:14Z — run 40072115909 terminal: the reran SCA lane completed fully green (first static-analysis verdict on this head); every remaining failure is one of the two documented runner-proxy transport classes or its downstream gate; per-run rerun budget consumed.

The run concluded at 09:01:49Z (attempt 2, unchanged head e636088). This completes the 08:15Z note:

  1. The reran Matrixone CI execution / SCA Test on Linux/arm64 lane — job 120819805601, 07:57:38Z→09:01:41Z — succeeded with every step green, including checkout, Set up Go, and Static Code Analysis. The arm64 checkout-fetch class did not recur on rerun, and this is the first completed static-analysis verdict on this head in this PR's recorded run history — CI has now statically cleared this PR's diff.
  2. CI Required — job 120832337676, 09:01:43Z→09:01:49Z — failed with Error: matrixone-ci: failure, projecting exactly the three recorded results and nothing else: matrixone-ci failure (item 2 of the 08:15Z note — UT producer died downloading the adoptium JDK asset behind the runner proxy), matrixone-ut-coverage failure (item 1 — coverage producer died at checkout with GnuTLS termination), and matrixone-coverage-merge failure (item 3 — PREREQUISITES_READY: false downstream gate). matrixone-compose-ci and matrixone-standalone-ci (the BVT lanes) aggregated as success.

Net for the run: no unit-test or coverage verdict for this PR's code exists in either attempt — both producers died in runner-proxy transport before any MatrixOne source was built, tested, or covered — while the completed verdicts (Shared Build, SCA, both compose BVT lanes, with this PR's test/distributed/cases/window/window_local_rank.sql at TOTAL :178, SUCCESS :178, FAILED :0) confirm the unchanged head is fetchable, buildable, statically analyzable, and BVT-clean. No source change is warranted and none was made.

Run 40072115909's single authorized failed-jobs rerun is consumed (attempt 2); no further rerun of this run is requested, and these failures justify no base update. Terminal record posted on the open umbrella #31028: record. The PR remains blocked on these runner-proxy infrastructure classes until a fresh CI attempt reaches a real UT/coverage verdict; the blocker marker below is unchanged because the checkout-transport and toolchain-download classes recurred in this very attempt.


Update 2026-10-24T12:36Z — fresh run 40092867706 on the review-fix head 8cbc4a9: both producer failure classes recurred again, this time against the Go-toolchain download; run still non-terminal, so no rerun issued.

Pushing the review-fix commit 8cbc4a9f4665ceb315875b8b97501a9a46605039 created a fresh MatrixOne ALL CI run, run 40092867706 (attempt 1, created 12:10:52Z). All three code-verdict producer lanes died before any MatrixOne source was built, tested, analyzed, or covered, in the same two classes already documented above:

  1. Toolchain-download transport (#27066 class; issue closed, class live) — hit both Set up Go producers.
    • Matrixone CI execution / UT Test on Ubuntu/x86 — job 120869004749, 12:11:14Z→12:23:51Z, runner amd64-mo-shanghai-8c16g-dkj59-runner-trt4t: actions/checkout of the head succeeded in ~11 s (git log -1 prints 8cbc4a9), then Set up Go (actions/setup-go@v5) died downloading Go 1.27.1 from the actions/go-versions release asset (.../go-1.27.1-linux-x64.tar.gz): aborted after ~6m54s (12:18:29Z), then Client network socket disconnected before secure TLS connection was established twice (12:20:07Z, 12:21:43Z), then the direct-from-Go fallback failed with the same error (12:23:04Z). Unit Testing, JDK 8, and CMake setup were all skipped; the post-failure report steps found only an empty workspace (find: 'scratch': No such file or directory; no ut-report). No unit test executed and no code verdict exists on this head.
    • Matrixone CI execution / SCA Test on Linux/arm64 — job 120869004601, 12:11:16Z→12:22:47Z, runner arm64-mo-shanghai-4c8g-dcv8r-runner-86xld: checkout succeeded; the identical Set up Go failure downloading go-1.27.1-linux-arm64.tar.gz from the same asset (aborted 12:18:00Z, two TLS disconnections 12:19:37Z/12:21:17Z, fallback failed 12:22:38Z). Set up Go (SCA), Setup CMake, and Static Code Analysis were all skipped. Note: the attempt-2 SCA SUCCESS recorded at 09:14Z was pinned to the earlier head e636088; this head carries an implementation-stage fix, so a static-analysis verdict for 8cbc4a9 still awaits a lane that reaches analysis.
    • Variant note: the dying asset family moved from the adoptium JDK 8.0.504+1 asset (08:15Z record) and [Bug]: Coverage CI fails when setup-cmake cannot download Ninja (HTTP 503) #27066's Ninja download to the Go toolchain itself — always a github.com release-asset transfer behind the runner proxy, on both Shanghai fleets (djkd59 x86, dcv8r arm64).
  2. **Checkout silent-stall (#28411 class; issue closed, class live) — Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 — job 120869031083, 12:11:24Z→12:19:05Z, runner amd64-mo-guangzhou-2xlarge16-jvhxs-runner-s6dvj (same Guangzhou jvhxs fleet as every earlier occurrence): the depth-3 fetch of 8cbc4a9 from fork gouhongshen/matrixone emitted no output from 12:13:50Z until ##[error]The action 'Checkout MatrixOne source' has timed out after 5 minutes. (12:18:50Z). Set up Go, the coverage build/test, and every summary step were skipped; no coverage verdict was calculated.

Within this same run, CI preflight, Check coverage eligibility, pr-size-label, and Matrixone Shared Build / Build MatrixOne (shared) (12:11:06Z→12:21:01Z) all succeeded on the identical head, so 8cbc4a9 remains proven fetchable and buildable and the producer failures again reflect runner-proxy transport state only. This PR's diff (SQL parser/plan/window-rank code and tests) still touches no CI orchestration, dependency manifest, or shared action, so no source change is warranted for these failures and none was made.

Run 40092867706 remains non-terminal at this update (attempt 1; both compose BVT lanes started 12:21:03Z and are still executing; the downstream coverage merge and CI Required gate have not started), so no failed-jobs rerun was issued — a rerun is not requested while a run is pending. Its terminal outcome will be evaluated as a new event when its checks complete. Recurrence record posted on the open umbrella #31028: record. The blocker marker below is unchanged — both classes recurred in this very attempt — and the tracked_at values preserve each blocker's first identification time.


Update 2026-10-24T13:30Z — run 40092867706 reached terminal state at 13:07:55Z; the single authorized failed-jobs rerun was issued at 13:29:41Z.

The first ALL CI run on the review-fix head 8cbc4a9 concluded with the same two runner-proxy transport classes recorded at 12:36Z plus their downstream gates, with no code verdict anywhere on this head:

  1. Toolchain-download transport (#27066 class; issue closed, class live — hit both Set up Go producers).
    • Matrixone CI execution / UT Test on Ubuntu/x86 (job 120869004749, 12:11:14Z→12:23:51Z): actions/checkout succeeded in ~11 s and printed the head 8cbc4a9, then Set up Go died acquiring actions/go-versions/releases/download/1.27.1-33583469715/go-1.27.1-linux-x64.tar.gz — aborted (12:18:29Z), two Client network socket disconnected before secure TLS connection was established (12:20:07Z, 12:21:43Z), final ##[error] at 12:23:04Z; Unit Testing, JDK 8, and CMake setup were all skipped. No unit test executed on this head.
    • Matrixone CI execution / SCA Test on Linux/arm64 (job 120869004601, 12:11:16Z→12:22:47Z): identical failure on go-1.27.1-linux-arm64.tar.gz (aborted 12:18:00Z, TLS disconnections 12:19:37Z/12:21:17Z, final ##[error] 12:22:38Z); Static Code Analysis was skipped. The static-analysis verdict for 8cbc4a9 therefore still awaits a lane that reaches analysis — the attempt-2 SCA SUCCESS from run 40072115909 was pinned to the earlier head e636088.
  2. Checkout silent-stall (#28411 class; issue closed, class live). Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 (job 120869031083, 12:11:24Z→12:19:05Z, Guangzhou jvhxs fleet): the depth-3 fetch of the head emitted no output until ##[error]The action 'Checkout MatrixOne source' has timed out after 5 minutes. (12:18:50Z); Set up Go, the coverage build/test, and every summary step were skipped and no coverage verdict was calculated.
  3. Downstream gates only. Matrixone Coverage execution / Coverage (job 120880627498, 13:07:36Z→13:07:45Z) started PREREQUISITES_READY: false and aborted coverage merge blocked: a required producer did not publish a complete coverage profile; CI Required (job 120880665869, 13:07:48Z→13:07:55Z) failed with Error: matrixone-ci: failure, projecting items 1–2 only.

Positive verdicts on the identical head inside this terminal run: CI preflight, Check coverage eligibility, pr-size-label, and Matrixone Shared Build / Build MatrixOne (shared) SUCCESS (12:11:06Z→12:21:01Z) — plus both compose BVT lanes, which split the case set and each closed at The execution success rate is 100%, ... this test succeed.: the PROXY lane (job 120871022094, 12:21:03Z→13:00:03Z) executed this PR's test/distributed/cases/window/window_local_rank.sql with TOTAL :181, SUCCESS :181, FAILED :0, IGNORED :0 (100%, 12:57:32Z) — the CI-side confirmation of the review-fix head on the grown 181-statement case — and the PESSIMISTIC lane (job 120871022106, 12:21:03Z→13:07:34Z) completed its complementary subset at 100%. So 8cbc4a9 is again proven fetchable, buildable, and e2e-BVT-clean; only the unit-test, coverage, and static-analysis verdicts remain blocked by proxy transport.

Since this run is attempt 1, terminal, and every failed lane is one of the documented transient transport classes, the single authorized failed-jobs rerun of run 40092867706 was issued at 2026-10-24T13:29:41Z (gh run rerun 40092867706 --failed); its outcome will be evaluated as a new event when its checks complete. No source change is warranted for these failures and none was made — this PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action. Terminal record posted on the open umbrella #31028: record. The blocker marker below is unchanged (both classes recurred in this very attempt) and the tracked_at values preserve each blocker's first identification time.


Update 2026-10-24T13:50Z — run 40092867706 attempt 2: both completed producer lanes failed again in the same two runner-proxy transport classes, before any code verdict; per-run rerun budget consumed, run non-terminal.

The failed-jobs rerun issued at 13:29:41Z (attempt 2, unchanged head 8cbc4a9) again ended the completed code-verdict producer lanes inside runner-proxy transport, before any MatrixOne source was built, tested, analyzed, or covered:

  1. Checkout-fetch transport (#28411 class; issue closed, class live) — Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 — job 120885271862, 13:30:07Z→13:43:10Z, runner amd64-mo-guangzhou-2xlarge16 (same Guangzhou fleet as every earlier occurrence): the lane first logged two 100-second timeouts downloading the matrixorigin/CI action archive from codeload.github.com (13:32:15Z, 13:34:07Z) before obtaining it; Checkout MatrixOne source — the depth-3 fetch of 8cbc4a9 from fork gouhongshen/matrixone — then failed with fatal: unable to access 'https://github.com/gouhongshen/matrixone/': gnutls_handshake() failed: The TLS connection was non-properly terminated. (13:39:18Z) and ##[error]The action 'Checkout MatrixOne source' has timed out after 5 minutes. (13:42:56Z). Set up Go, Run coverage unit tests, and every coverage step were skipped; no coverage verdict was calculated. Recurrence recorded on the open umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028: record.
  2. Toolchain-download transport (#27066 class; issue closed, class live) — Matrixone CI execution / SCA Test on Linux/arm64 — job 120885271715, 13:29:57Z→13:44:56Z, runner arm64-mo-shanghai-4c8g: actions/checkout of the same head succeeded — the fetch completed in ~9 s and git rev-parse verified 8cbc4a9 (13:30:21Z), proving again that this head is fetchable — and Configure Shanghai Go proxy succeeded, but Set up Go then died acquiring go-1.27.1-linux-arm64.tar.gz from the actions/go-versions release asset: aborted (13:39:09Z, ~8m43s after start), Client network socket disconnected before secure TLS connection was established twice (13:40:42Z, 13:43:27Z), final ##[error] at 13:44:48Z. Every static-analysis step was skipped, so the static-analysis verdict for 8cbc4a9 still awaits a lane that reaches analysis.
  3. Downstream gate only — Matrixone Coverage execution / Coverage — job 120888095789, 13:43:14Z→13:43:22Z: PREREQUISITES_READY: false → coverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated; projects item 1 only.

The reran Matrixone CI execution / UT Test on Ubuntu/x86 lane (job 120885271560) was still executing at this update, so run 40092867706 remains non-terminal; no further rerun will be requested from it (per-run budget consumed at attempt 2) and its terminal outcome will be evaluated as a new event when its checks complete — no rerun is requested while a run is pending.

The identical head 8cbc4a9 remains proven fetchable, buildable, and e2e-BVT-clean by this run's retained results (attempt 1: CI preflight, Check coverage eligibility, pr-size-label, Matrixone Shared Build SUCCESS, and both compose BVT lanes at 100%, with this PR's test/distributed/cases/window/window_local_rank.sql at TOTAL :181, SUCCESS :181, FAILED :0 on the PROXY lane; attempt 2: the ~9-second SCA checkout above). No unit-test, coverage, or static-analysis verdict of this PR's code has executed or failed in either attempt; all recorded failures are runner-proxy transport state. This PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action, so no source change is warranted and none was made. These failures justify no base update.

The blocker marker below is unchanged — both classes recurred in this very attempt and the umbrella #31028 remains open; the tracked_at values preserve each blocker's first identification time.


Update 2026-10-24T14:10Z — run 40092867706 attempt 2 terminal (14:01:14Z): the last reran producer lane completed in the Go-toolchain download transport class; per-run rerun budget consumed, no further rerun requested.

Completing the 13:50Z note — the reran UT lane, which was still executing then, finished as follows:

  1. Toolchain-download transport (#27066 class; issue closed, class live) — Matrixone CI execution / UT Test on Ubuntu/x86 (job 120885271560, 13:29:55Z→14:01:07Z, runner amd64-mo-shanghai-8c16g-dkj59-runner-msq4b): actions/checkout of the head succeeded in ~10 s (13:30:28Z→13:30:38Z; the depth-3 fetch of 8cbc4a9 completed, git checkout --force restored 12092 files, and git log -1 --format=%H printed 8cbc4a9f4665ceb315875b8b97501a9a46605039) — direct reproof that this head is fetchable on the very lane that then failed — and Set up Go (actions/setup-go@v5) died acquiring go-1.27.1-linux-x64.tar.gz from https://github.com/actions/go-versions/releases/download/1.27.1-33583469715/: aborted at 13:43:57Z, 13:54:26Z and 13:59:27Z, Falling back to download directly from Go (13:59:27Z), final ##[error]Client network socket disconnected before secure TLS connection was established (14:00:48Z) → composite setup step exit 1. Set up JDK 8, Setup CMake, Set env, Configure Shanghai Go proxy, Seed Go caches and Unit Testing were all skipped — no unit test executed on this head; the post-failure report found only an empty workspace (find: 'scratch': No such file or directory). Recurrence recorded on the open umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028: record.
  2. The attempt-2 failures recorded at 13:50Z stand unchanged: the UT Coverage producer died at checkout of 8cbc4a9 (checkout-fetch transport; GnuTLS termination then timed out after 5 minutes), the SCA arm64 producer died at the same Go-asset download (toolchain transport; its own checkout had succeeded in ~9 s with the SHA verified), and Matrixone Coverage execution / Coverage (job 120888095789) is the pure downstream gate of the coverage producer (PREREQUISITES_READY: false → coverage merge blocked).
  3. CI Required (job 120891856687, 14:01:09Z→14:01:14Z) failed with Error: matrixone-ci: failure — the aggregate projection of the three producer failures above only; the BVT lanes aggregate as success.

Net for run 40092867706 (attempt 1 + attempt 2, unchanged head 8cbc4a9): no unit-test, coverage, or static-analysis verdict of this PR's code has executed or failed — every code-verdict producer died in runner-proxy transport before any MatrixOne source was compiled, tested, analyzed, or covered — while the identical head is proven fetchable (checkout in ~11 s at attempt 1, ~9 s in the reran SCA lane, ~10 s in the reran UT lane), buildable (Matrixone Shared Build / Build MatrixOne (shared) SUCCESS, 12:11:06Z→12:21:01Z), and e2e-BVT-clean (both compose BVT lanes at 100%, including this PR's test/distributed/cases/window/window_local_rank.sql at TOTAL :181, SUCCESS :181, FAILED :0 on the PROXY lane). No source change is warranted for these failures and none was made — this PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action — and these failures justify no base update.

Run 40092867706's single authorized failed-jobs rerun is consumed (attempt 2); no further rerun of this run is requested. The PR stays blocked on these documented runner-proxy infrastructure classes until a fresh CI attempt reaches a real UT/coverage/SCA verdict. The blocker marker below is unchanged — the checkout-transport and toolchain-download classes both recurred in this very attempt — and the tracked_at values preserve each blocker's first identification time.


Update 2026-10-24T15:28Z — merged-head run 40105630160: the UT Coverage producer died inside Set up job downloading the shared matrixorigin/CI action archive — the action-archive variant of the same runner-proxy transport family — before any checkout/build/test; run attempt 1 is still in progress, so no rerun is issued.

Context: the authorized base update merged main 6fb6531 (feat window kernels #31017, which claimed function IDs 605-615 and collided with this PR's drafted 605-608 registration) into the review-fix head 8cbc4a9, producing the current head 136f2838488ad62db7f2622c4aa76c963459982a (merge commit 2026-10-24T14:57:50Z); the new registrations were renumbered to the 616-619 tail and the owning packages plus the sibling indicator-kernel BVT were revalidated green locally (recorded in the PR description). That MatrixOne-source change is not part of this CI failure — the failing lane dies on download transport and never reads any repository source.

  1. Action-archive download transport (checkout-transport family of umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028; class of [Bug]: UT Coverage checkout fails after repeated GnuTLS termination #28411 — issue closed, class live): Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 (job 120906677549, 15:09:19Z→15:15:23Z, runner amd64-mo-guangzhou-2xlarge16-jvhxs-runner-br5sd — the same Guangzhou jvhxs fleet as every earlier coverage-lane occurrence): the only executed step was Set up job (15:09:32Z→15:15:16Z, conclusion failure). All three attempts to fetch the shared composite action archive https://codeload.github.com/matrixorigin/CI/tar.gz/30b0e58572e96df22b0ea6f32eed355eb498074a were canceled at the 100-second HttpClient.Timeout, with the final annotation Failed to download archive 'https://codeload.github.com/matrixorigin/CI/tar.gz/30b0e58572e96df22b0ea6f32eed355eb498074a' after 3 attempts. No workspace checkout, no Set up Go, no coverage build, and no unit test step was reached; no coverage profile was published and no coverage verdict was calculated. The same archive produced two 100-second timeouts on this same lane in the 13:50Z record (run 40092867706 attempt 2) before it was obtained, and failed identically for PR fix(sql): translate temporary DDL database lookup sentinel #31019's UT Coverage producer today — the dying transfer moves between the source fetch ([Bug]: UT Coverage checkout fails after repeated GnuTLS termination #28411), the release-asset toolchain downloads ([Bug]: Coverage CI fails when setup-cmake cannot download Ninja (HTTP 503) #27066), and the action archive, always behind the same runner proxy.
  2. The identical run is otherwise healthy so far: CI preflight, Check coverage eligibility, and pr-size-label succeeded, and at this update Matrixone Shared Build / Build MatrixOne (shared), Matrixone CI execution / UT Test on Ubuntu/x86, Matrixone CI execution / SCA Test on Linux/arm64, and both compose BVT lanes are still executing on the same head. Run 40105630160 is attempt 1 and non-terminal; a failed-jobs rerun is not requested while a run is pending, and its terminal outcome will be evaluated as a new event.
  3. No source change is warranted for this failure and none was made — this PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action, and the lane failure precedes any possibility of a code verdict.

The blocker marker below is unchanged — the runner-proxy transport classes recurred on this very head — and the tracked_at values preserve each blocker's first identification time.


Update 2026-10-24T15:42Z — run 40105630160: the UT producer died in the Go-toolchain download transport class, before any code verdict; run attempt 1 is still in progress at this update, so no rerun is issued.

Completing the 15:28Z picture for merged-head run 40105630160 — its Matrixone CI execution / UT Test on Ubuntu/x86 lane has now failed as well, in the runner-proxy transport family already recorded on this PR for head 8cbc4a9:

  1. Toolchain-download transport (#27066 class; issue closed, class live): job 120906650917, 15:09:07Z→15:34:20Z, runner amd64-mo-shanghai-8c16g-dkj59: actions/checkout of the head succeeded first — HEAD is now at 136f283 at 15:13:03Z, direct proof the merged head is fetchable on this very lane — and Set up Go (actions/setup-go@v5) then died acquiring go-1.27.1-linux-x64.tar.gz from https://github.com/actions/go-versions/releases/download/1.27.1-33583469715/: aborted twice (15:21:34Z, 15:31:05Z), Client network socket disconnected before secure TLS connection was established (15:32:41Z), Falling back to download directly from Go, then the identical final ##[error] (15:34:02Z). Set up JDK 8, Setup CMake and Unit Testing were all skipped; the post-failure report found only an empty workspace (find: 'scratch': No such file or directory). No unit test executed and no code verdict exists on this head — the same lane and asset family that failed at 14:10Z on the pre-merge head. Recurrence recorded on the open umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028: record.
  2. Together with the 15:28Z UT Coverage action-archive failure, run 40105630160 has now lost both completed code-verdict producers to runner-proxy transport; the SCA lane and both compose BVT lanes are still executing at this update, and the coverage merge / CI Required gates have not started. The run is attempt 1 and non-terminal, so no failed-jobs rerun is requested while a run is pending; its terminal outcome will be evaluated as a new event when the checks complete.
  3. No source change is warranted and none was made — this PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action, and the UT lane died on download transport after the checkout but before reaching any build/test step.

The blocker marker below is unchanged — the toolchain-download class (and the coverage-lane action-archive class) recurred in this very attempt — and the tracked_at values preserve each blocker's first identification time.


Update 2026-10-24T16:19Z — run 40105630160: the Coverage merge gate failed as the pure downstream projection of this run's recorded UT Coverage producer transport death; run attempt 1 is still in progress (the SCA lane is executing normally), so no rerun is issued.

  1. Matrixone Coverage execution / Coverage — job 120918612065, 16:02:12Z→16:02:21Z — gate-only failure. The lane entered with PREREQUISITES_READY: false and aborted in its first branch with coverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated → exit 1 (job log read in full; the job performs no MatrixOne checkout, build, or test of PR source). It projects only this run's UT Coverage producer — job 120906677549, the Set up job action-archive download transport death recorded at 15:28Z above (record); a gate-specific recurrence record was posted on the open umbrella: record. No coverage merge or verdict of this PR's code was attempted anywhere in this run.
  2. Both compose BVT lanes concluded green on the identical merged head 136f283. multi cn e2e bvt test docker compose(PROXY) (job 120908673622, 15:18:00Z→15:48:06Z) executed this PR's test/distributed/cases/window/window_local_rank.sql with TOTAL :181, SUCCESS :181, FAILED :0, IGNORED :0 (100%, 15:45:35Z), and multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC) (job 120908673617, 15:18:00Z→16:02:10Z) completed its complementary subset and closed at The execution success rate is 100%, ... this test succeed. (16:01:30Z). Together with Matrixone Shared Build / Build MatrixOne (shared) SUCCESS (15:08:58Z→15:17:57Z), the merged head is again proven fetchable, buildable, and e2e-BVT-clean in CI — CI-side re-confirmation of the merge-time function-ID renumbering (616-619).
  3. The SCA arm64 lane is alive and progressing past every transport failure point seen today: actions/checkout of head 136f283 SUCCESS (15:09:57Z→15:12:50Z), Set up Go SUCCESS (15:12:50Z→15:41:04Z — this attempt's Go 1.27.1 download completed behind the same proxy that killed earlier lanes), then cache/prerequisite steps SUCCESS through 15:59:48Z, currently in Prepare static-check tools (started 15:59:48Z). Run 40105630160 (attempt 1) is therefore still in progress and non-terminal — no failed-jobs rerun is requested while a run is pending, and none was issued. The static-analysis verdict for head 136f283 still awaits this lane; the terminal outcome will be evaluated as a new event when its checks complete.
  4. No source change is warranted for any of these failures and none was made. This PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action, and every recorded failure of this run predates, or is independent of, any MatrixOne build, test, analysis, or coverage of PR source. The blocker marker below is unchanged — both runner-proxy transport classes (action-archive fetch, Go-toolchain download) recurred in this very run — and the tracked_at values preserve each blocker's first identification time.

Update 2026-10-24T17:00Z — run 40105630160 reached terminal state at 16:40:09Z: the last lane, SCA arm64, was cancelled by an external action mid static-check (so no code verdict exists anywhere in the run); the single authorized failed-jobs rerun was issued at 16:55:31Z and is in progress as attempt 2.

  1. Every conclusion of this run is now known, and none is a verdict on this PR's code:
    • The three producer deaths were recorded as they happened (15:28Z, 15:42Z and the 16:19Z gate note): UT Coverage died in Set up job at the matrixorigin/CI action-archive download behind the runner proxy ([Bug]: UT Coverage checkout fails after repeated GnuTLS termination #28411 class), UT Test died at the Go 1.27.1 release-asset download behind the same proxy ([Bug]: Coverage CI fails when setup-cmake cannot download Ninja (HTTP 503) #27066 class) after a successful checkout (HEAD is now at 136f283), and Matrixone Coverage execution / Coverage aborted PREREQUISITES_READY: false → coverage merge blocked.
    • CI Required (16:40:05Z→16:40:09Z) is a pure aggregate gate: its own JSON projects only matrixone-ci: failure (the UT producer), matrixone-ut-coverage: failure (the coverage producer) and matrixone-coverage-merge: failure (the gate projection), while matrixone-compose-ci and matrixone-standalone-ci aggregate success (both compose BVT lanes at 100%, including this PR's test/distributed/cases/window/window_local_rank.sql at TOTAL :181, SUCCESS :181, FAILED :0 on the PROXY lane).
    • The last running lane, Matrixone CI execution / SCA Test on Linux/arm64 (job 120906650973, 15:09:15Z→16:40:03Z, runner arm64-mo-shanghai-4c8g), was cancelled by an external action mid static-check, not failed by any code: in this very attempt its checkout of 136f283 succeeded (15:09:57Z→15:12:50Z), Set up Go succeeded (15:12:50Z→15:27:34Z — the same Go 1.27.1 asset download that killed the UT lanes completed here), Setup CMake and the analysis-cache restores succeeded (through 15:41Z), Resolve pull-request files succeeded (PR files=20/20, 16:20:48Z), and make static-check-analysis GOLANGCI_LINT_CONCURRENCY=1 (go vet + molint) was emitting per-package results (last package entry 16:39:41Z) when ##[error]The operation was canceled. arrived at 16:39:50.99Z and post-job cleanup terminated the live make/go/compile/molint orphan processes; job conclusion cancelled at 16:40:03Z. The canceller's identity is not exposed by the GitHub API. No static-analysis verdict of head 136f283 exists in this run — neither a failure nor a pass — so the SCA verdict for this head still awaits a lane that reaches analysis.
  2. Fleet context on the same classes: this PR's earlier run 40072115909 (older head e636088) was rerun a third time by the reviewer (triggering_actor XuPeng-SH, started 09:34:49Z) and concluded SUCCESS at 10:55:36Z with real verdicts — UT Test 09:35:05Z→10:55:26Z and UT Coverage 09:35:10Z→10:09:28Z both green on the same Shanghai/Guangzhou fleets, alongside the attempt-2 SCA success — proof that fresh attempts reach full verdicts whenever the runner proxy is healthy; the classes are intermittent runner-proxy transport state, never a property of this PR's source. They recurred later the same day on the newer heads (run 40092867706 on 8cbc4a9 created 12:10:52Z; run 40105630160 on 136f283 created 15:08:45Z), so the blocker marker below stays.
  3. Since run 40105630160 is attempt 1 and every failed/cancelled lane is one of the documented runner-proxy transport classes, its pure gates, or the external cancellation above, this run's single authorized failed-jobs rerun was issued at 2026-10-24T16:55:31Z (gh run rerun 40105630160 --failed). Verified: the run is now attempt 2 / in progress with exactly the three code-verdict producers rerun — UT Test on Ubuntu/x86 (16:55:47Z), SCA Test on Linux/arm64 (16:55:51Z, cancelled lanes are included in a failed-jobs rerun), UT Coverage on Ubuntu/x86 (16:55:54Z) — alongside the retained attempt-1 successes (CI preflight, Check coverage eligibility, pr-size-label, Matrixone Shared Build, both compose BVT lanes). Its terminal outcome will be evaluated as a new event when its checks complete. No source change is warranted for any of these failures and none was made — this PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action.
  4. Terminal record posted on the open umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028: record. The blocker marker below is unchanged — the action-archive and Go-toolchain transport classes recurred in this very attempt — and the tracked_at values preserve each blocker's first identification time.

Update 2026-10-24T17:30Z — run 40105630160 attempt 2: both reran producer lanes died again inside runner-proxy checkout transport, before any code verdict; the SCA lane is silent since 17:02:33Z keeping the run non-terminal; per-run rerun budget consumed, no further rerun requested.

The failed-jobs rerun issued at 16:55:31Z (attempt 2, unchanged head 136f2838488ad62db7f2622c4aa76c963459982a) ended both completed code-verdict producer lanes inside actions/checkout transport, before any MatrixOne source was built, tested, or covered:

  1. Checkout-fetch transport (#28113 class; issue closed, class live) — Matrixone CI execution / UT Test on Ubuntu/x86 (job 120930742697, 16:55:47Z→17:01:20Z, runner amd64-mo-shanghai-8c16g-dkj59-runner-hqdcz): all three depth-3 fetch attempts of the head from fork gouhongshen/matrixone died behind the runner proxy — error: RPC failed; curl 35 gnutls_handshake() failed: The TLS connection was non-properly terminated. + fatal: expected 'packfile' (16:57:51Z), then fatal: unable to access 'https://github.com/gouhongshen/matrixone/': gnutls_handshake() failed: The TLS connection was non-properly terminated. twice (16:59:24Z, 17:01:05Z) → git exit 128. Set up Go, Set up JDK 8, Setup CMake, and Unit Testing were all skipped; the post-failure report found only an empty workspace (find: 'scratch': No such file or directory). No unit test executed and no code verdict exists.
  2. Checkout silent-stall (#28411 class; issue closed, class live) — Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 (job 120930743099, 16:55:54Z→17:04:21Z, runner amd64-mo-guangzhou-2xlarge16-jvhxs-runner-rb776, the same Guangzhou jvhxs fleet as every earlier occurrence): all action-archive downloads completed by 16:59:05Z, then the depth-3 fetch of the head emitted no output at all for the full 5-minute window until ##[error]The action 'Checkout MatrixOne source' has timed out after 5 minutes. (17:04:05Z). Set up Go, the coverage build/test, and every summary step were skipped; no coverage profile was published and no coverage verdict was calculated.
  3. Downstream gate only — Matrixone Coverage execution / Coverage (job 120932732749, 17:04:24Z→17:04:34Z): entered PREREQUISITES_READY: false and aborted coverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated — a pure projection of item 2; the job performs no MatrixOne checkout, build, or test.
  4. SCA lane pending, silent since 17:02:33Z. The reran Matrixone CI execution / SCA Test on Linux/arm64 (job 120930742853, runner arm64-mo-shanghai-4c8g-dcv8r-runner-6x8qh) passed its checkout and Set up Go in this attempt (the same Go 1.27.1 asset that killed earlier lanes completed here; step finished 17:02:26Z) and its cache restores were green through 17:02:33Z, but it has emitted no step conclusion since and remains in_progress at this update — run 40105630160 is therefore non-terminal, CI Required has not started, and no failed-jobs rerun can be requested while a run is pending. No static-analysis verdict for head 136f283 exists yet.

The identical head 136f283 remains proven fetchable, buildable, and e2e-BVT-clean by this run's retained attempt-1 results on the same head: CI preflight, Check coverage eligibility, pr-size-label, Matrixone Shared Build / Build MatrixOne (shared) SUCCESS, and both compose BVT lanes at 100% — the PROXY lane executing this PR's test/distributed/cases/window/window_local_rank.sql with TOTAL :181, SUCCESS :181, FAILED :0. This PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action, so no source change is warranted for these failures and none was made.

Run 40105630160's single authorized failed-jobs rerun is consumed (attempt 2); no further rerun of this run is requested. Attempt-2 recurrence record posted on the open umbrella #31028: record. The PR remains blocked on these documented runner-proxy transport classes until a fresh CI attempt can reach a real UT/coverage/SCA verdict. The blocker marker below is unchanged — both checkout-transport classes recurred in this very attempt — and the tracked_at values preserve each blocker's first identification time.

Update 2026-10-24T18:26Z — run 40105630160 attempt 2 reached terminal state at 18:09:26Z: the reran SCA lane completed fully green (first static-analysis verdict on the merged head 136f283); every remaining failure is one of the two documented runner-proxy transport classes or its downstream/aggregate gate; per-run rerun budget consumed, no further rerun requested.

  1. The reran Matrixone CI execution / SCA Test on Linux/arm64 lane (job 120930742853, 16:55:51Z→18:09:19Z, runner arm64-mo-shanghai-4c8g-dcv8r-runner-6x8qh) concluded at 18:09:19Z with SUCCESS and every step green — actions/checkout of head 136f283, Set up Go (the same Go 1.27.1 release-asset transfer that killed this run's UT producers completed here behind the same proxy), and the full Static Code Analysis step. No transport class recurred inside this lane in this attempt. This is the first completed static-analysis verdict on the merged head 136f283 (run 40072115909's SCA success was pinned to the earlier head e636088, and this run's attempt-1 SCA lane was cancelled by an external action mid-check) — CI has now statically cleared this exact head.
  2. The attempt-2 producer failures recorded at 17:30Z stand unchanged: Matrixone CI execution / UT Test on Ubuntu/x86 (job 120930742697, checkout-fetch GnuTLS class) and Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 (job 120930743099, checkout silent-stall class) both died in actions/checkout transport before any MatrixOne source was built, tested, or covered. Matrixone Coverage execution / Coverage (job 120932732749, 17:04:24Z→17:04:34Z) remains their pure downstream gate (PREREQUISITES_READY: false → coverage merge blocked).
  3. CI Required (job 120947420751, 18:09:21Z→18:09:25Z) — aggregate gate only: it failed with Error: matrixone-ci: failure, and its own projection JSON contains exactly matrixone-ci: failure (the UT producer of item 2), matrixone-ut-coverage: failure (recorded by the gate as coverage_status: external_timeout_or_cancellation), and matrixone-coverage-merge: failure (the item-2 gate), while matrixone-compose-ci and matrixone-standalone-ci aggregate success. No independent code verdict failed anywhere in the run.

Net for run 40105630160 (attempt 1 + attempt 2, unchanged head 136f283): no unit-test or coverage verdict of this PR's code has executed or failed — both producers died in runner-proxy transport before any MatrixOne source was compiled, tested, or covered — while the identical head is now proven fetchable, buildable, statically analyzable, and e2e-BVT-clean (CI preflight, Check coverage eligibility, pr-size-label, Matrixone Shared Build SUCCESS, both compose BVT lanes at 100% with this PR's test/distributed/cases/window/window_local_rank.sql at TOTAL :181, SUCCESS :181, FAILED :0 on the PROXY lane, and the fully green SCA lane above). This PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action, so no source change is warranted and none was made; these failures justify no base update.

Run 40105630160's single authorized failed-jobs rerun is consumed (attempt 2); no further rerun of this run is requested. The PR stays blocked on the checkout-transport classes until a fresh CI attempt reaches a real UT/coverage verdict (the missing-verdict list on this head is now only UT and UT coverage). Final-state addendum posted on the open umbrella #31028: record. The blocker marker below is unchanged — the checkout-transport classes recurred in this very attempt — and the tracked_at values preserve each blocker's first identification time.


Update 2026-10-24T19:0Z — run 40105630160 attempt 3 (reviewer-issued rerun, started 18:42:36Z): the UT Coverage producer passed checkout and then died in the Go-toolchain download silent-stall variant of the #27066 class; the Coverage merge gate is its pure downstream projection; the UT producer lane is still executing and the run is non-terminal.

Attempt 3 of this run was issued by the reviewer (triggering_actor XuPeng-SH, run_started 18:42:36Z), not by this author; the author's single per-run failed-jobs rerun was consumed at attempt 2 (16:55:31Z, recorded above). Both concluded attempt-3 jobs were read in full through the job-log API because the run is still in progress.

  1. Toolchain-download transport, silent-stall variant (#27066 class; issue closed, class live) — Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 (job 120955235358, 18:45:52Z→18:56:33Z, runner amd64-mo-guangzhou-2xlarge16-jvhxs-runner-4j8bw, the same Guangzhou jvhxs fleet as every earlier occurrence on this lane): this attempt the lane's own actions/checkout succeeded in ~9 s — the depth-3 fetch of head 136f283 completed 18:46:10Z→18:46:19Z, git rev-parse verified the SHA, and HEAD is now at 136f283 — direct proof the merged head is fetchable on the very lane that then failed — before Set up Go (actions/setup-go@v5) died acquiring go-1.27.1-linux-x64.tar.gz from the actions/go-versions release asset: Acquiring 1.27.1 from https://github.com/actions/go-versions/releases/download/1.27.1-33583469715/go-1.27.1-linux-x64.tar.gz was logged at 18:46:23Z and the step emitted nothing further for the full 600-second action timeout (duration_ms=599993), ending ##[error]The action has timed out. (18:56:20.8Z). Set up JDK 8, Setup CMake, the coverage build/test, and every summary step were skipped (post-lane status resolves to external_timeout_or_cancellation, reason producer_status_file_missing); no coverage profile was published and no coverage verdict was calculated. This is the same release-asset transfer that killed this run's attempt-1 UT Test on Ubuntu/x86 lane (15:42Z record) and both Set up Go producers of run 40092867706 on the previous head, this time as a silent stall without the GnuTLS message. No MatrixOne source was compiled, tested, or covered. Recurrence recorded on the open umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028: record.

  2. Downstream gate only — Matrixone Coverage execution / Coverage (job 120958431127, 18:56:37Z→18:56:43Z): entered PREREQUISITES_READY: false and aborted with coverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated — a pure projection of item 1; the job performs no MatrixOne checkout, build, or test.

  3. The reran Matrixone CI execution / UT Test on Ubuntu/x86 producer is still executing (started 18:42:48Z on the unchanged head; no conclusion at the time of this update), and the SCA Test on Linux/arm64 SUCCESS from attempt 2 is retained (job 120955264956 — the first static-analysis verdict on head 136f283). Run 40105630160 (attempt 3) is therefore non-terminal; no further rerun is issued — attempt 3 was not this author's action, this handler's per-run budget is anyway consumed, and a rerun is never requested while a run is pending. Its terminal outcome will be evaluated as a new event when its checks complete.

Net: every attempt-3 conclusion so far is a documented runner-proxy transport class or its downstream gate, isolated from this PR's code; the identical head 136f283 remains proven fetchable (the failed coverage lane's own ~9-second checkout), buildable (Matrixone Shared Build SUCCESS), statically analyzable (attempt-2 SCA SUCCESS), and e2e-BVT-clean (both compose BVT lanes at 100%, with this PR's test/distributed/cases/window/window_local_rank.sql at TOTAL :181, SUCCESS :181, FAILED :0). No source change is warranted for these failures and none was made — this PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action — and these failures justify no base update.

The blocker marker below is unchanged — the toolchain-download class recurred in this very attempt — and the tracked_at values preserve each blocker's first identification time.


Update 2026-10-24T19:50Z — run 40105630160 attempt 3 terminal (19:31:00Z): the reran UT producer completed fully green — the first unit-test verdict on the merged head 136f283 — and every remaining failed check is the already-recorded Go-toolchain transport class or its pure downstream/aggregate gate; no further rerun requested (attempt 3 was reviewer-issued; this author's per-run budget was consumed at attempt 2).

  1. Unit Testing green on the merged head. The reran Matrixone CI execution / UT Test on Ubuntu/x86 (job 120955235234, 18:42:48Z→19:30:52Z, ~48m04s, runner amd64-mo-shanghai-8c16g) passed every step: its checkout printed HEAD is now at 136f283 and git log -1 --format=%H verified the exact head 136f2838488ad62db7f2622c4aa76c963459982a (18:43:08Z), Set up Go completed in ~14s (the same go-1.27.1 release asset that stalled other lanes for 600+s), Set up JDK 8 and Setup CMake succeeded, and Unit Testing executed the full suite with steps.ut.conclusion: success, FAIL_UT_CASES= (empty), [ut_report] events=1048352 test_starts=87542 test_terminals=87547 package_events=1068 malformed=0 incomplete=0, zero --- FAIL entries and zero panics; this PR's planner package github.com/matrixorigin/matrixone/pkg/sql/plan ran shard 1/1 to status=0 (182.50s). This is the first completed unit-test verdict on head 136f283 (run 40072115909's 10:55:36Z UT green was pinned to the pre-merge head e636088). Together with the retained verdicts — Matrixone Shared Build SUCCESS, SCA SUCCESS (18:09:19Z), and both compose BVT lanes at 100% with this PR's test/distributed/cases/window/window_local_rank.sql at TOTAL :181, SUCCESS :181, FAILED :0 — CI has now cleared the merged head on build, unit tests, static analysis, and e2e BVT; the only missing verdict on this head is UT coverage.
  2. The only failed producer of the attempt stands exactly as recorded at 19:00Z: Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 (job 120955235358, 18:45:52Z→18:56:33Z, Guangzhou jvhxs fleet) — its own checkout succeeded in ~9s (git rev-parse verified the head, HEAD is now at 136f283 at 18:46:20Z), then Set up Go logged Acquiring 1.27.1 from https://github.com/actions/go-versions/releases/download/1.27.1-33583469715/go-1.27.1-linux-x64.tar.gz (18:46:23Z) and emitted nothing for the full 600s action timeout (duration_ms=599993 → ##[error]The action has timed out. at 18:56:20.8Z); Set up JDK 8, Setup CMake, the coverage build/test and every summary step were skipped — the toolchain-download transport class of [Bug]: Coverage CI fails when setup-cmake cannot download Ninja (HTTP 503) #27066 (issue closed, class live), re-verified from the raw job log this turn; recurrence record on this run: record. No MatrixOne source was compiled or covered in that lane.
  3. The two remaining failures are pure projections of item 2. Matrixone Coverage execution / Coverage (job 120958431127, 18:56:37Z→18:56:43Z) entered PREREQUISITES_READY: false and aborted coverage merge blocked: a required producer did not publish a complete coverage profile (no checkout/build/test); CI Required (job 120966328117, 19:30:54Z→19:31:00Z) failed with Error: matrixone-ut-coverage: failure, and its own projection JSON records preflight: success, matrixone-ci: success, matrixone-compose-ci: success, matrixone-standalone-ci: success, matrixone-ut-coverage: failure (coverage_status: external_timeout_or_cancellation), matrixone-coverage-merge: failure — no product-code verdict failed anywhere in the run.
  4. No rerun and no source change. Attempt 3 was issued by the reviewer (triggering_actor XuPeng-SH, run re-started 18:42:36Z); this author's single authorized failed-jobs rerun of this run was consumed at 16:55:31Z (attempt 2) and the attempt is in any case greater than 1, so no further rerun of this run is requested, and these failures justify no base update. This PR's diff (SQL parser/plan/window-rank code and tests) touches no CI orchestration, dependency manifest, or shared action. The PR now lacks only the CI coverage verdict, which requires a fresh CI attempt whose coverage lane passes transport; terminal record posted on the open umbrella [CI] Runner checkout, Docker socket, and coverage setup failures #31028: record.

The blocker marker below is unchanged — the toolchain-download transport class recurred in this very attempt — and the tracked_at values preserve each blocker's first identification time.

Conflict-resolution merge with main, bringing in the technical-indicator
window kernels (matrixorigin#31017) and thirteen other commits.

Six files conflicted, every one an append-vs-append collision in the same
window/registry area; both sides are kept:

- pkg/sql/plan/function/function_id.go and function_id_test.go: main's
  indicator family (SMA..CUMPOSITIVESTREAK) had already claimed 605-615
  with FUNCTION_END_NUMBER = 616, so the never-on-main rank IDs move to
  the next free block 616/617/618 with the sentinel at 619, following the
  file's own renumbered-on-main-merge precedent (ONNX_RUN/LOAD_TEXT);
  all rank references are by name, so the renumber is behavior-neutral.
  Registry uniqueness is re-pinned by predefinedFunids alongside main's
  indicator IDs.
- pkg/sql/plan/function/list_window.go: both registration sets are kept
  (the indicator kernels, then MRANK/CUMRANK/TMRANK), plus both sides'
  helpers (checkIndicatorValueArgs/checkIndicatorStreakArgs and
  IsLocalRankValueDomain).
- pkg/sql/colexec/window/window.go: both generation-scoped cleanups run
  at the same eval entry (clearCivilOrder and freeIndicatorState).
- mysql_sql.y: both token lines and both window-function-name
  alternation sets merged; mysql_sql.go regenerated through the
  repository's zero-conflict Makefile gate.

docs/design/20261023-local-sliding-window-ranks.md records the D8 merge
application (IDs 605-607 -> 616-618) as post-approval bookkeeping in
section 9, with the allocation statement, decision record and
validation-map row updated to the 616-619 realization.
@XuPeng-SH

XuPeng-SH commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 136f2838488ad62db7f2622c4aa76c963459982a

Review completed. Read the assessment.

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

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

Commit: 136f2838488ad62db7f2622c4aa76c963459982a

Assessment: approve

Reviewed the complete delta and affected callers. The design reasonably extends the existing window operator while retaining authoritative interval normalization, prepared-parameter reconstruction and validation owners. The volatile-width admission defect and missing design approval record are resolved. No actionable findings remain.

Model: gpt-6-astra / xhigh

Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1

Validation:

  • Preflight passed; the repository provenance verifier qualified the retained native build against 192 matching current-source inputs.

  • 52 top-level test invocations passed (51 distinct tests), including independent probes for descending order, row-dependent widths, TIME/NULL membership, output-chunk boundaries, constant values and error cleanup. Logs match receipts 1792875111466937956-4.json and 1792875137350061467-3.json.

  • Parser regeneration matched the committed parser after command/path normalization, with zero conflicts; receipt 1792875007272881771-4.json.

  • Reused the frozen exact-head CI snapshot reporting successful unit, coverage, static-analysis and compose BVT jobs. Earlier setup failures were distinguished from subsequent successes.

  • Command/source/exit receipts and retained log hashes were reconciled in review-evidence.json. Final audit passed with unchanged source; receipt 1792875319779847274-4.json. Artifacts: /home/xupeng/.local/state/mo-bot/jobs/a50c4d3514c7f1b907a83bfb/attempt-1.

Limitations:

  • No local SQL-server or full-suite rerun; broader validation relies on the supplied exact-head CI evidence. Author-only red/green claims were not counted as independently verified executions.

  • Quadratic CPU for cumulative or broad frames is an explicit accepted design tradeoff. No workload speedup or regression measurement was established; ordinary paths introduce no new I/O, locks or goroutines.

  • The linked issue's standalone body was not supplied; its contract was assessed from the frozen PR and versioned design.

@mergify mergify Bot added the queued label Oct 24, 2026
@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-24 20:56 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • ✅ Checks passed · in-place
  • ✅ Merged — 2026-10-24 22:52 UTC · at ac4ec315877cfc95fc5464bd81b081489f75f747 · squash

This pull request spent 1 hour 55 minutes 47 seconds in the queue, including 55 minutes 23 seconds running CI.

Required conditions to merge

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature size/XXL Denotes a PR that changes 2000+ lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants