fix(core): write terminal output to cache folder (#22673)
This commit is contained in:
parent
3b182e4650
commit
c51a084eea
@ -201,6 +201,7 @@ export class ForkedProcessTaskRunner {
|
||||
private async forkProcessWithPseudoTerminal(
|
||||
task: Task,
|
||||
{
|
||||
temporaryOutputPath,
|
||||
streamOutput,
|
||||
taskGraph,
|
||||
env,
|
||||
@ -242,7 +243,7 @@ export class ForkedProcessTaskRunner {
|
||||
if (code >= 128) {
|
||||
process.exit(code);
|
||||
}
|
||||
|
||||
this.writeTerminalOutput(temporaryOutputPath, terminalOutput);
|
||||
res({
|
||||
code,
|
||||
terminalOutput,
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { defaultMaxListeners } from 'events';
|
||||
import { performance } from 'perf_hooks';
|
||||
import { relative } from 'path';
|
||||
import { writeFileSync } from 'fs';
|
||||
import { TaskHasher } from '../hasher/task-hasher';
|
||||
import runCommandsImpl from '../executors/run-commands/run-commands.impl';
|
||||
import { ForkedProcessTaskRunner } from './forked-process-task-runner';
|
||||
@ -433,7 +434,7 @@ export class TaskOrchestrator {
|
||||
terminalOutput
|
||||
);
|
||||
}
|
||||
|
||||
writeFileSync(temporaryOutputPath, terminalOutput);
|
||||
results.push({
|
||||
task,
|
||||
status,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user