@steve31415/baselib 2.4.2 → 2.4.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/deploy/deploy.js +4 -1
- package/package.json +1 -1
package/dist/deploy/deploy.js
CHANGED
|
@@ -209,7 +209,10 @@ export async function runDeploy(options) {
|
|
|
209
209
|
await evidence.save(`gate-${index}.log`, result.stdout + result.stderr);
|
|
210
210
|
timer.record(`gate:${gate}`, Date.now() - gateStart);
|
|
211
211
|
if (result.code !== 0) {
|
|
212
|
-
|
|
212
|
+
// Quote the tail of BOTH streams: test runners put the failing spec on
|
|
213
|
+
// stdout and only build/server noise on stderr, so stderr alone can
|
|
214
|
+
// hide which test failed. stderr last, so it survives the cut.
|
|
215
|
+
const tail = [result.stdout.trim(), result.stderr.trim()].filter(Boolean).join('\n').slice(-1500);
|
|
213
216
|
throw new Error(`gate failed: ${gate}\n${tail}`);
|
|
214
217
|
}
|
|
215
218
|
log(`gate passed: ${gate}`);
|
package/package.json
CHANGED