Skip to content

test: stabilize CI fixtures and reduce test I/O - #32643

Merged
XuPeng-SH merged 1 commit into
mainfrom
codex/ci-ut-systemic-20261112
Nov 12, 2026
Merged

XuPeng-SH merged 1 commit into
mainfrom
codex/ci-ut-systemic-20261112

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:

Fixes #32580

Refs #29249

What this PR does / why we need it:

  • Release each disk-cache test vector even when an assertion aborts the iteration, preventing its allocator finalizer from failing a later test.
  • Cancel the range-lock waiter only after it is observed in the queue; join it before releasing its holders. Keep a separate deadline-error assertion for waiters.
  • Wait for admitted source readers to finish closing before checking the pending-publication counts, while leaving the cache-publication barrier blocked. Share immutable large/small source objects across the eight sequential scenarios and size each object for the behavior it exercises; disk caches, counters, and barriers remain isolated.
  • Reuse two persisted tables for the integer and PAD SPACE set-membership scenarios and halve their input rows. Preserve NULL/bag results, analyzed plans, one- and two-CN runs, eight-owner witnesses, cancellation and low-budget fallback coverage.

On host 57, paired runs in both orders with Go 1.27.1, -race -short -tags matrixone_test, private network namespaces, and matching test settings measured:

Selected test Baseline process write_bytes Updated process write_bytes Reduction
Pending S3 publication, all eight modes 160.5 MB 47.3 MB 70.5%
Set-membership owners, all witnesses 52.9–53.1 MB 21.7–21.9 MB about 59%

These are per-process kernel accounting counters for the selected tests, not physical-device or whole-CI measurements. All eight S3 modes and all eight membership plan witnesses executed without skips in the comparison runs.

Validation on 57 (CPU only):

  • Full pkg/fileservice and pkg/lockservice packages under -race -short -tags matrixone_test: 584 and 690 top-level tests passed respectively. Fileservice retained six top-level and four nested existing opt-in/external-service/explicit skips.
  • Set-membership owners and low-budget fallback under race; the lock cancellation and independent deadline cases each passed 100 race repetitions.
  • S3 publication scenarios twice under race and twice with -covermode=set; independently selected late large and small modes also passed twice.
  • Controlled reader-close delay reproduces the old count mismatch and passes with the fix; controlled partial-write failure and watchdog-first/successful-write cases leave the following shared-fixture scenario working. A forced early lock-test failure joins the waiter and unlocks both holders.
  • MO_MALLOC_DEBUG=1 with a forced-GC test overlay passes the vector test three times under race. The old unreleased variant reproduces the missing-free finalizer failure.
  • gofmt, git diff --check, make err-check, go vet, and the repository's pinned molint and golangci-lint checks passed for the three affected test-owning packages.
    EOF'

@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 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH

XuPeng-SH commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Commit: 2eeb63aa0b0f602522cf74462fdefa0933113177

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: 2eeb63aa0b0f602522cf74462fdefa0933113177

Assessment: approve

The fixture reductions preserve the expensive-range, parallel-plan, data and failure oracles. Test-local reader-close synchronization and existing cleanup owners address the reported instability without changing production behavior or adding a parallel mechanism. No actionable findings remain.

Model: gpt-6.1-sol / max

Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0

Validation:

  • Read the complete five-file delta, affected ownership/cancellation paths, all discussion entries, and linked issue context; verified clean frozen source, diff formatting and gofmt.

  • Private /tmp and loopback preflight passed. Reused native artifacts only after matching all 198 current native inputs and 50 output hashes.

  • The pending-publication S3 test passed all eight scenarios under -race -short -tags=matrixone_test, then passed 20 adaptive repetitions (160 child executions), with no failures, skips or race reports.

  • Reconciled local command/source/exit receipts with retained logs. Reused the author's reported broader package, allocator, coverage, lock/deadline and membership checks within their stated scope.

Limitations:

  • The frozen UT/SCA and code-analysis checks were still pending; they are not counted as passes.

  • Broader package runs, forced-failure controls and paired kernel write_bytes measurements were reported by the author, without raw execution artifacts in local_validation; they were not independently repeated. The I/O figures do not establish whole-CI or physical-device savings.

This branch was successfully deployed

No deployments
ci — da586e01 Deployed Nov 12, 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/enhancement kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: S3FS pending-publication reader close-count assertion flakes in coverage UT

2 participants