@mark1russell7/harness 0.11.16 → 0.11.18
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/README.md +32 -2
- package/build/{cell-B6YHtKFb.d.ts → cell-CcigQdUN.d.ts} +72 -10
- package/build/{image-RM60Paqe.js → image-CNZbZPrd.js} +25 -2
- package/build/image-CNZbZPrd.js.map +1 -0
- package/build/index.d.ts +198 -5
- package/build/index.js +1011 -182
- package/build/index.js.map +1 -1
- package/build/schema.d.ts +1 -1
- package/build/schema.js +1 -1
- package/image/amqp/Dockerfile +2 -2
- package/image/amqp/admin-cluster.mjs +38 -0
- package/image/amqp/client-cluster.mjs +188 -0
- package/image/etcd/Dockerfile +9 -0
- package/image/grpc/Dockerfile +11 -0
- package/image/grpc/client-grpc.mjs +257 -0
- package/image/grpc/npm-lock.json +338 -0
- package/image/grpc/package.json +8 -0
- package/image/grpc-go/Dockerfile +16 -0
- package/image/grpc-go/go.mod +5 -0
- package/image/grpc-go/main.go +173 -0
- package/image/pgbouncer/Dockerfile +26 -0
- package/image/pgpool/Dockerfile +29 -0
- package/package.json +13 -1
- package/build/image-RM60Paqe.js.map +0 -1
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "loom-harness-grpc-client",
|
|
3
|
+
"lockfileVersion": 3,
|
|
4
|
+
"requires": true,
|
|
5
|
+
"packages": {
|
|
6
|
+
"": {
|
|
7
|
+
"name": "loom-harness-grpc-client",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@grpc/grpc-js": "1.14.6"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"node_modules/@grpc/grpc-js": {
|
|
13
|
+
"version": "1.14.6",
|
|
14
|
+
"resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.6.tgz",
|
|
15
|
+
"integrity": "sha512-SgC/B3/VZ8lTyOZ4Cwk6f1skWhmkNAaVfiX90qd5u1rRXGKk1//8FTUEN9GvOUq7rfWIqAYkA3CoyumYVpOS6g==",
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@grpc/proto-loader": "^0.8.0",
|
|
19
|
+
"@js-sdsl/ordered-map": "^4.4.2"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=12.10.0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"node_modules/@grpc/proto-loader": {
|
|
26
|
+
"version": "0.8.1",
|
|
27
|
+
"resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.1.tgz",
|
|
28
|
+
"integrity": "sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"lodash.camelcase": "^4.3.0",
|
|
32
|
+
"long": "^5.0.0",
|
|
33
|
+
"protobufjs": "^7.5.5",
|
|
34
|
+
"yargs": "^17.7.2"
|
|
35
|
+
},
|
|
36
|
+
"bin": {
|
|
37
|
+
"proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=6"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"node_modules/@js-sdsl/ordered-map": {
|
|
44
|
+
"version": "4.4.2",
|
|
45
|
+
"resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz",
|
|
46
|
+
"integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==",
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"funding": {
|
|
49
|
+
"type": "opencollective",
|
|
50
|
+
"url": "https://opencollective.com/js-sdsl"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"node_modules/@protobufjs/aspromise": {
|
|
54
|
+
"version": "1.1.2",
|
|
55
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
|
56
|
+
"integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
|
|
57
|
+
"license": "BSD-3-Clause"
|
|
58
|
+
},
|
|
59
|
+
"node_modules/@protobufjs/base64": {
|
|
60
|
+
"version": "1.1.2",
|
|
61
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
|
|
62
|
+
"integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
|
|
63
|
+
"license": "BSD-3-Clause"
|
|
64
|
+
},
|
|
65
|
+
"node_modules/@protobufjs/codegen": {
|
|
66
|
+
"version": "2.0.5",
|
|
67
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz",
|
|
68
|
+
"integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==",
|
|
69
|
+
"license": "BSD-3-Clause"
|
|
70
|
+
},
|
|
71
|
+
"node_modules/@protobufjs/eventemitter": {
|
|
72
|
+
"version": "1.1.1",
|
|
73
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz",
|
|
74
|
+
"integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==",
|
|
75
|
+
"license": "BSD-3-Clause"
|
|
76
|
+
},
|
|
77
|
+
"node_modules/@protobufjs/fetch": {
|
|
78
|
+
"version": "1.1.1",
|
|
79
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz",
|
|
80
|
+
"integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==",
|
|
81
|
+
"license": "BSD-3-Clause",
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"@protobufjs/aspromise": "^1.1.1"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"node_modules/@protobufjs/float": {
|
|
87
|
+
"version": "1.0.2",
|
|
88
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
|
|
89
|
+
"integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
|
|
90
|
+
"license": "BSD-3-Clause"
|
|
91
|
+
},
|
|
92
|
+
"node_modules/@protobufjs/path": {
|
|
93
|
+
"version": "1.1.2",
|
|
94
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
|
|
95
|
+
"integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
|
|
96
|
+
"license": "BSD-3-Clause"
|
|
97
|
+
},
|
|
98
|
+
"node_modules/@protobufjs/pool": {
|
|
99
|
+
"version": "1.1.0",
|
|
100
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
|
|
101
|
+
"integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
|
|
102
|
+
"license": "BSD-3-Clause"
|
|
103
|
+
},
|
|
104
|
+
"node_modules/@protobufjs/utf8": {
|
|
105
|
+
"version": "1.1.2",
|
|
106
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.2.tgz",
|
|
107
|
+
"integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==",
|
|
108
|
+
"license": "BSD-3-Clause"
|
|
109
|
+
},
|
|
110
|
+
"node_modules/@types/node": {
|
|
111
|
+
"version": "26.6.5",
|
|
112
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.5.tgz",
|
|
113
|
+
"integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==",
|
|
114
|
+
"license": "MIT",
|
|
115
|
+
"dependencies": {
|
|
116
|
+
"undici-types": "~8.9.0"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"node_modules/ansi-regex": {
|
|
120
|
+
"version": "5.0.1",
|
|
121
|
+
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
|
122
|
+
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
|
123
|
+
"license": "MIT",
|
|
124
|
+
"engines": {
|
|
125
|
+
"node": ">=8"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"node_modules/ansi-styles": {
|
|
129
|
+
"version": "4.3.0",
|
|
130
|
+
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
|
131
|
+
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
|
132
|
+
"license": "MIT",
|
|
133
|
+
"dependencies": {
|
|
134
|
+
"color-convert": "^2.0.1"
|
|
135
|
+
},
|
|
136
|
+
"engines": {
|
|
137
|
+
"node": ">=8"
|
|
138
|
+
},
|
|
139
|
+
"funding": {
|
|
140
|
+
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"node_modules/cliui": {
|
|
144
|
+
"version": "8.0.1",
|
|
145
|
+
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
|
|
146
|
+
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
|
|
147
|
+
"license": "ISC",
|
|
148
|
+
"dependencies": {
|
|
149
|
+
"string-width": "^4.2.0",
|
|
150
|
+
"strip-ansi": "^6.0.1",
|
|
151
|
+
"wrap-ansi": "^7.0.0"
|
|
152
|
+
},
|
|
153
|
+
"engines": {
|
|
154
|
+
"node": ">=12"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"node_modules/color-convert": {
|
|
158
|
+
"version": "2.0.1",
|
|
159
|
+
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
|
160
|
+
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
|
161
|
+
"license": "MIT",
|
|
162
|
+
"dependencies": {
|
|
163
|
+
"color-name": "~1.1.4"
|
|
164
|
+
},
|
|
165
|
+
"engines": {
|
|
166
|
+
"node": ">=7.0.0"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"node_modules/color-name": {
|
|
170
|
+
"version": "1.1.4",
|
|
171
|
+
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
|
172
|
+
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
|
173
|
+
"license": "MIT"
|
|
174
|
+
},
|
|
175
|
+
"node_modules/emoji-regex": {
|
|
176
|
+
"version": "8.0.0",
|
|
177
|
+
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
|
178
|
+
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
|
179
|
+
"license": "MIT"
|
|
180
|
+
},
|
|
181
|
+
"node_modules/escalade": {
|
|
182
|
+
"version": "3.2.0",
|
|
183
|
+
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
|
|
184
|
+
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
|
|
185
|
+
"license": "MIT",
|
|
186
|
+
"engines": {
|
|
187
|
+
"node": ">=6"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"node_modules/get-caller-file": {
|
|
191
|
+
"version": "2.0.5",
|
|
192
|
+
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
|
|
193
|
+
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
|
|
194
|
+
"license": "ISC",
|
|
195
|
+
"engines": {
|
|
196
|
+
"node": "6.* || 8.* || >= 10.*"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"node_modules/is-fullwidth-code-point": {
|
|
200
|
+
"version": "3.0.0",
|
|
201
|
+
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
|
|
202
|
+
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
|
|
203
|
+
"license": "MIT",
|
|
204
|
+
"engines": {
|
|
205
|
+
"node": ">=8"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"node_modules/lodash.camelcase": {
|
|
209
|
+
"version": "4.3.0",
|
|
210
|
+
"resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
|
|
211
|
+
"integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",
|
|
212
|
+
"license": "MIT"
|
|
213
|
+
},
|
|
214
|
+
"node_modules/long": {
|
|
215
|
+
"version": "5.3.2",
|
|
216
|
+
"resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",
|
|
217
|
+
"integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",
|
|
218
|
+
"license": "Apache-2.0"
|
|
219
|
+
},
|
|
220
|
+
"node_modules/protobufjs": {
|
|
221
|
+
"version": "7.6.6",
|
|
222
|
+
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.6.tgz",
|
|
223
|
+
"integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==",
|
|
224
|
+
"hasInstallScript": true,
|
|
225
|
+
"license": "BSD-3-Clause",
|
|
226
|
+
"dependencies": {
|
|
227
|
+
"@protobufjs/aspromise": "^1.1.2",
|
|
228
|
+
"@protobufjs/base64": "^1.1.2",
|
|
229
|
+
"@protobufjs/codegen": "^2.0.5",
|
|
230
|
+
"@protobufjs/eventemitter": "^1.1.1",
|
|
231
|
+
"@protobufjs/fetch": "^1.1.1",
|
|
232
|
+
"@protobufjs/float": "^1.0.2",
|
|
233
|
+
"@protobufjs/path": "^1.1.2",
|
|
234
|
+
"@protobufjs/pool": "^1.1.0",
|
|
235
|
+
"@protobufjs/utf8": "^1.1.1",
|
|
236
|
+
"@types/node": ">=13.7.0",
|
|
237
|
+
"long": "^5.3.2"
|
|
238
|
+
},
|
|
239
|
+
"engines": {
|
|
240
|
+
"node": ">=12.0.0"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"node_modules/require-directory": {
|
|
244
|
+
"version": "2.1.1",
|
|
245
|
+
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
|
246
|
+
"integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
|
|
247
|
+
"license": "MIT",
|
|
248
|
+
"engines": {
|
|
249
|
+
"node": ">=0.10.0"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"node_modules/string-width": {
|
|
253
|
+
"version": "4.2.3",
|
|
254
|
+
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
|
255
|
+
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
|
256
|
+
"license": "MIT",
|
|
257
|
+
"dependencies": {
|
|
258
|
+
"emoji-regex": "^8.0.0",
|
|
259
|
+
"is-fullwidth-code-point": "^3.0.0",
|
|
260
|
+
"strip-ansi": "^6.0.1"
|
|
261
|
+
},
|
|
262
|
+
"engines": {
|
|
263
|
+
"node": ">=8"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"node_modules/strip-ansi": {
|
|
267
|
+
"version": "6.0.1",
|
|
268
|
+
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
|
269
|
+
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
|
270
|
+
"license": "MIT",
|
|
271
|
+
"dependencies": {
|
|
272
|
+
"ansi-regex": "^5.0.1"
|
|
273
|
+
},
|
|
274
|
+
"engines": {
|
|
275
|
+
"node": ">=8"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"node_modules/undici-types": {
|
|
279
|
+
"version": "8.9.0",
|
|
280
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
|
|
281
|
+
"integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
|
|
282
|
+
"license": "MIT"
|
|
283
|
+
},
|
|
284
|
+
"node_modules/wrap-ansi": {
|
|
285
|
+
"version": "7.0.0",
|
|
286
|
+
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
|
|
287
|
+
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
|
|
288
|
+
"license": "MIT",
|
|
289
|
+
"dependencies": {
|
|
290
|
+
"ansi-styles": "^4.0.0",
|
|
291
|
+
"string-width": "^4.1.0",
|
|
292
|
+
"strip-ansi": "^6.0.0"
|
|
293
|
+
},
|
|
294
|
+
"engines": {
|
|
295
|
+
"node": ">=10"
|
|
296
|
+
},
|
|
297
|
+
"funding": {
|
|
298
|
+
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"node_modules/y18n": {
|
|
302
|
+
"version": "5.0.8",
|
|
303
|
+
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
|
304
|
+
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
|
|
305
|
+
"license": "ISC",
|
|
306
|
+
"engines": {
|
|
307
|
+
"node": ">=10"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"node_modules/yargs": {
|
|
311
|
+
"version": "17.7.3",
|
|
312
|
+
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz",
|
|
313
|
+
"integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==",
|
|
314
|
+
"license": "MIT",
|
|
315
|
+
"dependencies": {
|
|
316
|
+
"cliui": "^8.0.1",
|
|
317
|
+
"escalade": "^3.1.1",
|
|
318
|
+
"get-caller-file": "^2.0.5",
|
|
319
|
+
"require-directory": "^2.1.1",
|
|
320
|
+
"string-width": "^4.2.3",
|
|
321
|
+
"y18n": "^5.0.5",
|
|
322
|
+
"yargs-parser": "^21.1.1"
|
|
323
|
+
},
|
|
324
|
+
"engines": {
|
|
325
|
+
"node": ">=12"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"node_modules/yargs-parser": {
|
|
329
|
+
"version": "21.1.1",
|
|
330
|
+
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
|
|
331
|
+
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
|
|
332
|
+
"license": "ISC",
|
|
333
|
+
"engines": {
|
|
334
|
+
"node": ">=12"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# The gRPC server of the harness: a server of grpc-go v1.84.0, built with Go 1.27.2, at the defaults of
|
|
2
|
+
# grpc-go with the settings of a cell over them. It runs as the target of a cell.
|
|
3
|
+
# go mod tidy resolves the modules of grpc-go at its tag by the go.mod of each module, and the go
|
|
4
|
+
# command checks each module against the checksum database of Go (sum.golang.org). The build log
|
|
5
|
+
# prints the go.sum that it gets.
|
|
6
|
+
# lab.ts stages the build context: this folder, under harness/image/grpc-go.
|
|
7
|
+
FROM golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d AS build
|
|
8
|
+
WORKDIR /src
|
|
9
|
+
COPY harness/image/grpc-go/go.mod harness/image/grpc-go/main.go ./
|
|
10
|
+
RUN go mod tidy && cat go.sum
|
|
11
|
+
# the format and the vet of the source come first, as for the Go client of the harness
|
|
12
|
+
RUN test -z "$(gofmt -l .)" || { gofmt -d .; exit 1; }
|
|
13
|
+
RUN CGO_ENABLED=0 go vet ./... && CGO_ENABLED=0 go build -trimpath -o /grpc-go-server .
|
|
14
|
+
|
|
15
|
+
FROM alpine:3.22@sha256:5291449c3df73caf6ed85e649dec1b9e818b39a5d8c871e97afc13e9cd5e8fa8
|
|
16
|
+
COPY --from=build /grpc-go-server /usr/local/bin/grpc-go-server
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
// Command grpc-go-server is the server of the gRPC cells: a server of grpc-go v1.84.0 on its own
|
|
2
|
+
// listener, at the defaults of grpc-go, with each setting that a cell gives over them. Each event is a
|
|
3
|
+
// JSON line with `ev` and `t`, the CLOCK_MONOTONIC time in nanoseconds, as the clients of the harness
|
|
4
|
+
// write them.
|
|
5
|
+
//
|
|
6
|
+
// grpc-go-server [--port N] [--keepalive-time D] [--keepalive-timeout D] [--min-time D]
|
|
7
|
+
// [--permit-without-stream] [--max-connection-idle D] [--max-connection-age D]
|
|
8
|
+
// [--max-connection-age-grace D] [--listener-keepalive D]
|
|
9
|
+
// [--listener-keepalive-interval D] [--listener-keepalive-count N]
|
|
10
|
+
//
|
|
11
|
+
// Each D is a duration of Go, for example 20s. A setting at 0 is the default of grpc-go or of Go. A
|
|
12
|
+
// negative --listener-keepalive turns the TCP keepalive of the accepted connections off.
|
|
13
|
+
//
|
|
14
|
+
// The server serves grpc.health.v1.Health. Check of the service "" answers SERVING at once. Check of
|
|
15
|
+
// "hold:<ms>" holds its reply for that time, or until the client ends the call. Any other service is
|
|
16
|
+
// NOT_FOUND. Watch sends SERVING and then holds the stream open until the client ends it.
|
|
17
|
+
//
|
|
18
|
+
// The lines: listening (the ready line of the target), accept (each connection, with its addresses),
|
|
19
|
+
// hold, held and hold-ended (a held reply), watch and watch-ended, and stopping.
|
|
20
|
+
package main
|
|
21
|
+
|
|
22
|
+
import (
|
|
23
|
+
"context"
|
|
24
|
+
"encoding/json"
|
|
25
|
+
"flag"
|
|
26
|
+
"fmt"
|
|
27
|
+
"net"
|
|
28
|
+
"os"
|
|
29
|
+
"os/signal"
|
|
30
|
+
"strconv"
|
|
31
|
+
"strings"
|
|
32
|
+
"syscall"
|
|
33
|
+
"time"
|
|
34
|
+
"unsafe"
|
|
35
|
+
|
|
36
|
+
"google.golang.org/grpc"
|
|
37
|
+
"google.golang.org/grpc/codes"
|
|
38
|
+
healthpb "google.golang.org/grpc/health/grpc_health_v1"
|
|
39
|
+
"google.golang.org/grpc/keepalive"
|
|
40
|
+
"google.golang.org/grpc/status"
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
// now gives the time on CLOCK_MONOTONIC in nanoseconds: the clock of the prober.
|
|
44
|
+
func now() int64 {
|
|
45
|
+
var ts syscall.Timespec
|
|
46
|
+
syscall.Syscall(syscall.SYS_CLOCK_GETTIME, 1, uintptr(unsafe.Pointer(&ts)), 0)
|
|
47
|
+
return ts.Nano()
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// emit writes one JSON line with its event and its time.
|
|
51
|
+
func emit(ev string, fields map[string]any) {
|
|
52
|
+
line := map[string]any{"ev": ev, "t": now()}
|
|
53
|
+
for name, value := range fields {
|
|
54
|
+
line[name] = value
|
|
55
|
+
}
|
|
56
|
+
out, err := json.Marshal(line)
|
|
57
|
+
if err != nil {
|
|
58
|
+
panic(err)
|
|
59
|
+
}
|
|
60
|
+
os.Stdout.Write(append(out, '\n'))
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// health is the health service of the server, with a held reply for a cell.
|
|
64
|
+
type health struct {
|
|
65
|
+
healthpb.UnimplementedHealthServer
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
func (health) Check(ctx context.Context, request *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error) {
|
|
69
|
+
service := request.GetService()
|
|
70
|
+
if service == "" {
|
|
71
|
+
return &healthpb.HealthCheckResponse{Status: healthpb.HealthCheckResponse_SERVING}, nil
|
|
72
|
+
}
|
|
73
|
+
text, ok := strings.CutPrefix(service, "hold:")
|
|
74
|
+
if !ok {
|
|
75
|
+
return nil, status.Error(codes.NotFound, "unknown service")
|
|
76
|
+
}
|
|
77
|
+
ms, err := strconv.Atoi(text)
|
|
78
|
+
if err != nil || ms < 0 {
|
|
79
|
+
return nil, status.Error(codes.InvalidArgument, "the service hold:<ms> needs a whole number of milliseconds")
|
|
80
|
+
}
|
|
81
|
+
emit("hold", map[string]any{"ms": ms})
|
|
82
|
+
timer := time.NewTimer(time.Duration(ms) * time.Millisecond)
|
|
83
|
+
defer timer.Stop()
|
|
84
|
+
select {
|
|
85
|
+
case <-timer.C:
|
|
86
|
+
emit("held", map[string]any{"ms": ms})
|
|
87
|
+
return &healthpb.HealthCheckResponse{Status: healthpb.HealthCheckResponse_SERVING}, nil
|
|
88
|
+
case <-ctx.Done():
|
|
89
|
+
emit("hold-ended", map[string]any{"ms": ms, "why": ctx.Err().Error()})
|
|
90
|
+
return nil, status.FromContextError(ctx.Err()).Err()
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
func (health) Watch(request *healthpb.HealthCheckRequest, stream healthpb.Health_WatchServer) error {
|
|
95
|
+
emit("watch", map[string]any{"service": request.GetService()})
|
|
96
|
+
if err := stream.Send(&healthpb.HealthCheckResponse{Status: healthpb.HealthCheckResponse_SERVING}); err != nil {
|
|
97
|
+
return err
|
|
98
|
+
}
|
|
99
|
+
<-stream.Context().Done()
|
|
100
|
+
emit("watch-ended", map[string]any{"why": stream.Context().Err().Error()})
|
|
101
|
+
return nil
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// listener writes a line for each accepted connection. It gives grpc-go the *net.TCPConn itself,
|
|
105
|
+
// thus grpc-go can set TCP_USER_TIMEOUT on it (internal/syscall/syscall_linux.go).
|
|
106
|
+
type listener struct {
|
|
107
|
+
net.Listener
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
func (l listener) Accept() (net.Conn, error) {
|
|
111
|
+
conn, err := l.Listener.Accept()
|
|
112
|
+
if err != nil {
|
|
113
|
+
return nil, err
|
|
114
|
+
}
|
|
115
|
+
emit("accept", map[string]any{"local": conn.LocalAddr().String(), "remote": conn.RemoteAddr().String()})
|
|
116
|
+
return conn, nil
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
func main() {
|
|
120
|
+
port := flag.Int("port", 50051, "the port of the listener")
|
|
121
|
+
keepaliveTime := flag.Duration("keepalive-time", 0, "keepalive.ServerParameters.Time (0: 2 h)")
|
|
122
|
+
keepaliveTimeout := flag.Duration("keepalive-timeout", 0, "keepalive.ServerParameters.Timeout (0: 20 s)")
|
|
123
|
+
minTime := flag.Duration("min-time", 0, "keepalive.EnforcementPolicy.MinTime (0: 5 min)")
|
|
124
|
+
permitWithoutStream := flag.Bool("permit-without-stream", false, "keepalive.EnforcementPolicy.PermitWithoutStream")
|
|
125
|
+
maxIdle := flag.Duration("max-connection-idle", 0, "keepalive.ServerParameters.MaxConnectionIdle (0: infinite)")
|
|
126
|
+
maxAge := flag.Duration("max-connection-age", 0, "keepalive.ServerParameters.MaxConnectionAge (0: infinite)")
|
|
127
|
+
maxAgeGrace := flag.Duration("max-connection-age-grace", 0, "keepalive.ServerParameters.MaxConnectionAgeGrace (0: infinite)")
|
|
128
|
+
keepIdle := flag.Duration("listener-keepalive", 0, "the TCP keepalive idle of each accepted connection (0: 15 s, negative: off)")
|
|
129
|
+
keepInterval := flag.Duration("listener-keepalive-interval", 0, "the TCP keepalive interval (0: 15 s)")
|
|
130
|
+
keepCount := flag.Int("listener-keepalive-count", 0, "the TCP keepalive count (0: 9)")
|
|
131
|
+
flag.Parse()
|
|
132
|
+
|
|
133
|
+
// at the defaults this is net.Listen: Go turns the keepalive on with its own defaults (15 s, 15 s, 9)
|
|
134
|
+
config := net.ListenConfig{KeepAlive: *keepIdle}
|
|
135
|
+
if *keepIdle > 0 || *keepInterval > 0 || *keepCount > 0 {
|
|
136
|
+
config.KeepAliveConfig = net.KeepAliveConfig{Enable: true, Idle: *keepIdle, Interval: *keepInterval, Count: *keepCount}
|
|
137
|
+
}
|
|
138
|
+
inner, err := config.Listen(context.Background(), "tcp", fmt.Sprintf(":%d", *port))
|
|
139
|
+
if err != nil {
|
|
140
|
+
emit("fail", map[string]any{"why": err.Error()})
|
|
141
|
+
os.Exit(1)
|
|
142
|
+
}
|
|
143
|
+
server := grpc.NewServer(
|
|
144
|
+
grpc.KeepaliveParams(keepalive.ServerParameters{
|
|
145
|
+
Time: *keepaliveTime,
|
|
146
|
+
Timeout: *keepaliveTimeout,
|
|
147
|
+
MaxConnectionIdle: *maxIdle,
|
|
148
|
+
MaxConnectionAge: *maxAge,
|
|
149
|
+
MaxConnectionAgeGrace: *maxAgeGrace,
|
|
150
|
+
}),
|
|
151
|
+
grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{MinTime: *minTime, PermitWithoutStream: *permitWithoutStream}),
|
|
152
|
+
)
|
|
153
|
+
healthpb.RegisterHealthServer(server, health{})
|
|
154
|
+
|
|
155
|
+
signals := make(chan os.Signal, 1)
|
|
156
|
+
signal.Notify(signals, syscall.SIGTERM, syscall.SIGINT)
|
|
157
|
+
go func() {
|
|
158
|
+
<-signals
|
|
159
|
+
emit("stopping", nil)
|
|
160
|
+
server.GracefulStop()
|
|
161
|
+
}()
|
|
162
|
+
|
|
163
|
+
emit("listening", map[string]any{
|
|
164
|
+
"port": *port, "grpc": grpc.Version,
|
|
165
|
+
"keepalive_time": keepaliveTime.String(), "keepalive_timeout": keepaliveTimeout.String(), "min_time": minTime.String(),
|
|
166
|
+
"permit_without_stream": *permitWithoutStream, "listener_keepalive": keepIdle.String(),
|
|
167
|
+
"listener_keepalive_interval": keepInterval.String(), "listener_keepalive_count": *keepCount,
|
|
168
|
+
})
|
|
169
|
+
if err := server.Serve(listener{inner}); err != nil {
|
|
170
|
+
emit("fail", map[string]any{"why": err.Error()})
|
|
171
|
+
os.Exit(1)
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PgBouncer 1.26.1, the pooler hop of the harness. The build gets the release tarball of
|
|
2
|
+
# pgbouncer.org and checks its SHA-256 before it builds. The C sources of that tarball are those of
|
|
3
|
+
# the tag pgbouncer_1_26_1, which the machine documents pgbouncer-client and pgbouncer-server cite.
|
|
4
|
+
# The configuration of a cell goes in by its files: /etc/pgbouncer/pgbouncer.ini and
|
|
5
|
+
# /etc/pgbouncer/userlist.txt. PgBouncer does not start as root, thus it runs as its own user. The
|
|
6
|
+
# build makes only the program: the man pages of the tarball need pandoc, which the image does not hold.
|
|
7
|
+
FROM alpine:3.23@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62 AS build
|
|
8
|
+
RUN apk add --no-cache build-base pkgconf libevent-dev openssl-dev curl
|
|
9
|
+
ARG VERSION=1.26.1
|
|
10
|
+
ARG SHA256=00886a2994b4844cd37110970df777772cfc42a74c400522c82fba509a3f42d9
|
|
11
|
+
RUN curl -fsSL -o /tmp/pgbouncer.tar.gz "https://www.pgbouncer.org/downloads/files/${VERSION}/pgbouncer-${VERSION}.tar.gz" \
|
|
12
|
+
&& echo "${SHA256} /tmp/pgbouncer.tar.gz" | sha256sum -c - \
|
|
13
|
+
&& tar -xzf /tmp/pgbouncer.tar.gz -C /tmp \
|
|
14
|
+
&& cd "/tmp/pgbouncer-${VERSION}" \
|
|
15
|
+
&& ./configure --prefix=/usr/local --without-cares --without-pam --without-ldap --without-systemd \
|
|
16
|
+
&& make -j2 pgbouncer \
|
|
17
|
+
&& install -m 0755 pgbouncer /usr/local/bin/pgbouncer
|
|
18
|
+
|
|
19
|
+
FROM alpine:3.23@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62
|
|
20
|
+
RUN apk add --no-cache libevent openssl \
|
|
21
|
+
&& adduser -D -H -s /sbin/nologin pgbouncer \
|
|
22
|
+
&& mkdir -p /etc/pgbouncer
|
|
23
|
+
COPY --from=build /usr/local/bin/pgbouncer /usr/local/bin/pgbouncer
|
|
24
|
+
USER pgbouncer
|
|
25
|
+
EXPOSE 6432
|
|
26
|
+
CMD ["/usr/local/bin/pgbouncer", "/etc/pgbouncer/pgbouncer.ini"]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Pgpool-II 4.7.3, a pooler hop of the harness. The build gets the source of the tag V4_7_3 (commit
|
|
2
|
+
# 07d24655e42d) from GitHub and checks its SHA-256 before it builds. The machine documents of
|
|
3
|
+
# Pgpool-II cite that source. www.pgpool.net does not serve its release tarball to curl, and the
|
|
4
|
+
# tree of git holds no configure, thus the build runs autoreconf, and bison and flex make the parser.
|
|
5
|
+
# The configuration of a cell goes in by its file: /etc/pgpool/pgpool.conf. Each other file that
|
|
6
|
+
# Pgpool-II reads is empty in the image. Pgpool-II runs in the foreground (-n) as its own user.
|
|
7
|
+
FROM alpine:3.23@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62 AS build
|
|
8
|
+
RUN apk add --no-cache build-base autoconf automake libtool bison flex libpq-dev curl linux-headers
|
|
9
|
+
ARG COMMIT=07d24655e42dfdbfe2e7549df6166e057b99b622
|
|
10
|
+
ARG SHA256=e48ff26faa8b20ac1e956c0d8fb763d235d7d6c560f678ab4f759eb98230acd2
|
|
11
|
+
RUN curl -fsSL -o /tmp/pgpool.tar.gz "https://codeload.github.com/pgpool/pgpool2/tar.gz/${COMMIT}" \
|
|
12
|
+
&& echo "${SHA256} /tmp/pgpool.tar.gz" | sha256sum -c - \
|
|
13
|
+
&& tar -xzf /tmp/pgpool.tar.gz -C /tmp \
|
|
14
|
+
&& cd "/tmp/pgpool2-${COMMIT}" \
|
|
15
|
+
&& autoreconf -fi \
|
|
16
|
+
&& ./configure --prefix=/usr/local --with-pgsql-includedir=/usr/include/postgresql --with-pgsql-libdir=/usr/lib \
|
|
17
|
+
&& make -j2 -C src \
|
|
18
|
+
&& make -C src install
|
|
19
|
+
|
|
20
|
+
FROM alpine:3.23@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62
|
|
21
|
+
RUN apk add --no-cache libpq \
|
|
22
|
+
&& adduser -D -H -s /sbin/nologin pgpool \
|
|
23
|
+
&& mkdir -p /etc/pgpool \
|
|
24
|
+
&& touch /etc/pgpool/pcp.conf /etc/pgpool/pool_hba.conf /etc/pgpool/pool_passwd \
|
|
25
|
+
&& chown -R pgpool /etc/pgpool
|
|
26
|
+
COPY --from=build /usr/local /usr/local
|
|
27
|
+
USER pgpool
|
|
28
|
+
EXPOSE 9999
|
|
29
|
+
CMD ["/usr/local/bin/pgpool", "-n", "-f", "/etc/pgpool/pgpool.conf", "-F", "/etc/pgpool/pcp.conf", "-a", "/etc/pgpool/pool_hba.conf"]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@mark1russell7/harness",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.18",
|
|
5
5
|
"description": "A fault-injection harness for connection timers: a cell runs a client against a stock target in Docker, through a topology of routers and proxies, a replicated group under Sentinels or a replica set, injects a fault, measures the kernel's own records and judges a prediction. HTTP clients of Go, Node and undici race the keep-alive of a Node server, and the MongoDB driver meets the faults of a replica set. The WebSocket client of @procedures/client drops a silent connection on its own heartbeat, and the harness times that detection and the reconnect from the program's lines and the kernel's stamps.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"fault-injection",
|
|
@@ -74,8 +74,18 @@
|
|
|
74
74
|
"image/hikari/jars.sha256",
|
|
75
75
|
"image/amqp/Dockerfile",
|
|
76
76
|
"image/amqp/client-amqp.mjs",
|
|
77
|
+
"image/amqp/client-cluster.mjs",
|
|
78
|
+
"image/amqp/admin-cluster.mjs",
|
|
77
79
|
"image/amqp/package.json",
|
|
78
80
|
"image/amqp/npm-lock.json",
|
|
81
|
+
"image/grpc/Dockerfile",
|
|
82
|
+
"image/grpc/client-grpc.mjs",
|
|
83
|
+
"image/grpc/package.json",
|
|
84
|
+
"image/grpc/npm-lock.json",
|
|
85
|
+
"image/grpc-go/Dockerfile",
|
|
86
|
+
"image/grpc-go/go.mod",
|
|
87
|
+
"image/grpc-go/main.go",
|
|
88
|
+
"image/etcd/Dockerfile",
|
|
79
89
|
"image/procedures/Dockerfile",
|
|
80
90
|
"image/procedures/package.json",
|
|
81
91
|
"image/procedures/npm-lock.json",
|
|
@@ -86,6 +96,8 @@
|
|
|
86
96
|
"image/router/mbx.sh",
|
|
87
97
|
"image/router/ctwatch.py",
|
|
88
98
|
"image/router/resetter.py",
|
|
99
|
+
"image/pgbouncer/Dockerfile",
|
|
100
|
+
"image/pgpool/Dockerfile",
|
|
89
101
|
"README.md",
|
|
90
102
|
"LICENSE"
|
|
91
103
|
],
|