@mark1russell7/harness 0.0.0-stage → 0.2.0
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.
- package/LICENSE +21 -0
- package/README.md +111 -2
- package/build/index.d.ts +546 -0
- package/build/index.js +1126 -0
- package/build/index.js.map +1 -0
- package/image/Dockerfile +31 -0
- package/image/native/Cargo.lock +123 -0
- package/image/native/Cargo.toml +16 -0
- package/image/native/src/bin/client.rs +263 -0
- package/image/native/src/bin/inject.rs +268 -0
- package/image/node/Dockerfile +11 -0
- package/image/node/client-ioredis.mjs +105 -0
- package/image/node/npm-lock.json +96 -0
- package/image/node/package.json +8 -0
- package/package.json +76 -3
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "loom-harness-ioredis-client",
|
|
3
|
+
"lockfileVersion": 3,
|
|
4
|
+
"requires": true,
|
|
5
|
+
"packages": {
|
|
6
|
+
"": {
|
|
7
|
+
"name": "loom-harness-ioredis-client",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"ioredis": "6.0.0"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"node_modules/@ioredis/commands": {
|
|
13
|
+
"version": "2.0.0",
|
|
14
|
+
"resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-2.0.0.tgz",
|
|
15
|
+
"integrity": "sha512-vrx0AE/T0h7cRZwfo1M39Cr+ZhZrkf0V8mQN75wucKCxCLD9l/VX6no3gFvrLqD1IlG/1LtzWovqEw3t0Vr9zg==",
|
|
16
|
+
"license": "MIT"
|
|
17
|
+
},
|
|
18
|
+
"node_modules/cluster-key-slot": {
|
|
19
|
+
"version": "1.1.1",
|
|
20
|
+
"resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.1.tgz",
|
|
21
|
+
"integrity": "sha512-rwHwUfXL40Chm1r08yrhU3qpUvdVlgkKNeyeGPOxnW8/SyVDvgRaed/Uz54AqWNaTCAThlj6QAs3TZcKI0xDEw==",
|
|
22
|
+
"license": "Apache-2.0",
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=0.10.0"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"node_modules/debug": {
|
|
28
|
+
"version": "4.4.3",
|
|
29
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
|
30
|
+
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"ms": "^2.1.3"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=6.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependenciesMeta": {
|
|
39
|
+
"supports-color": {
|
|
40
|
+
"optional": true
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"node_modules/denque": {
|
|
45
|
+
"version": "2.1.0",
|
|
46
|
+
"resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",
|
|
47
|
+
"integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==",
|
|
48
|
+
"license": "Apache-2.0",
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=0.10"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"node_modules/ioredis": {
|
|
54
|
+
"version": "6.0.0",
|
|
55
|
+
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-6.0.0.tgz",
|
|
56
|
+
"integrity": "sha512-f+Dtubxfpf6KYFq7WVXJoOLn0bk4TJrMrN9SzeE+jrWrCWj7XX3fA6vkryafhADX+GMymRxgDJDOI33COkJc0w==",
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@ioredis/commands": "2.0.0",
|
|
60
|
+
"cluster-key-slot": "1.1.1",
|
|
61
|
+
"debug": "4.4.3",
|
|
62
|
+
"denque": "2.1.0",
|
|
63
|
+
"redis-errors": "1.2.0",
|
|
64
|
+
"standard-as-callback": "2.1.0"
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=20.0.0"
|
|
68
|
+
},
|
|
69
|
+
"funding": {
|
|
70
|
+
"type": "opencollective",
|
|
71
|
+
"url": "https://opencollective.com/ioredis"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"node_modules/ms": {
|
|
75
|
+
"version": "2.1.3",
|
|
76
|
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
|
77
|
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
|
78
|
+
"license": "MIT"
|
|
79
|
+
},
|
|
80
|
+
"node_modules/redis-errors": {
|
|
81
|
+
"version": "1.2.0",
|
|
82
|
+
"resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz",
|
|
83
|
+
"integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==",
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": ">=4"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"node_modules/standard-as-callback": {
|
|
90
|
+
"version": "2.1.0",
|
|
91
|
+
"resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz",
|
|
92
|
+
"integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==",
|
|
93
|
+
"license": "MIT"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,79 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/package",
|
|
2
3
|
"name": "@mark1russell7/harness",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"description": "A fault-injection harness for connection timers: a cell runs a client against a stock target in Docker, injects a fault, measures the kernel's own records and judges a prediction.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"fault-injection",
|
|
8
|
+
"chaos-engineering",
|
|
9
|
+
"tcp",
|
|
10
|
+
"keepalive",
|
|
11
|
+
"timeouts",
|
|
12
|
+
"testcontainers",
|
|
13
|
+
"docker",
|
|
14
|
+
"ebpf"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://mark1russell7.github.io/systems/",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/mark1russell7/systems.git",
|
|
20
|
+
"directory": "packages/harness"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/mark1russell7/systems/issues"
|
|
24
|
+
},
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"author": "Mark Russell (https://github.com/mark1russell7)",
|
|
27
|
+
"type": "module",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"main": "./build/index.js",
|
|
30
|
+
"types": "./build/index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./build/index.d.ts",
|
|
34
|
+
"default": "./build/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"build",
|
|
40
|
+
"image/Dockerfile",
|
|
41
|
+
"image/native/Cargo.toml",
|
|
42
|
+
"image/native/Cargo.lock",
|
|
43
|
+
"image/native/src",
|
|
44
|
+
"image/node/Dockerfile",
|
|
45
|
+
"image/node/client-ioredis.mjs",
|
|
46
|
+
"image/node/package.json",
|
|
47
|
+
"image/node/npm-lock.json",
|
|
48
|
+
"README.md",
|
|
49
|
+
"LICENSE"
|
|
50
|
+
],
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=22.19"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@mark1russell7/prober": "^0.1.0",
|
|
56
|
+
"@mark1russell7/quantity": "^0.1.0",
|
|
57
|
+
"testcontainers": "12.2.0"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"zod": "^4.1.0"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@mark1russell7/cue": "github:mark1russell7/cue",
|
|
64
|
+
"@types/node": "^26.6.4",
|
|
65
|
+
"tsdown": "^0.23.1",
|
|
66
|
+
"typescript": "^7.0.2",
|
|
67
|
+
"vitest": "^5.0.3",
|
|
68
|
+
"zod": "^4.6.6"
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public"
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "tsdown",
|
|
75
|
+
"test": "vitest run",
|
|
76
|
+
"test:watch": "vitest",
|
|
77
|
+
"typecheck": "tsc -p tsconfig.json --noEmit --emitDeclarationOnly false && tsc -p tsconfig.test.json"
|
|
78
|
+
}
|
|
6
79
|
}
|