Skip to content

test: set a finite spill budget for shared SQL fixtures - #30488

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
iamlinjunhong:codex/loom/develop/d977bdd1be91755888ea43e6600d22691eb542b7e639f51ab1598a543a4da634
Oct 18, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
iamlinjunhong:codex/loom/develop/d977bdd1be91755888ea43e6600d22691eb542b7e639f51ab1598a543a4da634

Conversation

@iamlinjunhong

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:

What this PR does / why we need it:

The shared embedded SQL fixture inherited the production automatic spill policy. When the LOCAL filesystem had at most 16 GiB free, that policy allowed only one byte of spill, so all four conversion-warning RETURNING cases failed before reaching their result and diagnostic assertions.

Give each shared feature-test CN an explicit 64 MiB process spill allowance before startup. Reuse the existing fixture and retain every SQL statement and assertion. Production emergency headroom and dedicated admission-rejection fixtures retain their configuration. The allowance does not preallocate disk space; it is a per-process cap and an explicit floor for the shared CN ledger, whose automatic capacity can be larger.

Validation on Go 1.27.1 / macOS arm64 using the repository CGo wrapper:

  • With an unchanged Go overlay injecting a 4 GiB available-disk sample at the actual sampler boundary, the original fixture reproduced all four RETURNING failures (requested=98 used=0 cap=1); the patched fixture passed all 67 test/subtest events from TestBuiltinConversionWarnings and TestStatementInfoDiagnosticCapacitySQL. All original SQL and assertions are unchanged.
  • Existing automatic spill-cap, admission, spill-ledger and unhappy-path controls passed (-vet=all -count=1, four roots / seven test events).
  • Existing TestIssue26408JoinSpillSQLRegression passed with the shared allowance, comparing resident/spilled SQL results and checking positive spill/re-spill metrics.
  • Incremental golangci-lint for pkg/embed passed with 0 issues; gofmt and git diff --check passed. Full pkg/tests/dml passed with -short -tags matrixone_test -vet=all -count=1 (281 passing test/subtest events). Full pkg/embed passed in the same mode (453 passing events, two existing skips). An initial 20-minute attempt timed out at another task's runner-wide cluster-admission lock; the retry used a 45-minute command timeout, with source and assertions unchanged.

The local disk actually had roughly 490 GiB free; the 4 GiB run is sample-injection evidence, not a physical small-filesystem run. The issue reporter also supplied a historical Linux low-free-space normal/race comparison. Current CI is pending; no race rerun or mo-tester execution is claimed for this immutable fixture-configuration change.

Issue verification is left to the reporter after merge.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

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

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

@XuPeng-SH
XuPeng-SH force-pushed the codex/loom/develop/d977bdd1be91755888ea43e6600d22691eb542b7e639f51ab1598a543a4da634 branch from 736d498 to b002e38 Compare October 18, 2026 12:51
@XuPeng-SH

Copy link
Copy Markdown
Contributor

本轮维护更新:rebase 到 main 799523418e9f941afd65cd440d24e7fa0003a35e,新提交 b002e388278b23cefeb1b5050e5d72e1369cfd69。

仅 rebase。原 CI 的跨 CN 建表/ALTER catalog 可见性失败未证明由本 PR 引起,未修改该测试或宣称已解决。

本地验证:受影响路径的普通 UT、单轮 race 和完整变更 Go 包范围的增量 SCA 均通过。未运行整套 CI/BVT、GPU 或性能负载;不将历史作者记录标作本轮新运行。

变更保留检查覆盖完整原 PR 与 main 的集成结果;仅保留本轮明确说明的维护增量。新提交的 GitHub CI 结果待运行,原 CI 中未定位或未归因的失败仍需单独跟踪。

@XuPeng-SH

XuPeng-SH commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-xupeng · done

Commit: b002e388278b23cefeb1b5050e5d72e1369cfd69

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-xupeng · review

Commit: b002e388278b23cefeb1b5050e5d72e1369cfd69

Assessment: approve

Reviewed the complete delta and affected fixture, configuration and spill-budget ownership paths. The finite allowance applies before shared CN startup, preserves existing assertions and dedicated rejection fixtures, and leaves production defaults unchanged. No actionable findings remain.

Model: gpt-6-astra / xhigh

Session: 01a14d34-4e51-79a3-a62d-6c9c16279dc8 · slot 0 · generation 0

Validation:

  • Static scope/evidence audit passed with unchanged source: checks/1792331922277142811-4.json, exit 0. Logs and review-record.json are retained under /home/xupeng/.local/state/mo-bot/jobs/3a083897a32e823fc5c8b4be/attempt-1.

  • Traced foreground and background configuration through GetExecutionResourceBudget: 64 MiB remains the process cap and an explicit shared-CN floor. Existing reservation accounting and cleanup remain authoritative; no disk preallocation occurs.

  • Frozen evidence reports successful current-head Ubuntu/x86 UT, UT coverage and Linux/arm64 SCA checks. Reviewed repository test selection and the affected conversion-warning, diagnostic-capacity, spill-regression and isolated-budget test contracts.

Limitations:

  • No local Go/native tests were run. CI evidence contains coordinator-supplied terminal metadata; per-test raw logs were unavailable.

  • The author's low-disk sampler-injection comparison was not independently reproduced here; no physical small-filesystem run is claimed.

  • Issue #30480's body was absent. Review covers the explicit PR contract and does not claim to fix the historical, unattributed cross-CN catalog-visibility failure mentioned in comments.

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

mergify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-18 14:00 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-10-18 14:36 UTC · at 59f0f6a6c087a22f119e65eb3d4f5e5c900fbb6e

This pull request spent 36 minutes 3 seconds in the queue, with no time running CI.

Reason

Pull request #30488 has been dequeued

Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.

The author needs to enable "Allow edits from maintainers" on this pull request.

Hint

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Waiting for any of
  • check-neutral = CI Required
  • check-skipped = CI Required
  • check-success = CI Required
All conditions

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

This branch was previously deployed

1 inactive deployment
ci — 59f0f6a6 Deployed Oct 18, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dequeued kind/test-ci size/XS Denotes a PR that changes [1, 9] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants