Repository navigation
Clarify snapshot restore and branch merge diagnostics - #29958
Conversation
|
The unrelated setup-go TLS failure in #27127 remains tracked as an intermittent runner-proxy issue (open, no fix yet); its affected jobs (pr-size-label, Connector/J) passed on the latest heads. The EXPLAIN JSON/protobuf compile failures formerly tracked in #30108 are resolved: main fixed the breakage in #30111, this branch includes it, and on head f0410d5 every previously affected job passed (shared build, UT test, SCA, coverage eligibility, both multi-CN BVT jobs, Connector/J), so #30108 was removed from the tracked blockers. Run 38396815808 (attempt 1) ended with UT Coverage failing in its "Checkout MatrixOne source" step (git fetch hung, 5-minute timeout; no test ran), the Coverage job failing downstream ("a required producer did not publish a complete coverage profile"), and CI Required failing as their aggregate — all transient runner-side checkout/infrastructure issues unrelated to this PR, with no matching existing issue. The branch was rebased onto current main 8586fa0 (head 78a7fde), which starts a fresh CI run, so the stale run was not rerun. |
35cb181 to
e404f06
Compare
e404f06 to
d2de51e
Compare
6207b58 to
cbb1529
Compare
cbb1529 to
f44125b
Compare
f44125b to
b20d30a
Compare
b20d30a to
3affb7a
Compare
|
mo-bot review · Commit: Assessment: approve Reviewed the complete 16-file delta and surrounding callers. Both fixes reuse existing ownership, correct misleading diagnostics, and preserve restore execution and merge policies. No actionable findings remain. Model: Session: Validation:
Limitations:
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 78a7fdef4359b24718bd2ade8e5fa54d0419ffa3
Assessment: approve
Reviewed the complete 16-file delta and surrounding callers. Both fixes reuse existing ownership, correct misleading diagnostics, and preserve restore execution and merge policies. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a12d8f-8e48-7622-ad17-b605f08450ce · slot 1 · generation 0
Validation:
-
Verified the frozen patch against the assigned base/head and clean checkout. Reviewed parser cleanup, UPDATE provenance, conflict handling, and every changed regression fixture.
-
Regenerated mysql_sql.go: byte-identical output, zero grammar conflicts, and exactly five added semantic actions with existing actions unchanged. Successful receipt: attempt-1/checks/1791908483482576666-2.json; log: attempt-1/parser-audit.log.
-
Reused exact-head successful CI results for Ubuntu unit tests, coverage, static analysis, Compose Proxy BVT and multi-CN pessimistic BVT. Author-reported targeted tests and BVT runs provided supporting evidence.
-
Preserved detailed reconciliation in attempt-1/review-evidence.json.
Limitations:
-
The packet lacks per-test CI logs, retained native execution artifacts and the full linked issue text. Native unit/BVT suites were not rerun locally.
-
Approval covers the diagnostic-only contract: FROM SNAPSHOT remains unsupported, and equal non-ancestor endpoint values still conflict under FAIL.
Merge Queue Status
This pull request spent 2 minutes 35 seconds in the queue, with no time running CI. ReasonPull request #29958 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
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #29888
What this PR does / why we need it:
Root causes
RESTORE ... FROM SNAPSHOTforms. Those inputs therefore fall through to generic parser errors without actionable syntax guidance.fromUpdateprovenance. The FAIL diagnostic printed the physical kinds and claimed the values differed, although that path only identifies a matching primary key and does not compare endpoint values.Changes
FROM SNAPSHOTforms. They use the existing parser error path to point toRESTORE DATABASE [account.]database{snapshot="snapshot_name"}. The supported brace-style restore AST and execution remain unchanged.batchWithKind.logicalOperation()to report UPDATE whenfromUpdateis set, while preserving existing operation names for other batches. Use it in the hash-diff FAIL diagnostic and remove the unsupported “with different values” claim. Conflict detection and merge policy behavior are unchanged.branch_binary_pk,branch_float_special_values,branch_fractional_temporal_pk,branch_matrix_coverage, andmerge_3. The fixtures now expect retained UPDATE provenance, while genuine DELETE conflicts omit the unsupported value-difference claim.Issue-to-test proof
TestRestoreSnapshotFromSyntaxHintchecks both reported forms, qualified/quoted/mixed-case syntax, the supported brace-style AST, and an unrelated malformed form that must not receive the hint.issue_29888_restore_from_snapshot.sqlchecks both diagnostics and restores the snapshot data. Result: parser test passed; BVT passed 13/13.TestHashDiffConflictReportsExpandedUpdatesWithoutValueClaimdrives actual expanded UPDATE batches throughhashDiffwith equal endpoint values, checks UPDATE labels and the primary key, rejects a “different values” claim, and verifies FAIL emits no batches.merge_issue_29888.sqlchecks same-value and different-value conflicts, explicit/default FAIL preservation, SKIP and ACCEPT results. Result: focused and full frontend tests passed; BVT passed 25/25. Existingmerge_2.sqlalso passed 71/71 with the updated diagnostic expectation. The updated branch fixtures were rerun withbranch_binary_pk.sql,branch_float_special_values.sql,branch_fractional_temporal_pk.sql,branch_matrix_coverage.sql, andmerge_3.sql; all 786 SQL checks passed.Validation
make -C pkg/sql/parsers/dialect/mysql— generated parser is current; regeneration during implementation reported zero grammar conflicts../.agents/skills/mo-dev/scripts/mo-cgo-test -run '^TestRestoreSnapshotFromSyntaxHint$' -count=1 -timeout=120s ./pkg/sql/parsers/dialect/mysql— passed../.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=120s ./pkg/sql/parsers/dialect/mysql— passed../.agents/skills/mo-dev/scripts/mo-cgo-test -run '^(TestHashDiffConflictReportsExpandedUpdatesWithoutValueClaim|TestBatchWithKindLogicalOperation)$' -count=1 -timeout=120s ./pkg/frontend— passed../.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=300s ./pkg/frontend— passed.NATIVE_BUILD_JOBS=4 make build— completed successfully for PR headd2de51e389c9cc98d8f48cb0cff6fe880ca3c437.38204783727failed Compose Proxy BVT job114667309931on nine stale expected diagnostic lines in the five fixtures listed above. The job's actual outputs match the corrected expectations; no production code was changed for this CI failure.mo-testerrun mode passed the seven affected branch scripts at 786/786 (all SQL checks successful). The runner used/tmp/issue_29888_bvt_head_20261012/run3/mo.ymlandrun.ymlfor an isolated PR-head service on port 6002; no files inmo-testerwere modified. Exact invocation, from/tmp/issue_29888_bvt_head_20261012/run3:git diff --check— clean after the fixture updates.ISSUE_WS='/Users/ghs-mo/MOWorkSpace/tmp/issue-fix/issue-fix-loop/state/worktrees/issue-29888-c4e8d7e4' && export GOWORK=off CGO_CFLAGS="-I$ISSUE_WS/cgo -I$ISSUE_WS/thirdparties/install/include" CGO_LDFLAGS="-L$ISSUE_WS/thirdparties/install/lib -L/opt/homebrew/lib" && go vet -mod=readonly ./pkg/frontend ./pkg/sql/parsers/dialect/mysql— passed.golangci-lint run -c .golangci.yml --new-from-rev origin/main ./pkg/frontend ./pkg/sql/parsers/dialect/mysql— 0 issues with the same CGo environment.gofmt -lon changed Go files andgit diff --check origin/main...HEAD— clean.After rebasing on current main
64b7a43852627aeef568d7bd43a5e11c87872990, the generated parser is current and the focused parser/frontend regressions pass on the rebased source:make -C pkg/sql/parsers/dialect/mysql— generated parser up to date../.agents/skills/mo-dev/scripts/mo-cgo-test -run '^TestRestoreSnapshotFromSyntaxHint$' -count=1 -timeout=120s ./pkg/sql/parsers/dialect/mysql— passed../.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=120s -run '^(TestDataBranchOutputAppendBatchRowsAsSQLValues|TestHashDiffConflictReportsExpandedUpdatesWithoutValueClaim|TestBatchWithKindLogicalOperation)$' ./pkg/frontend— passed.Residual risks
RESTORE ... FROM SNAPSHOTremains unsupported; this change gives it an explicit pointer to the supported brace syntax, as allowed by the issue. The generated parser state tables have broad numbering churn, but regeneration reported zero conflicts and the final parser tests pass.Latest rebase validation
matrixorigin/matrixonemain1abfd6081b494dc6ab99d53805c1cc209883914d. The conflict was in generated parser output: upstream addedSHOW GRANTS FOR CURRENT_USERwhile this PR adds the restore syntax diagnostic. The merged grammar and parser tests retain both behaviors;make -B -C pkg/sql/parsers/dialect/mysqlregenerated the parser with zero conflicts.make -C pkg/sql/parsers/dialect/mysql— generated parser is up to date../.agents/skills/mo-dev/scripts/mo-cgo-test -run '^(TestRestoreSnapshotFromSyntaxHint|TestShowGrantsForCurrentUser)$' -count=1 -timeout=120s ./pkg/sql/parsers/dialect/mysql— passed../.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=120s -run '^(TestHashDiffConflictReportsExpandedUpdatesWithoutValueClaim|TestBatchWithKindLogicalOperation)$' ./pkg/frontend— passed.git diff --check origin/main...HEAD— clean.Latest main sync validation
matrixorigin/matrixonemain35c8dd5854(ci(python-sdk): activate root Actions workflow and dependency matrix (#30075)). The only conflict was generatedpkg/sql/parsers/dialect/mysql/mysql_sql.go; regenerated it from the auto-merged grammar so the PR restore syntax diagnostic and upstream grammar changes are both retained.make -B -C pkg/sql/parsers/dialect/mysql— parser regeneration completed;make -C pkg/sql/parsers/dialect/mysqlconfirms the generated parser is current../.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=300s ./pkg/sql/parsers/dialect/mysql— passed../.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=120s -run '^(TestHashDiffConflictReportsExpandedUpdatesWithoutValueClaim|TestBatchWithKindLogicalOperation)$' ./pkg/frontend— blocked during compilation by current-main references inpkg/sql/plan/explain/sql_json.gotoplan.Node_VECTOR_INDEX_SCANandplan.VectorIndexScan, which are absent from the unchangedpkg/pb/planpackage. Neither path is changed by this PR; no unrelated workaround was added.git diff --check origin/main...HEAD— clean. The rebased PR diff remains limited to the issue’s frontend diagnostics, parser hint, and related regression tests/fixtures.