Skip to content

Commit aa4e9b3

Browse files
committed
[misc] use DOCKER_LOGIN as user if secret available
1 parent 066999f commit aa4e9b3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
if: |
2626
github.event_name != 'schedule' ||
2727
github.ref == 'refs/heads/main' ||
28-
github.ref == 'refs/heads/develop' ||
29-
github.ref == 'refs/heads/maintenance/3.2' ||
30-
github.ref == 'refs/heads/maintenance/3.3' ||
31-
github.ref == 'refs/heads/maintenance/3.4'
28+
startsWith(github.ref, 'refs/heads/develop') ||
29+
startsWith(github.ref, 'refs/heads/maintenance/3.2') ||
30+
startsWith(github.ref, 'refs/heads/maintenance/3.3') ||
31+
startsWith(github.ref, 'refs/heads/maintenance/3.4')
3232
outputs:
3333
matrix: ${{ steps.set-matrix.outputs.final-matrix }}
3434
steps:
@@ -62,8 +62,8 @@ jobs:
6262
test-db-database: ${{ env.TEST_DB_DATABASE }}
6363
test-db-port: ${{ env.TEST_DB_PORT }}
6464
additional-conf: ${{ matrix.additional-conf || '' }}
65-
registry-user: ${{ matrix.db-type == 'enterprise' && secrets.ENTERPRISE_USER || (secrets.DOCKER_PWD != '' && 'mariadbtest' || '') }}
66-
registry-password: ${{ matrix.db-type == 'enterprise' && secrets.ENTERPRISE_TOKEN || secrets.DOCKER_PWD }}
65+
registry-user: ${{ matrix.db-type == 'enterprise' && secrets.ENTERPRISE_USER || (secrets.DOCKER_TOKEN != '' && secrets.DOCKER_LOGIN || '') }}
66+
registry-password: ${{ matrix.db-type == 'enterprise' && secrets.ENTERPRISE_TOKEN || secrets.DOCKER_TOKEN }}
6767
os: ${{ matrix.os }}
6868

6969
- uses: actions/setup-node@v4

test/integration/query-callback.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ describe.concurrent('basic query callback', () => {
518518
if (shareConn.info.isMariaDB() && shareConn.info.hasMinVersion(10, 1, 2)) {
519519
const elapse = Date.now() - initTime;
520520
assert.isOk(elapse < 10000, 'elapse time was ' + elapse + ' but must be less around 100');
521-
assert.isTrue(err.message.includes('Query execution was interrupted (max_statement_time exceeded)'));
521+
assert.isTrue(err.message.includes('was interrupted'));
522522
assert.equal(err.errno, 1969);
523523
assert.equal(err.sqlState, 70100);
524524
assert.equal(err.code, 'ER_STATEMENT_TIMEOUT');

test/integration/query.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ describe.concurrent('basic query', () => {
422422
if (shareConn.info.isMariaDB() && shareConn.info.hasMinVersion(10, 1, 2)) {
423423
const elapse = Date.now() - initTime;
424424
assert.isOk(elapse < 10000, 'elapse time was ' + elapse + ' but must be less around 100');
425-
assert.isTrue(err.message.includes('Query execution was interrupted (max_statement_time exceeded)'));
425+
assert.isTrue(err.message.includes('was interrupted'));
426426
assert.equal(err.errno, 1969);
427427
assert.equal(err.sqlState, 70100);
428428
assert.equal(err.code, 'ER_STATEMENT_TIMEOUT');

0 commit comments

Comments
 (0)