Skip to content

[4.2-dev] test: stabilize checkpoint observation - #32837

Merged
XuPeng-SH merged 1 commit into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/42dev-ci-checkpoint-gc-20261117
Nov 17, 2026
Merged

XuPeng-SH merged 1 commit into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/42dev-ci-checkpoint-gc-20261117

Conversation

@XuPeng-SH

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:

Related to #32810 (the checkpoint observation failure only).
Related to #27327.

What this PR does / why we need it:

TestCheckpoint1 waits one second for asynchronous flushing and then resamples the catalog. In the 4.2-dev CI failure, the flush completed after the assertion. The fixture also enables catalog GC every millisecond, so it can reclaim the old object while the test is observing the two-block state.

Disable catalog GC only in this test, use the existing bounded checkpoint wait, and assert the exact last sample that ended the wait. This backports the fixture isolation and wait used by #27376, while removing the redundant second scan. Automatic flushing/checkpointing and the exact two-block assertion remain in place. The existing wait helper polls every 300 ms at this bound; single focused race runs took 0.32 s after the change and 0.07 s before it locally; these are not benchmark results. No production path changes.

Validation on Linux/amd64, Go 1.26.4:

  • Exact TestCheckpoint1 race test passed once and in 93 bounded repetitions.
  • A controlled diagnostic overlay, with the same 2 s background scan and fixture-local GC setting on both versions, reproduced the old 1 s failure and passed after the change when the real flush completed.
  • Normal TestCheckpoint1, TestCheckpoint2, and GC-enabled TestGCCatalog2 passed.
  • Changed-package gofmt, go vet, molint, and configured golangci-lint passed.
  • Full normal owning package passed with 261 test/subtest passes and 13 existing skips, using a private disk-backed /tmp (Go 1.26.4, -short -tags matrixone_test).

This addresses the checkpoint observation failure in #32810, not its separate control-plane and connection failures.

@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 →

@matrix-meow matrix-meow added the size/XS Denotes a PR that changes [1, 9] lines label Nov 17, 2026
@mergify mergify Bot added kind/bug Something isn't working kind/test-ci labels Nov 17, 2026
@mergify

mergify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH

XuPeng-SH commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: d3d6222d47695015b4af7bf33292565a0c89e11f

Review completed. Read the assessment.

@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.

mo-bot review · mo-bot-local · review

Commit: d3d6222d47695015b4af7bf33292565a0c89e11f

Assessment: approve

The fixture-local GC opt-out and existing bounded wait preserve automatic checkpoint progress and the exact two-block assertion while removing a redundant scan. No actionable findings.

Model: gpt-6.1-sol / max

Session: 01a1e395-a6d9-7ad1-bf20-81f1c6210100 · slot 2 · generation 0

Validation:

  • Reviewed both changed hunks, relevant fixture/wait/catalog owners, all three discussion entries and both linked issues. Source/provenance audit passed; source remains unchanged.

  • Private /tmp and loopback preflight passed. Built required native dependencies through unchanged repository Makefiles; retained matching input/artifact ledgers.

  • TestCheckpoint1 passed under race, followed by three successful repetitions using T=8.36s, B=30s and N=3.

  • Owning package passed with -race -short -tags=matrixone_test: 261 test/subtest passes and 13 existing skips.

  • Normal TestCheckpoint1, TestCheckpoint2 and TestGCCatalog2 passed. Command/source/exit receipts and retained logs are reconciled in validation-manifest.json.

Limitations:

  • Local checks used Go 1.26.6. UT and SCA remain pending in the supplied CI snapshot.

  • The author-reported controlled baseline failure was not independently reproduced.

@XuPeng-SH
XuPeng-SH merged commit e8fd84b into matrixorigin:4.2-dev Nov 17, 2026
@XuPeng-SH
XuPeng-SH deleted the codex/42dev-ci-checkpoint-gc-20261117 branch November 17, 2026 05:59
XuPeng-SH added a commit that referenced this pull request Nov 18, 2026
## What type of PR is this?

- [x] Test and CI

## Which issue(s) this PR fixes:

Refs #32907 and #32908. Related CI tracking: #32810 and #32744.

## What this PR does / why we need it:

The missing-table subscription test could exhaust its shared five-minute
deadline while repeating 1,000 mock RPC exchanges. Two exchanges on the
same missing table now demonstrate cleanup and resubscription. The
checks for the typed missing-table response, unaffected valid
subscription, and pending-state recovery remain. The state-machine test
continues to exercise cleanup 1,000 times.

The authorization test could connect to a different CN before that CN
had applied the user-creation commit. Reuse the fixture's
context-bounded commit fence at dependent cross-CN login, DDL, and
snapshot steps. Existing authorization and retained-session assertions
are preserved.

The delta is confined to tests. #32837 already addressed the checkpoint
observation in #32810. The remaining control-plane cases in #32810 and
tracker entries in #32744 retain their own validation criteria.

Validated on Linux/amd64 with Go 1.26.4 and matching CGo libraries:

- Both edited packages passed their complete tagged short-mode race
runs. The subscription integration test passed 20 race repetitions, the
authorization parent passed three, and the existing 1,000-cycle cleanup
test passed.
- The authorization parent passed set coverage with frontend, CN
service, transaction client, and disttae instrumentation. Normal
subscription, formatting, vet, and branch-pinned incremental static
analysis passed.
- The original CI failures did not recur in focused tests on the clean
base. Full CI on this PR is pending.

This branch was previously deployed

1 inactive deployment
ci — d3d6222d Deployed Nov 17, 2026 by XuPeng-SH
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/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.

2 participants