Skip to content

The open alternative to Salesforce, designed for AI.

Stream nx task output so a killed task still prints its stack (#25560)

neo773e7d15f85db98
diff --git a/.github/actions/nx-affected/action.yaml b/.github/actions/nx-affected/action.yaml
index e380feb5ecb..04e2b9f027c 100644
--- a/.github/actions/nx-affected/action.yaml
+++ b/.github/actions/nx-affected/action.yaml
@@ -33,4 +33,7 @@ runs:
NX_PARALLEL: ${{ inputs.parallel }}
NX_TAG: ${{ inputs.tag }}
NX_ARGS: ${{ inputs.args }}
- run: npx nx affected --nxBail --configuration="$NX_CONFIGURATION" -t="$NX_TASKS" --parallel="$NX_PARALLEL" --exclude="*,!tag:$NX_TAG" $NX_ARGS
\ No newline at end of file
+ # Nx buffers task output into an internal stream by default, so a task
+ # that gets killed takes its buffer with it: the log ends on whatever last
+ # happened to flush and the stack trace is never printed.
+ run: npx nx affected --nxBail --outputStyle=stream --configuration="$NX_CONFIGURATION" -t="$NX_TASKS" --parallel="$NX_PARALLEL" --exclude="*,!tag:$NX_TAG" $NX_ARGS
\ No newline at end of file