From e7cdb9f6609268a0452b7daf9771085dc28a3c7a Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Mon, 4 Dec 2017 16:28:06 -0800 Subject: [PATCH] ci(core): Improve the payload size message (#20786) PR Close #20786 --- scripts/ci/payload-size.js | 4 ++-- scripts/ci/payload-size.sh | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/ci/payload-size.js b/scripts/ci/payload-size.js index 429a0d9dd8..bf0f04028e 100644 --- a/scripts/ci/payload-size.js +++ b/scripts/ci/payload-size.js @@ -25,14 +25,14 @@ for (const compressionType in limitSizes) { failed = true; console.log( `Commit ${commit} ${compressionType} ${filename} exceeded expected size by >1% ` + - `(expected: ${expectedSize}, actual: ${actualSize}).\n` + - `If this is a desired change, please update the size limits in file '${limitFile}'.`); + `(expected: ${expectedSize}, actual: ${actualSize}).`); } } } } if (failed) { + console.log(`If this is a desired change, please update the size limits in file '${limitFile}'.`); process.exit(1); } else { console.log('Payload size <1% change check passed.'); diff --git a/scripts/ci/payload-size.sh b/scripts/ci/payload-size.sh index e6352c3401..ec242a610c 100644 --- a/scripts/ci/payload-size.sh +++ b/scripts/ci/payload-size.sh @@ -79,8 +79,6 @@ uploadData() { name="$1" payloadData="{${payloadData}}" - echo The data for $name is: - echo $payloadData echo $payloadData > /tmp/current.log readonly safeBranchName=$(echo $TRAVIS_BRANCH | sed -e 's/\./_/g')