Skip to content

Commit b50b093

Browse files
committed
[misc] add maxscale testing
1 parent 6798428 commit b50b093

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
runs-on: ubuntu-latest
2121
if: |
2222
github.event_name != 'schedule' ||
23-
github.ref == 'refs/heads/3.4' ||
24-
github.ref == 'refs/heads/3.1' ||
25-
github.ref == 'refs/heads/3.2'
23+
startsWith(github.ref, 'refs/heads/3.4') ||
24+
startsWith(github.ref, 'refs/heads/3.2') ||
25+
startsWith(github.ref, 'refs/heads/3.1')
2626
outputs:
2727
matrix: ${{ steps.set-matrix.outputs.final-matrix }}
2828
steps:
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v6
3030
- id: set-matrix
3131
name: build matrix
3232
uses: mariadb-corporation/connector-ci-build-matrix@main
@@ -114,7 +114,7 @@ jobs:
114114
env:
115115
MYSQL_TEST_HOST: mariadb.example.com
116116
MYSQL_TEST_PORT: 3306
117-
MYSQL_TEST_USER: root
117+
MYSQL_TEST_USER: testuser
118118
MYSQL_TEST_PASSWD: "heyPassw-!*20oRd"
119119
MYSQL_TEST_DB: testc
120120

@@ -124,13 +124,12 @@ jobs:
124124
runs-on: ${{ matrix.os }}
125125
continue-on-error: ${{ matrix.continue-on-error || matrix.os == 'macos-latest' }}
126126
steps:
127-
- uses: actions/checkout@v4
127+
- uses: actions/checkout@v6
128128

129129
- name: Setup Test Environment
130130
id: setup-env
131131
uses: mariadb-corporation/connector-ci-setup@master
132132
with:
133-
node-version: ${{ matrix.node }}
134133
db-type: ${{ matrix.db-type }}
135134
db-tag: ${{ matrix.db-tag }}
136135
test-db-password: ${{ env.MYSQL_TEST_PASSWD }}
@@ -140,6 +139,7 @@ jobs:
140139
registry-user: ${{ matrix.db-type == 'enterprise' && secrets.ENTERPRISE_USER || (secrets.DOCKER_TOKEN != '' && secrets.DOCKER_LOGIN || '') }}
141140
registry-password: ${{ matrix.db-type == 'enterprise' && secrets.ENTERPRISE_TOKEN || secrets.DOCKER_TOKEN }}
142141
os: ${{ matrix.os }}
142+
maxscale-tag: ${{ matrix.maxscale-tag || ''}}
143143

144144
- name: make ubuntu/macos
145145
if: ${{ !startsWith(matrix.os, 'windows') }}

unittest/libmariadb/my_test.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ if (force_tls)\
8585

8686
MYSQL *mysql_default = NULL; /* default connection */
8787

88-
#define IS_MAXSCALE()\
89-
((mysql_default && strstr(mysql_get_server_info(mysql_default), "maxScale")) ||\
90-
(getenv("srv")!=NULL && (strcmp(getenv("srv"), "maxscale") == 0 ||\
91-
strcmp(getenv("srv"), "skysql-ha") == 0)))
88+
#define IS_MAXSCALE() \
89+
((mysql_default && strstr(mysql_get_server_info(mysql_default), "maxScale")) || \
90+
(getenv("maxscale-tag") != NULL && strlen(getenv("maxscale-tag")) > 0))
9291

9392
#define SKIP_MAXSCALE \
9493
if (IS_MAXSCALE()) \

0 commit comments

Comments
 (0)