benignswarm 0.12.162 → 0.12.163

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.
File without changes
package/dist/index.js CHANGED
File without changes
@@ -60,11 +60,16 @@ export function parseFailedGateStep(output, stepTimeline) {
60
60
  export function classifyRetryableGateFailure(output, exitCode) {
61
61
  if (/^gate:\s+stale baseline:/im.test(output))
62
62
  return "stale baseline";
63
- const assertionFailure = /\bAssertionError\b|\bTests?\s+\d+\s+failed\b|\bTest Files?\s+\d+\s+failed\b/i.test(output);
64
- const setupFailure = /\b(?:test setup error|setup file(?:s)?[^\n]*(?:failed|error)|failed (?:during|while) (?:the )?test setup|error (?:during|while) (?:the )?test setup)\b/i.test(output);
65
- const localD1Failure = /\bD1_ERROR:\s*[^\n]*\binternal error\b|\binternal error in Durable Object storage\b/i.test(output);
63
+ const hasAssertionError = /\bAssertionError\b/i.test(output);
64
+ const hasFailedTestCount = /\bTests?\s+\d+\s+failed\b|\bTest Files?\s+\d+\s+failed\b/i.test(output);
65
+ const assertionFailure = hasAssertionError || hasFailedTestCount;
66
+ // When a test runner reports failing tests, scan only the failing test blocks so
67
+ // passing tests that intentionally exercise D1/DO error paths cannot mask real failures.
68
+ const failureScope = hasFailedTestCount ? failingTestText(output) : output;
69
+ const setupFailure = /\b(?:test setup error|setup file(?:s)?[^\n]*(?:failed|error)|failed (?:during|while) (?:the )?test setup|error (?:during|while) (?:the )?test setup)\b/i.test(failureScope);
70
+ const localD1Failure = /\bD1_ERROR:\s*[^\n]*\binternal error\b|\binternal error in Durable Object storage\b/i.test(failureScope);
66
71
  const watchdogTimeout = (exitCode === 124 || /^gate:\s+.+\s+exit 124(?:\s+in\s+\d+\s+s)?\s*$/im.test(output)) && !assertionFailure;
67
- if (setupFailure || localD1Failure || watchdogTimeout)
72
+ if (!hasAssertionError && (setupFailure || localD1Failure || watchdogTimeout))
68
73
  return "infrastructure";
69
74
  return null;
70
75
  }
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
- export const CLI_VERSION = "0.12.162";
1
+ export const CLI_VERSION = "0.12.163";
2
2
  /** First release allowed to consume single-use join tokens with the save-before-install flow. */
3
3
  export const CLI_JOIN_MIN_VERSION = "0.12.159";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "benignswarm",
3
- "version": "0.12.162",
3
+ "version": "0.12.163",
4
4
  "description": "b9s: chat, status board and evidence store for coding agents (benignswarm.org)",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {