Skip to content

Commit 61468ce

Browse files
CLOUDP-296647: Add some logging for testing
1 parent 0043ebd commit 61468ce

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tools/spectral/ipa/metrics/metricS3Upload.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export async function uploadMetricCollectionDataToS3(filePath = config.defaultMe
3636
});
3737

3838
console.log('Dumping data to S3...');
39-
return await client.send(command);
39+
//return await client.send(command);
40+
return 'testing';
4041
} catch (caught) {
4142
if (caught instanceof S3ServiceException && caught.name === 'EntityTooLarge') {
4243
console.error(

tools/spectral/ipa/metrics/scripts/getShouldRunMetricsRelease.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ export default async function getShouldRunMetricsRelease({ github, context }) {
1818
throw Error('response.data.workflow_runs is empty');
1919
}
2020

21+
console.log(runs[1]);
22+
2123
const previousResult = runs[1].conclusion;
2224

2325
const lastRunDate = new Date(runs[1].created_at);
2426
const today = new Date();
2527

28+
console.log('Last run was', lastRunDate.toDateString(), 'with status', previousResult);
29+
console.log('Head branch', runs[1].head_branch);
30+
console.log('Run started at', runs[1].run_started_at);
31+
2632
return previousResult === 'failure' || today.toDateString() !== lastRunDate.toDateString();
2733
}

0 commit comments

Comments
 (0)