Skip to content

Commit 08f70d1

Browse files
committed
fix(ng-dev): add additional debug logging to caretaker check
Add additional debug logging for the specific status results in the caretaker check to allow for easier debugging if an unexpected failure shows in our check that does not show in the Github UI.
1 parent 02baff3 commit 08f70d1

File tree

1 file changed

+10
-5
lines changed
  • ng-dev/caretaker/check

1 file changed

+10
-5
lines changed

ng-dev/caretaker/check/ci.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,23 @@ export class CiModule extends BaseModule<CiData> {
4949
};
5050
}
5151

52-
const status = (
53-
await githubMacros.getCombinedChecksAndStatusesForRef(this.git.github, {
52+
const {result, results} = await githubMacros.getCombinedChecksAndStatusesForRef(
53+
this.git.github,
54+
{
5455
...this.git.remoteParams,
5556
ref: train.branchName,
56-
})
57-
).result;
57+
},
58+
);
59+
60+
Log.debug(`Individual Status Results for branch (${train.branchName})`);
61+
results.forEach((r) => Log.debug(` - ${r.name}:`.padEnd(80), r.result));
62+
Log.debug();
5863

5964
return {
6065
active: true,
6166
name: train.branchName,
6267
label: `${trainName} (${train.branchName})`,
63-
status,
68+
status: result,
6469
};
6570
},
6671
);

0 commit comments

Comments
 (0)