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.
- package/dist/admin-index.js +0 -0
- package/dist/index.js +0 -0
- package/dist/merge-train.js +9 -4
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/admin-index.js
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/merge-train.js
CHANGED
|
@@ -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
|
|
64
|
-
const
|
|
65
|
-
const
|
|
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