Repository navigation
fix(mo-service): apply max-processor after flag parsing - #32337
Conversation
Author: aptend <[email protected]> Astra-Batch: meow-32078
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? |
|
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-local · review
Commit: 6a37add27989f83c9e60d8ed61d71115e8745555
Assessment: approve
The parsed positive flag updates runtime and compiler CPU state through the existing setter. Dynamic launch arguments remain equivalent. No actionable correctness or design issues remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed all five changed files, affected owners and consumers, linked issue 32078, and both discussion entries.
-
Linux amd64, Go 1.27.1: cmd/mo-service passed 169 tests/subtests with no failures or skips, including real-main and single-CPU affinity cases.
-
Frozen-base main.go overlay reproduced all four positive-override failures; zero, negative, and version controls passed.
-
Scoped go vet, gofmt, and git diff --check passed. Isolation preflight and native-input qualification passed. Receipts and log hashes are recorded in validation-index.json.
Limitations:
-
Non-Linux execution and the author-reported full-service SQL/RPC smoke were not independently repeated.
-
Initial dependency setup timed out before tests started; offline recovery preceded the successful run.
✅ Merged into
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32078
What this PR does / why we need it:
An explicit
mo-service -max-processor Nwas read beforeflag.Parse(), while the registered value was still zero. Move positive-value application after parsing so the existing setter updates both the Go runtime and the cached worker capacity used by the compiler. Omitted, zero and negative values retain the initialized policy.Add real-main subprocess regressions for lower/higher values, omitted/nonpositive controls, early version exit, the dynamic launcher's generated CPU argument, and a Linux single-CPU affinity control. Extract the dynamic child command without changing its generated arguments.
Validation on Linux/amd64 with CGO enabled and native artifacts from this worktree, against
main@dfc3ab0e382dplus the reviewed five-file patch:.agents/skills/mo-dev/scripts/mo-cgo-test -v -count=1 -timeout=12m ./cmd/mo-service/returned 0 (169 named RUN entries, 169 PASS, 0 SKIP). The real-main and single-CPU affinity regressions both executed and passed.make --no-print-directory err-check static-check-selected STATIC_CHECK_PACKAGES=./cmd/mo-service/...returned 0 with no issues. The selection covers the changed command and tests; the import graph has no external importers of this command package.-max-processor 8. Startup runtime/cache pairs were 4/4 and 8/8. Both executed a deterministic 20,000-row query and returned COUNT=20000, SUM=959289, matching an independent formula. Physical-plan scan budgets were 1 in both phases and remained within the configured capacity; no physical DOP scaling or performance improvement is claimed.Native configuration/source/binary identities and original nonzero attempts were retained. Earlier valid focused, native and static evidence was reused only where its relevant inputs remained unchanged. Hosted CI and review remain separate from these local results.