Skip to content

fix: close expression result contract regressions - #29075

Merged
XuPeng-SH merged 16 commits into
mainfrom
codex/issue-28941-contract-followup
Sep 19, 2026
Merged

XuPeng-SH merged 16 commits into
mainfrom
codex/issue-28941-contract-followup

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Sep 17, 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:

Fixes #28902
Fixes #28901
Fixes #28896
Fixes #28894
Fixes #28892

What this PR does / why we need it:

Close expression result-domain and coercion gaps left by #28941:

  • Bound Base64 and character-slicing metadata only when provable; preserve temporal fractional precision in conditional expressions.
  • Use INT32 for current IP predicates while retaining legacy INT64 executors.
  • Keep INET_NTOA numeric/string/boolean/temporal/JSON/prepared-source conversion local to the function, including overflow-to-NULL and preserved DML roots; do not broaden global casts.
  • Fence changed persisted/remote expression contracts at MORPC v86, including mixed TIMESTAMP/DATETIME IF/CASE, while retaining explicit-cast and legacy negative controls.
  • Cover missing character-bound, overflow, registered-executor, temporal, invalid-input, NULL and selection contracts with small function tests and no cluster fixture.
  • Make TestHnsw idle eviction deterministic: retain concurrent real searches, then expire the resident entry and synchronously assert both removal and completed destruction. Cache-package tests retain ticker coverage. This test-only fix is shared with test: fix shared fixture cleanup and deterministic HNSW expiry #29105; no production cache change.

Validation

Retained earlier evidence: detector/protobuf round trips, binder/persisted admission, mixed-temporal fractional execution and serialized remote-destination protocol rejection/acceptance. The remote test proves the protocol boundary, not live two-CN value execution.

Current CI-repair delta, macOS arm64 / Go 1.26.4, worktree-native make -j8 cgo and mo-cgo-test:

  • New/extended function tests: passed (2.053s); full function package with coverage: passed (23.584s).
  • Full HNSW package in short+coverage mode: passed (123.013s); TestHnsw itself 0.63s.
  • Exact TestHnsw short race: passed, then 43 bounded repetitions in one process passed (9.322s package time).
  • Existing CI profile plus local focused profile, matched by unchanged source-block coordinates: 488/679 (71.87%) -> 540/679 (79.53%), adding 52 covered blocks. This is a local/historical-CI union estimate, not a fresh CI result. Coverage threshold and filters are unchanged.
  • Incremental vet/lint for the changed test packages and final GPT-6 medium review.

The latest repair changes only three test files, with no production hot-path, runner, timeout or coverage-exclusion changes. Fresh CI is intentionally not awaited or claimed as passed.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

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

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

@mergify mergify Bot added kind/bug Something isn't working kind/enhancement kind/test-ci labels Sep 17, 2026
@matrix-meow matrix-meow added the size/XXL Denotes a PR that changes 2000+ lines label Sep 17, 2026
@XuPeng-SH
XuPeng-SH force-pushed the codex/issue-28941-contract-followup branch from da916f5 to 4f8e3bb Compare September 18, 2026 13:56

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Astra medium deep re-review on current head 52913d4.

未发现可确认的 P0/P1/P2 代码问题。此前 mixed temporal v86 fence 与共享 HNSW expiry test 的问题已修复:全部 temporal value branches 的隐式转换来源已纳入 fence;HNSW 在 search workers 完成后同步过期并验证 map removal + STATUS_DESTROYED,不依赖 ticker/sleep/retry。

仍有三项非 coverage 验收缺口:

  1. 真实远端 fractional value 执行:当前是本地结果测试和模拟 v85/v86 destination 协议边界测试,multi-CN BVT 不证明 mixed temporal 表达式在远端执行并保留精度。
  2. mixed temporal persisted view 的真实 restart/recovery/replay 全生命周期尚未验证,同时验证 .123456 保留和旧版本消费拒绝。
  3. v85/v86 混部升级与回退尚未执行,upgrade jobs skipped。

固定 head 的 UT/SCA/multi-CN BVT/CI Required 已通过;上述是发布验收证据缺口,不是已确认代码 defect。本 PR 为自有 PR,提交 COMMENT。

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/bug Something isn't working kind/enhancement kind/test-ci size/XXL Denotes a PR that changes 2000+ lines

Projects

None yet

2 participants