Skip to content

Commit 01b0011

Browse files
authored
Merge branch 'main' into add-committs
2 parents fac7ef8 + 5f8a57c commit 01b0011

File tree

1,382 files changed

+290352
-31277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,382 files changed

+290352
-31277
lines changed

.dockerignore

Lines changed: 44 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,47 @@
1-
# https://docs.docker.com/engine/reference/builder/#dockerignore-file
2-
3-
# macOS
4-
.DS_Store
1+
# Ignore build artifacts
2+
mo-data/
3+
logs/
4+
*.log
55

6-
# Visual Studio Code
6+
# Ignore IDE files
77
.vscode/
8-
.devcontainer/
9-
10-
# JetBrains
118
.idea/
12-
13-
# generate files
14-
mo-service
15-
mo-server
16-
gen_config
17-
store/
18-
mo-data/
19-
**/scratch/
20-
ut-report/
21-
22-
# cgo compiler files linked system lib, so ignore it
23-
**/*.o
24-
**/*.a
25-
26-
# go
27-
vendor/
28-
29-
# bvt generate files
30-
test/distributed/resources/into_outfile/outfile_*.csv
31-
test/distributed/resources/into_outfile_2/outfile_*.csv
32-
test/distributed/resources/json/export_*.csv
33-
34-
#make compose bvt generate files
35-
docker-compose-log/
36-
9+
*.swp
10+
*.swo
11+
12+
# Ignore documentation
13+
*.md
14+
!README.md
15+
16+
# Ignore test files
17+
test/
18+
report/
19+
20+
# Ignore temporary files
21+
*.tmp
22+
*.temp
23+
cov.out
24+
coverage*.out
25+
26+
# Ignore Python cache
27+
__pycache__/
28+
*.pyc
29+
*.pyo
30+
*.pyd
31+
.Python
32+
*.egg-info/
33+
34+
# Ignore build artifacts
35+
cgo/*.o
36+
cgo/*.a
37+
38+
# Keep what we need
39+
!etc/
40+
!proto/
41+
!pkg/
42+
!cmd/
43+
!vendor/
44+
!go.mod
45+
!go.sum
46+
!Makefile
47+
!thirdparties/

.github/mergify.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,54 @@ queue_rules:
33
merge_conditions: []
44
checks_timeout: 4h
55
merge_method: squash
6-
commit_message_template: |
6+
commit_message_template: >
77
{{ title }} (#{{ number }})
88
9-
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
109
11-
Approved by: @{{ approved_reviews_by | join(', @') }}
10+
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What
11+
this PR does / why we need it:") }}
12+
1213
14+
Approved by: @{{ approved_reviews_by | join(', @') }}
1315
- name: release-3.0
1416
merge_conditions: []
1517
checks_timeout: 4h
1618
merge_method: squash
17-
commit_message_template: |
19+
commit_message_template: >
1820
{{ title }} (#{{ number }})
1921
20-
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
22+
23+
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What
24+
this PR does / why we need it:") }}
25+
2126
2227
Approved by: @{{ approved_reviews_by | join(', @') }}
2328
- name: release-2.2
2429
merge_conditions: []
2530
checks_timeout: 4h
2631
merge_method: squash
27-
commit_message_template: |
32+
commit_message_template: >
2833
{{ title }} (#{{ number }})
2934
30-
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
35+
36+
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What
37+
this PR does / why we need it:") }}
38+
3139
3240
Approved by: @{{ approved_reviews_by | join(', @') }}
3341
- name: release-2.1
3442
merge_conditions: []
3543
checks_timeout: 4h
3644
merge_method: squash
37-
commit_message_template: |
45+
commit_message_template: >
3846
{{ title }} (#{{ number }})
3947
40-
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
4148
42-
Approved by: @{{ approved_reviews_by | join(', @') }}
49+
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What
50+
this PR does / why we need it:") }}
4351
52+
53+
Approved by: @{{ approved_reviews_by | join(', @') }}
4454
pull_request_rules:
4555
- name: Automatic queue on approval for main
4656
conditions:
@@ -50,7 +60,6 @@ pull_request_rules:
5060
actions:
5161
queue:
5262
name: main
53-
5463
- name: Automatic queue on approval for release-3.0
5564
conditions:
5665
- "#changes-requested-reviews-by<=0"
@@ -60,7 +69,6 @@ pull_request_rules:
6069
actions:
6170
queue:
6271
name: release-3.0
63-
6472
- name: Automatic queue on approval for release-2.2
6573
conditions:
6674
- "#changes-requested-reviews-by<=0"
@@ -70,7 +78,6 @@ pull_request_rules:
7078
actions:
7179
queue:
7280
name: release-2.2
73-
7481
- name: Automatic queue on approval for release-2.1
7582
conditions:
7683
- "#changes-requested-reviews-by<=0"
@@ -80,21 +87,18 @@ pull_request_rules:
8087
actions:
8188
queue:
8289
name: release-2.1
83-
8490
- name: Auto Request Reviewer For Non Main Branch
8591
conditions:
8692
- base!=main
8793
actions:
8894
request_reviews:
8995
users:
9096
- XuPeng-SH
91-
9297
- name: Auto update branch
9398
conditions:
9499
- created-at>=00:10 ago
95100
actions:
96101
update:
97-
98102
- name: label for Bug
99103
conditions:
100104
- body~=(?im)- \[x\] BUG
@@ -153,3 +157,5 @@ priority_rules:
153157
conditions:
154158
- queue-name=release-2.0
155159
priority: 2250
160+
merge_queue:
161+
max_parallel_checks: 1

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ y.go
1212
**/cover.out
1313
.vscode
1414
.env
15+
config.env
1516
*.iml
1617
tags
1718
coverage.txt
1819
out.txt
20+
logs/
21+
sdk_demo/
1922
vendor/
2023
gen_config
2124
main
@@ -52,3 +55,11 @@ test/distributed/resources/json/export_*.csv
5255

