@cubejs-backend/testing-shared 1.7.30 → 1.7.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../src/db-container-runners/mysql.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAElF,qBAAa,aAAc,SAAQ,gBAAgB;WACnC,cAAc,CAAC,OAAO,EAAE,wBAAwB;
|
|
1
|
+
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../src/db-container-runners/mysql.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAElF,qBAAa,aAAc,SAAQ,gBAAgB;WACnC,cAAc,CAAC,OAAO,EAAE,wBAAwB;CA4C/D"}
|
|
@@ -10,14 +10,34 @@ class MysqlDBRunner extends db_runner_abstract_1.DbRunnerAbstract {
|
|
|
10
10
|
.withEnvironment({
|
|
11
11
|
MYSQL_ROOT_PASSWORD: process.env.TEST_DB_PASSWORD || 'Test1test',
|
|
12
12
|
})
|
|
13
|
+
// On a fresh volume MySQL initializes the data directory before it starts
|
|
14
|
+
// listening, which on a loaded CI runner takes well over the 20s the old
|
|
15
|
+
// budget (10s start period + 3 retries * 5s) allowed - Docker then marks
|
|
16
|
+
// the container unhealthy and testcontainers gives up at once, regardless
|
|
17
|
+
// of the startup timeout. Probes that fail inside the start period do not
|
|
18
|
+
// count against `retries`, and the container is reported healthy as soon
|
|
19
|
+
// as one passes, so a generous start period costs nothing when MySQL comes
|
|
20
|
+
// up quickly and only buys time when it does not.
|
|
21
|
+
//
|
|
22
|
+
// The probe must go over TCP, hence `-h 127.0.0.1` rather than `-h
|
|
23
|
+
// localhost`, which the MySQL client resolves to the Unix socket. The
|
|
24
|
+
// entrypoint initializes the data directory by running a temporary server
|
|
25
|
+
// with `--skip-networking` on that socket, and `mysqladmin ping` exits 0
|
|
26
|
+
// even on `Access denied` - the server answered - so a socket probe can
|
|
27
|
+
// report healthy mid-initialization, only for that temporary server to be
|
|
28
|
+
// stopped underneath the connecting test. Over TCP the temporary server
|
|
29
|
+
// cannot answer, so healthy means the real one is up on the mapped port.
|
|
13
30
|
.withHealthCheck({
|
|
14
|
-
test: ['CMD-SHELL', 'mysqladmin ping -h
|
|
31
|
+
test: ['CMD-SHELL', 'mysqladmin ping -h 127.0.0.1'],
|
|
15
32
|
interval: 5 * 1000,
|
|
16
|
-
timeout:
|
|
33
|
+
timeout: 5 * 1000,
|
|
17
34
|
retries: 3,
|
|
18
|
-
startPeriod:
|
|
35
|
+
startPeriod: 60 * 1000,
|
|
19
36
|
})
|
|
20
37
|
.withWaitStrategy(testcontainers_1.Wait.forHealthCheck())
|
|
38
|
+
// Must outlast the health check budget above, otherwise testcontainers'
|
|
39
|
+
// 60s default would cut the wait short before Docker has given up.
|
|
40
|
+
.withStartupTimeout(120 * 1000)
|
|
21
41
|
.withExposedPorts(3306);
|
|
22
42
|
if (options.volumes) {
|
|
23
43
|
const binds = options.volumes.map(v => ({ source: v.source, target: v.target, mode: v.bindMode }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.js","sourceRoot":"","sources":["../../../src/db-container-runners/mysql.ts"],"names":[],"mappings":";;;AAAA,mDAAwD;AAExD,6DAAkF;AAElF,MAAa,aAAc,SAAQ,qCAAgB;IAC1C,MAAM,CAAC,cAAc,CAAC,OAAiC;QAC5D,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,OAAO,CAAC,OAAO,IAAI,KAAK,CAAC;QAE3E,MAAM,SAAS,GAAG,IAAI,iCAAgB,CAAC,SAAS,OAAO,EAAE,CAAC;aACvD,eAAe,CAAC;YACf,mBAAmB,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI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M,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YACnG,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;SACjC;QAED,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;CACF;AA7CD,sCA6CC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/testing-shared",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.32",
|
|
4
4
|
"description": "Cube.js Testing Helpers",
|
|
5
5
|
"author": "Cube Dev, Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@cubejs-backend/dotenv": "^9.0.2",
|
|
29
|
-
"@cubejs-backend/query-orchestrator": "1.7.
|
|
30
|
-
"@cubejs-backend/schema-compiler": "1.7.
|
|
31
|
-
"@cubejs-backend/shared": "1.7.
|
|
29
|
+
"@cubejs-backend/query-orchestrator": "1.7.32",
|
|
30
|
+
"@cubejs-backend/schema-compiler": "1.7.32",
|
|
31
|
+
"@cubejs-backend/shared": "1.7.32",
|
|
32
32
|
"@testcontainers/kafka": "~10.28.0",
|
|
33
33
|
"dedent": "^0.7.0",
|
|
34
34
|
"node-fetch": "^2.6.7",
|
|
35
35
|
"testcontainers": "^10.28.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@cubejs-backend/linter": "1.7.
|
|
38
|
+
"@cubejs-backend/linter": "1.7.32",
|
|
39
39
|
"@jest/globals": "^29",
|
|
40
40
|
"@types/dedent": "^0.7.0",
|
|
41
41
|
"@types/jest": "^29",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"eslintConfig": {
|
|
50
50
|
"extends": "../cubejs-linter"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8f2ae29ebad5975a7cefeae4461ad08f68f1b859"
|
|
53
53
|
}
|