ci(core): Improve the payload size message (#20786)

PR Close #20786
This commit is contained in:
Yuan Gao 2017-12-04 16:28:06 -08:00 committed by Igor Minar
parent 6911a250ef
commit e7cdb9f660
2 changed files with 2 additions and 4 deletions

View File

@ -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.');

View File

@ -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')