ccqa 1.31.2 → 1.31.3
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/bin/ccqa.mjs +8 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/bin/ccqa.mjs
CHANGED
|
@@ -15579,10 +15579,11 @@ async function runRecord(specPath, opts) {
|
|
|
15579
15579
|
let sealed = true;
|
|
15580
15580
|
let tracingStep;
|
|
15581
15581
|
let abortCause;
|
|
15582
|
+
let traceFailureNote;
|
|
15582
15583
|
const teardown = createRunTeardown();
|
|
15583
15584
|
teardown.onFinalize(async () => {
|
|
15584
15585
|
if (!push) return;
|
|
15585
|
-
sealed = await sealRecordPush(push, featureName, specName, recorded, abortCause !== void 0 ? abortNote(abortCause, tracingStep) :
|
|
15586
|
+
sealed = await sealRecordPush(push, featureName, specName, recorded, abortCause !== void 0 ? abortNote(abortCause, tracingStep) : traceFailureNote);
|
|
15586
15587
|
});
|
|
15587
15588
|
const disposeSignalHandlers = installTeardownSignalHandlers(teardown, (sig) => {
|
|
15588
15589
|
abortCause = `terminated by signal (${sig})`;
|
|
@@ -15609,6 +15610,7 @@ async function runRecord(specPath, opts) {
|
|
|
15609
15610
|
}
|
|
15610
15611
|
});
|
|
15611
15612
|
tracingStep = void 0;
|
|
15613
|
+
if (traceResult.status !== "passed") traceFailureNote = "trace finished FAILED — a step did not complete, so the recording does not demonstrate the spec";
|
|
15612
15614
|
blank();
|
|
15613
15615
|
await learnFromTrace({
|
|
15614
15616
|
enabled: opts.learnHubTracePrompt === true,
|
|
@@ -15633,14 +15635,17 @@ async function runRecord(specPath, opts) {
|
|
|
15633
15635
|
} finally {
|
|
15634
15636
|
await releaseLock();
|
|
15635
15637
|
}
|
|
15636
|
-
recorded = generated;
|
|
15638
|
+
recorded = generated && traceFailureNote === void 0;
|
|
15637
15639
|
} finally {
|
|
15638
15640
|
if (deadline !== void 0) clearTimeout(deadline);
|
|
15639
15641
|
await teardown.run();
|
|
15640
15642
|
disposeSignalHandlers();
|
|
15641
15643
|
}
|
|
15642
15644
|
if (!sealed) process.exit(2);
|
|
15643
|
-
if (!recorded)
|
|
15645
|
+
if (!recorded) {
|
|
15646
|
+
if (traceFailureNote !== void 0) error(traceFailureNote);
|
|
15647
|
+
process.exit(1);
|
|
15648
|
+
}
|
|
15644
15649
|
}
|
|
15645
15650
|
/** `--timeout <seconds>`: a positive whole number of seconds. */
|
|
15646
15651
|
function parseTimeoutSeconds(raw) {
|
package/dist/package.json
CHANGED