Skip to content

Add compare - #22

Merged
yingfeng merged 1 commit into
matrixorigin:mainfrom
nnsgmsone:main
Mar 26, 2021
Merged

yingfeng merged 1 commit into
matrixorigin:mainfrom
nnsgmsone:main

Conversation

@nnsgmsone

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 #21

What this PR does / why we need it:

Not Available

Special notes for your reviewer:

Not Available

Additional documentation (e.g. design docs, usage docs, etc.):

Not Available

@yingfeng
yingfeng merged commit 90402cd into matrixorigin:main Mar 26, 2021
yingfeng pushed a commit that referenced this pull request Aug 18, 2021
jiangxinmeng1 referenced this pull request in jiangxinmeng1/matrixone Apr 21, 2022
jiangxinmeng1 referenced this pull request in jiangxinmeng1/matrixone Apr 29, 2022
zengyan1 pushed a commit to zengyan1/matrixone that referenced this pull request Mar 27, 2023
fengttt referenced this pull request in fengttt/matrixone Apr 20, 2023
gouhongshen referenced this pull request in gouhongshen/matrixone Jul 23, 2024
ouyuanning pushed a commit to ouyuanning/matrixone that referenced this pull request Oct 14, 2024
XuPeng-SH pushed a commit that referenced this pull request Sep 28, 2026
## What type of PR is this?

- [ ] API-change
- [ ] BUG
- [x] Improvement
- [x] Documentation
- [ ] Feature
- [x] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Refs #28966. This prerequisite does not close the migration issue.

## Review notes

- The owner [superseded the earlier optional-manifest
decision](#28966 (comment)):
Pixi is the sole GPU build provider in the final embedded shape;
CPU-only builds remain Pixi-free.
- [GPU toolchain design v2 at this
head](https://github.com/matrixorigin/matrixone/blob/3ee87c0426bf02c0de57e0fcabea6ce57a0a2b9f/docs/design/sirius-gpu-toolchain.md)
describes the provider, native provenance, and upgrade contract. Sirius
#22 removed its duplicate exporter; draft MO #29203 owns shared-prefix
enforcement and combined runtime packaging.
- MO GPU-only builds retain a small standalone Pixi lock. Combined
MO/Sirius builds use Sirius's single `mo` prefix. The upgrade helper
aligns shared direct constraints from Sirius's locked `mo` manifest and
lets Pixi resolve MO's own lock; it does not copy Sirius's
multi-environment lock.
- `@cpegeric` is a CODEOWNER for `cgo/cuda` and `cgo/cuvs`; CODEOWNER
and independent design review remain required.

Current-head validation at `3ee87c0426`: required MO CI passed,
including UT, Coverage, SCA, native-contract checks, and active multi-CN
BVT lanes. Both GPU Dockerfiles built at this head with rootless Podman;
their final runtime images passed the 333-ELF loader, dangling-link,
driver-stub, and outside-Pixi audit
([evidence](#29254 (comment))).
XuPeng-SH approved this exact design and implementation head. Sirius #22
has merged at `6adc9c0`; the combined MO/Sirius CGo bridge remains
separate draft #29203. CODEOWNER cpegeric's formal change request is
still outstanding. Earlier failed or pending CI runs belong to
superseded heads.

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

Make Pixi the sole provider for MatrixOne GPU builds while keeping
CPU-only builds independent of Pixi. Derive CUDA/cuVS inputs from the
activated frozen environment, rebuild native thirdparties when its lock
changes, and package GPU runtime libraries without dangling links,
conflicting basenames, or driver stubs. Remove the system CUDA/Conda
path and separate toolchain manifest, retain both GPU Dockerfiles, and
provide a safe upgrade helper for MO's standalone Pixi lock. Both
Dockerfiles now produce the same 2.67 GB final runtime image, about 70%
smaller than the historically reported 8.97 GB CUDA/Conda image.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@aunjgr aunjgr mentioned this pull request Sep 28, 2026
4 of 7 tasks
XuPeng-SH pushed a commit that referenced this pull request Nov 20, 2026
## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Fixes #32842
Fixes #32836

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

- Validate exported snapshots before import. Remove a definitively
invalid candidate and try an older export while preserving the TN replay
watermark check. Keep transient read and removal errors retryable
without compacting the Raft log.
- Upgrade to the merged Dragonboat fixes in
[#21](matrixorigin/dragonboat#21) and
[#22](matrixorigin/dragonboat#22). Export worker
failures return an error instead of terminating LogService, and
malformed exported metadata or image headers return an
incomplete-snapshot result instead of panicking.
- Retain an admitted export request across a caller timeout, then
reconcile its final worker result before retrying. After a same-process
replica restart, use Dragonboat's successful restart as confirmation
that the previous worker stopped, clean its abandoned export, and
release the old export fence.
- Rename incomplete final directories to durable `.removing` tombstones
before deletion. Sync the parent directory on both initial cleanup and
retries, so a partial deletion or crash remains recoverable.
- Apply the same tombstone cleanup to invalid-candidate eviction and
post-import cleanup, and return snapshot inventory errors from voting
and nonvoting replica startup.
- Upgrade the pinned upstream Dragonboat module to the merged
[Dragonboat #23](matrixorigin/dragonboat#23)
commit. Export-abort temporary-directory cleanup now reports filesystem
errors to the worker.
- Retry cleanup of already imported snapshots on the next ordinary
truncation tick if the first rename fails, freeing export quota without
re-importing or deleting newer candidates.
- Treat a confirmed missing canonical export directory as already
evicted, so an older valid candidate remains reachable; retain the
inventory item when rename fails but its source still exists.

## Validation

- The published Dragonboat module passes `go mod verify` and matches the
source used for earlier full-package validation.
- Focused corruption, TN replay watermark, failed export commit,
timeout, replica restart, transient read, partial removal, and
parent-sync retry regressions pass.
- The new restart and tombstone-sync regressions each pass 100
race-enabled repetitions. Full `pkg/logservice` tests pass (142.162s),
full package race tests pass (152.021s), and CGo-configured `go vet
./pkg/logservice` passes after merging upstream `main`.
- After the Dragonboat upgrade, `go mod verify` and full
`pkg/logservice` tests passed (127.735s). Dragonboat #23 passed focused
ordinary and race tests.
- After the post-import cleanup retry fix and upstream `main` merge,
full `pkg/logservice` tests pass (132.535s), the
import/corrupt-export/rename-failure regressions pass 10 race-enabled
repetitions, and CGo-configured `go vet ./pkg/logservice` passes.
- After the missing-directory fallback fix, full `pkg/logservice` tests
pass (128.629s), the new fallback and rename controls pass 10
race-enabled repetitions, and `go vet ./pkg/logservice` passes. Focused
regressions also pass after merging the latest upstream `main`; CI is
pending on this head.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add compare

2 participants