Repository navigation
test: set a finite spill budget for shared SQL fixtures - #30488
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
736d498 to
b002e38
Compare
|
本轮维护更新:rebase 到 main 仅 rebase。原 CI 的跨 CN 建表/ALTER catalog 可见性失败未证明由本 PR 引起,未修改该测试或宣称已解决。 本地验证:受影响路径的普通 UT、单轮 race 和完整变更 Go 包范围的增量 SCA 均通过。未运行整套 CI/BVT、GPU 或性能负载;不将历史作者记录标作本轮新运行。 变更保留检查覆盖完整原 PR 与 main 的集成结果;仅保留本轮明确说明的维护增量。新提交的 GitHub CI 结果待运行,原 CI 中未定位或未归因的失败仍需单独跟踪。 |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
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.
Merge Queue Status
This pull request spent 36 minutes 3 seconds in the queue, with no time running CI. ReasonPull 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.
HintYou 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. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
…00d22691eb542b7e639f51ab1598a543a4da634
What type of PR is this?
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:
requested=98 used=0 cap=1); the patched fixture passed all 67 test/subtest events fromTestBuiltinConversionWarningsandTestStatementInfoDiagnosticCapacitySQL. All original SQL and assertions are unchanged.-vet=all -count=1, four roots / seven test events).TestIssue26408JoinSpillSQLRegressionpassed with the shared allowance, comparing resident/spilled SQL results and checking positive spill/re-spill metrics.golangci-lintforpkg/embedpassed with 0 issues;gofmtandgit diff --checkpassed. Fullpkg/tests/dmlpassed with-short -tags matrixone_test -vet=all -count=1(281 passing test/subtest events). Fullpkg/embedpassed 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.