Skip to content

Commit

Permalink
docs(aio): troubleshooting payload size
Browse files Browse the repository at this point in the history
  • Loading branch information
kapunahelewong committed Dec 4, 2017
1 parent e0d7fe3 commit 4522b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ci/payload-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const current = JSON.parse(fs.readFileSync('/tmp/current.log', 'utf8'));


const limitData = limit[project][branch] || limit[project]["master"];

if (!limitData) {
console.error(`No limit data found.`);
// If no payload limit file found, we don't need to check the size
Expand All @@ -22,7 +22,7 @@ for (let compressionType in limitData) {
const name = `${compressionType}/${file}`;
const number = limitData[compressionType][file];
if (Math.abs(current[name] - number) > number / 100) {
console.log(`Commit ${commit} ${compressionType} ${file} changed from ${number} to ${current[name]}.
console.log(`Commit ${compressionType} ${file} changed from ${number} to ${current[name]}.
If this is a desired change, please update the payload size limits in file ${limitFile}`);
failed = true;
}
Expand Down

0 comments on commit 4522b3f

Please sign in to comment.