From fc31ea5ad8629281b33fad2b5de3deb627afaaf4 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Tue, 5 Mar 2024 11:22:35 -0800 Subject: [PATCH] Actually print the full diff into the log when the log is too big (#974) --- .changeset/plenty-news-shake.md | 2 ++ packages/dtslint-runner/src/post-results.ts | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/plenty-news-shake.md diff --git a/.changeset/plenty-news-shake.md b/.changeset/plenty-news-shake.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/plenty-news-shake.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/dtslint-runner/src/post-results.ts b/packages/dtslint-runner/src/post-results.ts index 841502a549..1586be8422 100644 --- a/packages/dtslint-runner/src/post-results.ts +++ b/packages/dtslint-runner/src/post-results.ts @@ -46,7 +46,12 @@ async function main() { if (diffComment) { newComment += `There were interesting changes:\n`; if (newComment.length + diffComment.length + checkLogsMessage.length > 65535) { - newComment += `Changes are too big to display here, please check the log.`; + // hardlink directly into the output of this script + const detailedLogUrl = `https://typescript.visualstudio.com/TypeScript/_build/results?buildId=${buildId}&view=logs&j=275f1d19-1bd8-5591-b06b-07d489ea915a&t=40b1ee41-44d6-5bba-aa04-4b76a5c732e5`; + newComment += `Changes are too big to display here, please check [the log](${detailedLogUrl}).`; + console.log("There were interesting changes:\n"); + console.log(diffComment); + console.log("\n"); } else { newComment += diffComment; }