From bff6dd2e136f2a37550ef0c8c4fee1a2daac8503 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sun, 9 Jun 2019 17:31:35 +0200 Subject: [PATCH] debug --- dangerfile.js | 2 ++ scripts/sizeSnapshot/loadComparison.js | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dangerfile.js b/dangerfile.js index f34667769345d1..8d3cfc6f3d6a0a 100644 --- a/dangerfile.js +++ b/dangerfile.js @@ -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)); diff --git a/scripts/sizeSnapshot/loadComparison.js b/scripts/sizeSnapshot/loadComparison.js index eef34eac236f40..1dd32e060ce4ac 100644 --- a/scripts/sizeSnapshot/loadComparison.js +++ b/scripts/sizeSnapshot/loadComparison.js @@ -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 });