Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 9, 2019
1 parent 7b94184 commit bff6dd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ async function run() {

const commitRange = `${mergeBaseCommit}...${danger.github.pr.head.sha}`;

markdown(upstreamRef);

const comparison = await loadComparison(mergeBaseCommit, upstreamRef);
const results = Object.entries(comparison.bundles);
const anyResultsChanges = results.filter(createComparisonFilter(1, 1));
Expand Down
5 changes: 4 additions & 1 deletion scripts/sizeSnapshot/loadComparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ module.exports = async function loadComparison(parrentId, ref) {
const [currentSnapshot, previousSnapshot] = await Promise.all([
loadCurrentSnapshot(),
// silence non existing snapshots
loadSnapshot(parrentId, ref).catch(() => ({})),
loadSnapshot(parrentId, ref).catch(error => {
console.warning(error);
return {};
}),
]);

const bundleKeys = Object.keys({ ...currentSnapshot, ...previousSnapshot });
Expand Down

0 comments on commit bff6dd2

Please sign in to comment.