5356
# docker compose bvt generate files
5457
docker-compose-log/
58+
59+
# docker-multi-cn-local-disk generated configuration files
60+
etc/docker-multi-cn-local-disk/*.toml
61+
!etc/docker-multi-cn-local-disk/launch.toml
62+
63+
# python
64+
**/__pycache__/
65+
*.pyc

.golangci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ linters:
2121
depguard:
2222
rules:
2323
main:
24+
list-mode: lax
2425
files:
2526
- $all
2627
- '!$test'
27-
# allow:
28-
# - $gostd
29-
# - github.com
3028
deny:
3129
- pkg: github.com/OpenPeeDeeP/depguard
3230
desc: example to deny some package
@@ -91,7 +89,7 @@ linters:
9189
- SA1016
9290
- SA1017
9391
- SA1018
94-
- SA1019
92+
#- SA1019
9593
- SA1020
9694
- SA1021
9795
- SA1023

.readthedocs.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Read the Docs configuration file for MatrixOne Python SDK
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.10"
12+
jobs:
13+
post_checkout:
14+
# Cancel building pull requests when there aren't changes in the docs directory or YAML file.
15+
# You can add any other files or directories that you'd like here as well,
16+
# like your docs requirements file, or other files that will change your docs build.
17+
#
18+
# If there are no changes (git diff exits with 0) we force the command to return with 183.
19+
# This is a special exit code on Read the Docs that will cancel the build immediately.
20+
- |
21+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- clients/python/docs/ .readthedocs.yaml clients/python/pyproject.toml;
22+
then
23+
exit 183;
24+
fi
25+
26+
# Build documentation in the "clients/python/docs/" directory with Sphinx
27+
sphinx:
28+
configuration: clients/python/docs/conf.py
29+
fail_on_warning: false
30+
31+
# Optionally build your docs in additional formats such as PDF and ePub
32+
formats:
33+
- pdf
34+
- epub
35+
36+
# Optional but recommended, declare the Python requirements required
37+
# to build your documentation
38+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
39+
python:
40+
install:
41+
- method: pip
42+
path: clients/python
43+
extra_requirements:
44+
- docs
45+
# Install any additional requirements for building docs
46+
- requirements: clients/python/docs/requirements.txt
47+

0 commit comments

Comments
 (0)