Skip to content

Commit c6cdc63

Browse files
weswighamTypeScript Bot
and
TypeScript Bot
authored
sanitize yarn-node path in output (microsoft#36953)
* sanitize yarn-node path in output * Update user baselines (#58) Co-authored-by: Wesley Wigham <[email protected]> Co-authored-by: TypeScript Bot <[email protected]>
1 parent ebca423 commit c6cdc63

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/testRunner/externalCompileRunner.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ ${sanitizeDockerfileOutput(result.stderr.toString())}`;
208208
return result.replace(/^.*(\] (Starting)|(Finished)).*$/gm, "") // "gulp" task start/end messages (nondeterministic order)
209209
.replace(/^.*(\] . (finished)|(started)).*$/gm, "") // "just" task start/end messages (nondeterministic order)
210210
.replace(/^.*\] Respawned to PID: \d+.*$/gm, "") // PID of child is OS and system-load dependent (likely stableish in a container but still dangerous)
211-
.replace(/\n+/g, "\n");
211+
.replace(/\n+/g, "\n")
212+
.replace(/\/tmp\/yarn--.*?\/node/g, "");
212213
}
213214

214215
function sanitizeTimestamps(result: string): string {

tests/baselines/reference/docker/office-ui-fabric.log

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,12 @@ Standard error:
270270
info cli using local version of lerna
271271
lerna notice cli vX.X.X
272272
lerna info Executing command in 61 packages: "yarn run build"
273-
@fluentui/ability-attributes: npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1582311759530-0.3658619549987754/node but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
273+
@fluentui/ability-attributes: npm WARN lifecycle The node binary used for scripts is but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
274274
@uifabric/example-data: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect
275275
@uifabric/set-version: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect
276276
@uifabric/merge-styles: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect
277277
@uifabric/jest-serializer-merge-styles: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect
278-
@fluentui/react: (node:1020) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
278+
@fluentui/react: (node:1021) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
279279
@uifabric/utilities: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect
280280
@uifabric/react-hooks: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect
281281
@uifabric/styling: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect

0 commit comments

Comments
 (0)