@camunda/e2e-test-suite 0.0.985 → 0.0.986

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.
@@ -18,7 +18,25 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.createInstances = exports.deploy = void 0;
20
20
  const zeebe_node_1 = require("zeebe-node");
21
- const zbc = new zeebe_node_1.ZBClient(); // localhost:26500 || ZEEBE_GATEWAY_ADDRESS
21
+ // zeebe-node defaults to `maxRetries: -1`, which its retryOnFailure() turns
22
+ // into `forever: true` with at most 5s between attempts. So an unreachable
23
+ // gateway is retried indefinitely and nothing ever throws: run 32136136238
24
+ // spent 3h18m emitting 75,236 "[deployWorkflow]: Attempt N (max: -1)" lines,
25
+ // reached attempt 719, and still reported the job as successful.
26
+ //
27
+ // Bound it so an unreachable broker surfaces as a fast, visible test failure
28
+ // instead of silently consuming the job budget. Roughly 15 attempts against
29
+ // the 5s ceiling is about a minute of grace -- enough to ride out a gateway
30
+ // restart, short enough to fail honestly.
31
+ //
32
+ // Must be > 0: ZBClient resolves this as `options.maxRetries || DEFAULT`, so a
33
+ // 0 would fall through to the -1 default and restore the infinite loop.
34
+ const parsedMaxRetries = Number(process.env.ZEEBE_CLIENT_MAX_RETRIES);
35
+ const maxRetries = Number.isFinite(parsedMaxRetries) && parsedMaxRetries > 0
36
+ ? parsedMaxRetries
37
+ : 15;
38
+ // localhost:26500 || ZEEBE_GATEWAY_ADDRESS
39
+ const zbc = new zeebe_node_1.ZBClient({ maxRetries });
22
40
  const deploy = (processNames) => {
23
41
  return zbc.deployProcess(processNames);
24
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.985",
3
+ "version": "0.0.986",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",