From 38c10cdaa728960bb3eb2543c4d6471f55ea31c0 Mon Sep 17 00:00:00 2001 From: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> Date: Sun, 3 Nov 2024 04:43:51 -0600 Subject: [PATCH] removes the stacktrace from flaky test comments (#3672) ## About The Pull Request They can be way 2 big. See atmos failure for example ## Why It's Good For The Game ## Changelog :cl: code: flaky test github comments dont spam /:cl: --- tools/pull_request_hooks/rerunFlakyTests.js | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/tools/pull_request_hooks/rerunFlakyTests.js b/tools/pull_request_hooks/rerunFlakyTests.js index 41c997c0bef2..4ea560a92aee 100644 --- a/tools/pull_request_hooks/rerunFlakyTests.js +++ b/tools/pull_request_hooks/rerunFlakyTests.js @@ -242,22 +242,8 @@ function createBody({ title, failures }, runUrl) { `.replace(/^\s*/gm, ""); } -function createComment(failures, runUrl) { - return ` - Flaky tests were detected again in [this test run](${runUrl}). - - Failures: - \`\`\` - ${failures - .map( - (failure) => - `${failure.group}: ${ - failure.headline - }\n\t${failure.details.join("\n")}` - ) - .join("\n")} - \`\`\` - `.replace(/^\s*/gm, ""); +function createComment(runUrl) { + return `Flaky tests were detected again in [this test run](${runUrl}).`; } export async function reportFlakyTests({ github, context }) { @@ -304,7 +290,6 @@ export async function reportFlakyTests({ github, context }) { repo: context.repo.repo, issue_number: existingIssueId, body: createComment( - details.failures, `https://github.com/${context.repo.owner}/${ context.repo.repo }/actions/runs/${