Skip to content

Commit

Permalink
Update lib/ci/build-types/citgm_comparison_build.js
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
codebytere and richardlau committed Jul 20, 2020
1 parent 40395ce commit 8b99bba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ci/build-types/citgm_comparison_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CITGMComparisonBuild {

const failures = {};
for (const platform in baseFailures) {
const { modules: baseModules } = comparisonFailures[platform];
const { modules: baseModules } = baseFailures[platform];
const { modules: comparisonModules } = comparisonFailures[platform];

const newFailures = comparisonModules.filter(f => {
Expand Down
12 changes: 11 additions & 1 deletion lib/ci/build-types/test_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ class TestBuild extends Job {
this.builtOn = builtOn;
}

setDailyBuildData({ result, changeSet, actions, timestamp, builtOn }) {
this.change = changeSet.items[0] || {};
this.date = new Date(timestamp);
this.result = result;
this.builtOn = builtOn;
}

get sourceURL() {
const { params } = this;

Expand Down Expand Up @@ -125,7 +132,9 @@ class TestBuild extends Job {
displayBuilds() {
const { cli, failures, builds } = this;
for (const failure of failures) {
this.displayFailure(failure);
if (failure !== undefined) {
this.displayFailure(failure);
}
}
cli.separator('Other builds');
for (const aborted of builds.aborted) {
Expand All @@ -151,6 +160,7 @@ class TestBuild extends Job {
const { failures } = this;
let output = `Failures in job ${this.jobUrl}\n\n`;
for (const failure of failures) {
if (failure === undefined) continue;
output += `#### [${getNodeName(failure.url)}](${failure.url})`;
if (!failure.reason.includes('\n') && failure.reason.length < 20) {
const builtOn = failure.builtOn ? `On ${failure.builtOn}: ` : '';
Expand Down

0 comments on commit 8b99bba

Please sign in to comment.