Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gaea 2.4.2 Synchronization #265

Merged
merged 253 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
253 commits
Select commit Hold shift + click to select a range
b2fee47
Merge branch 'my_develop' into 'develop'
Oct 25, 2022
ee36a39
Fix ut error & revert some logic about master hint and use regx
yuqi1129 Oct 26, 2022
f1b6e23
Fix minor bug
yuqi1129 Oct 26, 2022
87cbb48
Fix discussion about test method
yuqi1129 Oct 27, 2022
26a66a9
test: add unit test to ci && fix unit test
Oct 28, 2022
1570ec7
add integrate test
yuqi1129 Nov 1, 2022
e2857e1
fix format
yuqi1129 Nov 1, 2022
d518ef2
Connect to mysql at start
yuqi1129 Nov 1, 2022
0464040
fix integrate test error
yuqi1129 Nov 1, 2022
50d5356
Connect to mysql at start
yuqi1129 Nov 1, 2022
d7f1a6b
Connect to mysql at start
yuqi1129 Nov 1, 2022
4e8fffc
fix spell mistake
yuqi1129 Nov 1, 2022
7cea9b9
fix minor problem
yuqi1129 Nov 1, 2022
4397cc9
Add some miproxy log
yuqi1129 Oct 31, 2022
d5db449
Add abort info
yuqi1129 Oct 31, 2022
93b76d3
fix comment
yuqi1129 Oct 31, 2022
9cd2c19
Optimize minor point
yuqi1129 Oct 31, 2022
3cd3f8a
resolve discussion
yuqi1129 Nov 1, 2022
74577d0
add integrate test
yuqi1129 Nov 1, 2022
dbdd039
fix format
yuqi1129 Nov 1, 2022
2b1dc1a
Connect to mysql at start
yuqi1129 Nov 1, 2022
2de064d
fix integrate test error
yuqi1129 Nov 1, 2022
7978b1d
Connect to mysql at start
yuqi1129 Nov 1, 2022
b522914
Connect to mysql at start
yuqi1129 Nov 1, 2022
d6fd0e5
fix spell mistake
yuqi1129 Nov 1, 2022
128b5b6
fix minor problem
yuqi1129 Nov 1, 2022
1c292eb
Add auto create database and table
yuqi1129 Nov 2, 2022
bdcac57
Merge remote-tracking branch 'origin/ut_test' into ut_test
yuqi1129 Nov 2, 2022
40e4527
fix ci test
yuqi1129 Nov 2, 2022
148b517
fix ci test
yuqi1129 Nov 2, 2022
3767cf7
fix ci test
yuqi1129 Nov 2, 2022
d645ef6
fix ci test
yuqi1129 Nov 2, 2022
1902cb0
fix ci test
yuqi1129 Nov 2, 2022
932f103
fix ci test
yuqi1129 Nov 2, 2022
f15d9d4
ADD file spelling check && fix already errors
mianhk Oct 25, 2022
c319d00
Support capability
yuqi1129 Nov 3, 2022
be48f57
Connection at start
yuqi1129 Nov 3, 2022
7c47b17
Support check slave status and remove offline slave in memory
yuqi1129 Nov 3, 2022
1efe3f3
refactor code
yuqi1129 Nov 3, 2022
4e3192b
e2e test framework & example
Nov 10, 2022
0452349
Add config file verify logic
Nov 15, 2022
3be4e32
split sql log to gaea_sql.log
Nov 15, 2022
c656681
fix: capacity panic and check capacity in advance
Nov 10, 2022
1aa0144
feat: support init_connect SQL when connect to backend MySQL
Nov 17, 2022
f57e76f
add sql test case
yuqi1129 Nov 15, 2022
6f48bdc
fix make check error
yuqi1129 Nov 15, 2022
0afbf2f
fix format problem
yuqi1129 Nov 15, 2022
fa5d5c1
fix test problem
yuqi1129 Nov 15, 2022
f4ba703
Support limit the number of front end connection
Nov 18, 2022
f22ad75
feat: show command default to slave
Nov 3, 2022
c867212
support check master status and add seconds_behind_master configurati…
yuqi1129 Nov 18, 2022
de75600
fix possible bug in master open logic
Nov 25, 2022
0b65d78
fix: hang when modify namespace error
Nov 17, 2022
b072975
fix:e2e add more err info
Nov 25, 2022
6c38735
release version 2.0-alpha
Nov 25, 2022
49d2c23
fix: 修复从库设置为空数组而非 null 的启动失败问题
Dec 15, 2022
e6e7c1c
feat: 支持配置日志保留天数(默认保留3天)
Dec 16, 2022
2596800
feat: 支持将 `select ... for update` or `select ... in share mode` 语句优先发给主库
Dec 26, 2022
d4e54d4
ci add release file to fds
Jan 9, 2023
1988423
feat: 新增监控项,监控 gaea 启动时间和后端实例状态
Jan 10, 2023
1fd3e39
fix: optimize gaea log format
Jan 10, 2023
dd52878
optimize:doCheckSlice status log level
Jan 10, 2023
b7f85c8
fix: 修复 LVS 探活导致产生的大量日志
Jan 10, 2023
f646bab
fix pre-release upload
Jan 10, 2023
df21d5c
release version 2.0-beta
Jan 10, 2023
5e4cc92
fix: configure gaea general log in namespace
Feb 6, 2023
1e2545d
fix sql func password error
Jan 11, 2023
4cac03c
fix: 修复 mac 环境下 goyacc 无法生成 parser 文件问题
Jan 31, 2023
8e7138c
fix: ci test build parser failure
Feb 7, 2023
cda0ce9
Fix ci
Feb 9, 2023
d8bd814
Revert "fix: add resource constraints when start-up gaea"
Feb 9, 2023
4fff761
feature: support sql `order by null`
Feb 9, 2023
a7a605e
feature: support sql `group by ... with rollup`
Feb 6, 2023
5c0177f
feature: add cpu_busy metric for gaea proxy
Feb 14, 2023
5e29d29
fix: broken pipe signal by lvs health check
Feb 22, 2023
57ec870
fix: 修复后端从库探活偶尔失败
Feb 23, 2023
0c4742a
doc: Gaea 2.0 GA release note
Feb 23, 2023
3ad5563
add gaea admin api for gaea version
Mar 9, 2023
87ac431
hostfix: fix union sql internal error
Mar 2, 2023
ed2fb40
feature: support sql `create table t (... on update current_timestamp…
Mar 7, 2023
3e6a45f
revert: Connection at start
Mar 13, 2023
046fc53
feature: support sql double bracket in subquery
Mar 22, 2023
3b9d8a0
feature: support sql `select @@read_only` and `show variables like "%…
Mar 24, 2023
68e2fa8
feature: support sql `order by max()/min()`
Mar 30, 2023
cd87ff2
Test integration promotion new
Mar 30, 2023
89cb99f
doc: version 2.1 release
Mar 30, 2023
f9cf18c
Feat multistatement other
Apr 19, 2023
fa67dae
fix: jdbc error `Unknown system variable 'transaction_isolation'` whe…
Apr 21, 2023
678cea7
fix user privilege compatibility
Apr 25, 2023
fc0679b
feat: support log config in gaea proxy config hot reload
Apr 27, 2023
ae14c0a
optimize: optimize general log with user and backend addr
Apr 27, 2023
c525954
feat: log files keep count
May 10, 2023
d5dad38
optimize: optimize timeout for backend MySQL connections
May 25, 2023
ebcc13b
feat: support char functions like "select char(67 using utf8)"
May 25, 2023
5476fa8
feat: support group_concat func in sharding mode.
Jun 7, 2023
8d974ab
feat: 分片情况下全局表随机查询分片
Jun 8, 2023
881a1ef
optimize: 分片情况下默认返回一致的结果集顺序
Jun 16, 2023
18fc4da
Feat mycat hint sql
Jun 29, 2023
033911d
feat: add P99/P95 max/avg metrics
Jun 28, 2023
54178d2
feat: support limit global sequence when shard mode
Jul 3, 2023
418cb93
fix: aggregate sum function result not exact when decimal column in s…
Jul 5, 2023
eb17a5d
feat: support omit auto-incretment id in global sequence
Jul 5, 2023
0546e1f
fix: write info message when unshard mode
Jul 10, 2023
09d9f4d
feat: support simple explain info for unshard sqls
Jul 10, 2023
5576bd1
fix: global/shard table order by/group by return extra column in shar…
Jul 11, 2023
fb10018
optimize: e2e test user docker env with local mysql and etcd
Jul 24, 2023
0876435
feature: support global table use global sequence and limit max seque…
Jul 25, 2023
7a3c773
fix: fix statistics SQLResponsePercentile map init when add new names…
Jul 28, 2023
bc11b7c
optimize: refactor e2e test step 1
Aug 2, 2023
17d0576
fix: delete transaction to make ci success
Aug 3, 2023
47b2347
feature: support batch insert in sharding mode
Aug 2, 2023
cf20cae
fix: close checkalive when namesapce closed,and make checkalive conn...
Aug 3, 2023
cb8b894
fix: some problems in JDBC version more than 8.0.30
Jul 31, 2023
098e40c
test: add base sql e2e tests
Aug 24, 2023
3732626
feat(shard): 添加对 分片下的DML测试
Aug 30, 2023
e62a8db
feat:Comprehensive e2e tests to enhance system reliability and ensure…
Aug 31, 2023
04b64a6
feat: local slave read priority
Aug 31, 2023
50b36fc
doc: v2.2 release note
Aug 31, 2023
d69c880
optimize: optimize gaea performance by increase pingPeriod and conn b…
Sep 12, 2023
4dadf63
feat(testing): Add complex join tests for non-cross-database scenarios
Sep 14, 2023
ba0944f
fix: fix decimal aggregate func sum to avoid unshard problems
Sep 14, 2023
5e339fb
optimize log format:
Oct 8, 2023
e153fe4
perf: execute each sql in parallel in sharding mode
Sep 19, 2023
03d937f
enhance: optimize unshard sqls not use sql parser
Oct 17, 2023
777f0d4
test: Test JOIN statements in sharded environment
Oct 24, 2023
6280adc
enhance: optimize show sql not parser
Oct 30, 2023
17c2c65
fix: only comment sql error
Nov 6, 2023
11eaae9
fix: ignore lvs error info and record error sql log info
Nov 7, 2023
b977afb
fix:the problem of incorrect mysql connection id
Nov 14, 2023
ed4a2b8
optimize: cpu busy for actual percent
Nov 15, 2023
ad4dbe6
optimize: log add database
Nov 20, 2023
d9c84e9
optimize: P99 response time
Nov 15, 2023
e4453ec
enhance: protect slave of seconds_behind_master
Nov 20, 2023
4ad14e6
fix: problem of getTestFunc not passing
Nov 20, 2023
722ca60
fix: gaea.ini when release version
Nov 20, 2023
6e83e5f
fix:max_client_connections limit failure problem
Nov 21, 2023
d10532e
optimize: optimize batch insert in sharing mode when insert into one …
Nov 29, 2023
f0f6701
test: Implemented global management test cases
Dec 12, 2023
bceb878
feat:Fix the SQL test result problem to avoid the need to merge new f…
Dec 14, 2023
2224ebf
fix: set backend conn variables error cause later problems
Dec 12, 2023
1c44699
test:delete remove test result file
gongna-au Dec 14, 2023
897fdac
fix: show columns from table/show databases when shard mode
Dec 7, 2023
f5d98ae
fix: fuse when master to slave or no privileges
Dec 22, 2023
aeb76e1
fix: global table or query single sharding table use limit offset ret…
Dec 20, 2023
2945a29
feat:change db name sbtest1 to sbtest
Jan 9, 2024
108c950
feat:修复了查找日志的bug
gongna-au Jan 18, 2024
c2efe05
feat:increase wait time
Jan 22, 2024
fe8f131
migrate unshard dml test to unshard file
Jan 22, 2024
11b4158
fix: execute sql error log
Jan 17, 2024
5583e19
Feat:Query table exploration
Jan 24, 2024
89dc94d
fix: unsupported set variables
Jan 25, 2024
59ff188
fix: delete incompatible capability
Dec 6, 2023
248edf0
test: Refactor Test Suite to Use testing.T
Jan 25, 2024
4d6083c
fix: increasing log retention time not taking effect after modifying …
Jan 2, 2024
479dd11
test: fix TestFuzz fail cause use too much memory
Feb 21, 2024
a1cf80f
add sonar statistics
Feb 20, 2024
2f7e244
optimize: single statement query performance
Feb 1, 2024
6737979
fix: some sql preview stmt type error
Feb 26, 2024
11791b8
fix: connect error info when ip not allowed or connection limit
Mar 4, 2024
a3d5998
fix: set default supportMultiQuery false
Mar 7, 2024
e6ca8e1
fix: ignore lock table to avoid backend connections reuse error
Mar 1, 2024
af67a24
enhance: mysql backend sql error not record to session error
Mar 8, 2024
0e35363
enhance: metric gaea_proxy_cpu_busy to gaea_proxy_cpu_busy_by_core
Mar 11, 2024
7b930ec
Revert "enhance: mysql backend sql error not record to session error"
Mar 18, 2024
f5a884a
fix: not rename wf log when general log is empty
Mar 25, 2024
5df0cbf
feature: support client use encrypt password in namespace user config
Mar 28, 2024
f6f2b42
bucketpool: do not use floating point math
Nov 29, 2023
fc23fcd
feat: support backend mysql using caching-sha2-password plugin
Mar 26, 2024
d8d16ee
feature: support send `select ... for share/update [nowait/skip locke…
Mar 27, 2024
fc5d9df
fix: multi slice begin transaction hang
Nov 9, 2023
6a41a3f
feature: stream return big result and support multiquery in unshard mode
Apr 18, 2024
13647f9
fix: return origin mysql error
Apr 18, 2024
0505801
fix: prepare return result error
Apr 21, 2024
7d5562c
fix: write more rows when length more than 16M
Apr 21, 2024
bee3a2a
修复 e2e 测试失败问题
xiyangxixian May 7, 2024
a1a8a3f
fix: gaea large memory usage problem
May 8, 2024
4e21fcd
修复扩容连接池时,偶发的 timeout 错误
xiyangxixian May 6, 2024
9c2ec0e
修复 prepare 大结果集查询异常
xiyangxixian May 8, 2024
cd94884
回退 mycat 特化版本
xiyangxixian May 10, 2024
82b2f55
fix: problem of incorrect time zone setting
May 11, 2024
9e7c679
fix: invalid sequence problem
May 14, 2024
06c2ef9
修复分库分表加字段时,表结构不一致,select * 查询 panic
xiyangxixian May 20, 2024
ca9f4ef
Revert "fix: problem of incorrect time zone setting"
xiyangxixian May 21, 2024
5755c39
fix: session timezone setting in comment error
May 20, 2024
ef06bdb
fix: select last_insert_id return 0
May 24, 2024
1d62a27
fix: last_insert_id return int
Jun 3, 2024
2e56862
perf: prepare exec stmt performance optimize
Jun 3, 2024
2c98db1
ci sonar修改
Jun 17, 2024
c6b4e68
test sonar
Jun 17, 2024
9f4875f
fix: mysql8.0.3 support tx_read_only
Jun 25, 2024
6418a38
fix: slow sql panic
Jun 19, 2024
d1756b5
修复 net_buffer_size 不生效问题
xiyangxixian Jun 21, 2024
f20cda3
enhance: explain show more info in sharding mode
Jun 6, 2024
e8f0396
修复计算 p99/p95 cpu 资源占用率过高问题
xiyangxixian Jun 25, 2024
bf18b98
docs: add support_multi_query description
Jun 25, 2024
5729e6b
fix(cc): 2PC use an incorrect err
Jul 2, 2024
df4ce3b
fix mysql WritePacket
xiyangxixian Jul 1, 2024
66f5d63
fix: update error message when backend mysql was killed
Jul 1, 2024
813cd5e
优化执行 sql 时,因管道阻塞等待 1ms 时间
xiyangxixian Jul 3, 2024
f4d7c20
test: 增加 mysql8 e2e 测试
xiyangxixian Jul 10, 2024
1ff8edb
fix: fix panic
Jul 16, 2024
34ce7ab
修复没有流量时,p99/p95 值不更新问题
xiyangxixian Jul 3, 2024
3e83e5b
fix: support sql like "set character_set_client=binary";
Jul 19, 2024
2007849
Gaea 性能优化 log and session timeout and version compare and mysql result
xiyangxixian Jul 23, 2024
0b573ee
enhance: Gaea 日志优化
xiyangxixian Jul 23, 2024
0bdbc31
feature: client keep session with backend mysql
Jul 10, 2024
16aeba2
fix: 修复 mysql 8.0 字符集排序规则设置问题
xiyangxixian Jul 24, 2024
690da60
fix: explain sql error in DB sharding mode
Jul 25, 2024
a830a38
feature: Dependency package upgrade and license addition
gongna-au Aug 2, 2024
4ce2394
fix: comment sql syntax error
xiyangxixian Aug 5, 2024
e19b60b
feat: 增加和修改一些 ignore 日志
xiyangxixian Aug 6, 2024
25bea59
fix: 修复 prepare 结果集 > 16M gorm panic 问题
xiyangxixian Aug 6, 2024
089c555
修复多语句 insert panic 问题
xiyangxixian Aug 7, 2024
a444268
docs: Update performance testing
gongna-au Aug 13, 2024
9bf26a2
feat: Set session transaction read only pollutes another session
gongna-au Aug 21, 2024
299fc07
fix: set sql_mode to replace() error
Aug 20, 2024
ab17a07
feature: client qps limit
Jul 30, 2024
739aaf6
增加一些 keep session 的测试用例
xiyangxixian Jul 31, 2024
0003cd3
fix: error cases in keep session
Aug 6, 2024
cbd0474
feature: support sql like SET SESSION group_concat_max_len
gongna-au Aug 30, 2024
32c07bc
feat:Setting the wrong value in sql mode causes subsequent SQL except…
gongna-au Aug 30, 2024
f17171c
feat:add e2e test for set invalid session variables
gongna-au Sep 2, 2024
45860e5
feat:Get SQL fingerprint third-party package caused by panic
gongna-au Sep 2, 2024
8d28494
feature: update Gaea 2.3.7 vs Gaea 1.2.5 performance documentation
gongna-au Sep 4, 2024
d1fa678
feature:Added new connection pool expansion and contraction status mo…
gongna-au Sep 12, 2024
ba24096
test: 增加一些单测
xiyangxixian Sep 12, 2024
c9b91c7
优化 kill sql 交互,kill sql 后直接断开连接
xiyangxixian Sep 6, 2024
cfbb72d
bugfix: set gaea-cc coordinator address to local address
gongna-au Sep 13, 2024
553dd27
fix: some optimizations about slow log
Sep 9, 2024
3e71769
fix: log keep days less than log_keep_days config
Sep 9, 2024
8948357
feature: client qps limit support transaction
Sep 6, 2024
81ddb8b
bugfix: Gaea-CC check duplicate-name-password
gongna-au Sep 19, 2024
3537a21
bugfix: concatenate the path and file name to ensure that the full pa…
gongna-au Sep 19, 2024
ab67af0
select last insert id 支持别名
xiyangxixian Sep 19, 2024
df31724
feature:github synchronization
gongna-au Sep 19, 2024
db1e6ed
Code formatting: run go fmt on all files to ensure consistent formatting
gongna-au Sep 19, 2024
159c8dd
feat:delete go fmt check
gongna-au Sep 19, 2024
4e9b815
feat:test ci env GetInstanceDatacenter action
gongna-au Sep 19, 2024
0de61d8
feat:delete ip test case
gongna-au Sep 19, 2024
84e9cfc
feat:linelint -a Fix linting errors
gongna-au Sep 20, 2024
0258e7c
feat:delete nil unsupport.sql file
gongna-au Sep 20, 2024
7aee3a7
feat:delete lint error file
gongna-au Sep 20, 2024
555db86
feat:delete unused file
gongna-au Sep 20, 2024
cdc7a6d
feat:change linelint check to 0.0.4
gongna-au Sep 20, 2024
00ac599
feat:add unsupport sql file
gongna-au Sep 20, 2024
2b18bf5
feat:lint files end with newline
gongna-au Sep 20, 2024
445ece2
feat:add ignore file for linelint.yml
gongna-au Sep 20, 2024
a6d8ba1
Use the default configuration file path and omit the --config parameter.
gongna-au Sep 20, 2024
41ab3e8
feat:add .linelint.yml file
gongna-au Sep 20, 2024
9c02296
feature:build e2e mysql8 image
gongna-au Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
50 changes: 50 additions & 0 deletions .github/workflows/auto-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: Auto Comment

on:
issues:
types: [opened] # 触发条件:当问题被创建时
pull_request:
types: [opened] # 触发条件:当拉取请求被创建时

permissions:
issues: write # 允许写入问题
pull-requests: write # 允许写入拉取请求

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Comment on issue
uses: actions/github-script@v4
with:
script: |
const issueOpened = "Thank you for raising an issue. We will try and get back to you as soon as possible. Please make sure you have given us as much context as possible.";
const pullRequestOpened = "Thank you for raising your pull request. Please make sure you have followed our contributing guidelines. We will review it as soon as possible.";

if (context.payload.action === 'opened') {
const issueComment = context.payload.issue ? issueOpened : pullRequestOpened;
await github.issues.createComment({
...context.repo,
issue_number: context.payload.issue ? context.payload.issue.number : context.payload.pull_request.number,
body: issueComment
});
}
110 changes: 110 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: Go

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
code_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.16'

- name: Run code check
run: |
# 执行所有检查
for check in EOF spelling; do
./hack/verify-$check.sh
done

parser_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.16'

- name: Build parser
run: |
cd parser && make

unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.16'

- name: Set timezone
run: |
sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ls -l /etc/localtime

- name: Run unit tests
run: |
make test
echo "sql parser test"
cd parser && make test

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.16'

- name: Build the project
run: |
make build

e2e_test_mysql5:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Pull Docker image
run: |
docker pull fieelina/gaea-test-amd64:v2.4 # 确认这个镜像是可用的

- name: Run Mysql5 E2E tests
run: |
docker run --rm \
-v $(pwd):/workspace \
-w /workspace \
fieelina/gaea-test-amd64:v2.4 \
make e2e-test

e2e_test_mysql8:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Pull Docker image
run: |
docker pull fieelina/gaea-test-amd64-mysql8:v2.4 # 确认这个镜像是可用的

- name: Run Mysql8 E2E tests
run: |
docker run --rm \
-v $(pwd):/workspace \
-w /workspace \
fieelina/gaea-test-amd64-mysql8:v2.4 \
make e2e-test-mysql8
36 changes: 36 additions & 0 deletions .github/workflows/linelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: Linelint

on:
push:
pull_request:

jobs:
linelint:
runs-on: ubuntu-latest
name: Check if all files end in newline

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run Linelint
uses: fernandrone/[email protected]
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ bin
logs
.coverage.*
.vscode
.idea
.idea
tests/e2e/cmd/logs
tests/e2e/cmd/gaea
tests/e2e/cmd/gaea-cc
.DS_Store
.integrate_coverage.func
.integrate_coverage.html
.integrate_coverage.out
.coverage.*
32 changes: 32 additions & 0 deletions .gitlab/merge_request_templates/mr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
### What problem does this PR solve?

Issue Number: None

Problem Summary:

### What is changed and how it works?

### Check List

- [ ] Unit test
- [ ] Integration test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No code

Side effects

- [ ] Breaking backward compatibility
- [ ] Config file changes

Documentation

- [ ] Affects user behaviors
- [ ] Contains syntax changes
- [ ] Contains variable changes
- [ ] Changes MySQL compatibility

### Release note

```release-note
None
```
20 changes: 20 additions & 0 deletions .linelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 'true' will fix files
autofix: false

# list of paths to ignore, uses gitignore syntaxes (executes before any rule)
ignore:
- tests/e2e/shard/case/join/mycat/long/unsupport.sql
- tests/e2e/shard/case/join/mycat/mod/unsupport.sql
- tests/e2e/shard/case/join/mycat/murmur/unsupport.sql
- tests/e2e/shard/case/join/mycat/string/unsupport.sql
rules:
# checks if file ends in a newline character
end-of-file:
# set to true to enable this rule
enable: true

# set to true to disable autofix (if enabled globally)
disable-autofix: false

# if true also checks if file ends in a single newline character
single-new-line: true
Loading
Loading