Skip to content

Commit b8f8c74

Browse files
committed
Add documentation with example
1 parent 419d9c9 commit b8f8c74

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

docs/ncu-ci.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ node on git:master ❯ ncu-ci rate commit
6363

6464
`ncu-ci walk <type>` walks CI and displays failures, where `<type>` can be either `pr` for `node-test-pull-request` or `commit` for `node-test-commit`.
6565

66-
Example
66+
Example:
6767
```sh
6868
node on git:master ❯ ncu-ci walk commit
6969
✔ Done--------------------------------------------------------------------------------
@@ -227,6 +227,40 @@ Notifying upstream projects of job completion
227227
Finished: SUCCESS
228228
```
229229
230+
### `ncu-ci citgm <jobid>`
231+
232+
`ncu-ci citgm <jobid>` shows the results of a given citgm-smoker job.
233+
234+
Example:
235+
```
236+
node on git:master ❯ ncu-ci citgm 2400 10:25AM
237+
--------------------------------------------------------------------------------
238+
[1/1] Running CITGM: 2400
239+
--------------------------------------------------------------------------------
240+
✔ Header data downloaded
241+
✔ Report data downloaded
242+
----------------------------------- Summary ------------------------------------
243+
Result FAILURE
244+
URL https://ci.nodejs.org/job/citgm-smoker/2400/testReport/
245+
Source https://github.com/nodejs/node/pull/34093/
246+
Commit [9ec07f42864c] 2020-06-30, Version 14.5.0 (Current)
247+
Date 2020-06-29 21:17:56 -0700
248+
Author Shelley Vohr <[email protected]>
249+
----------------------------------- Failures -----------------------------------
250+
┌────────────────────────┬───────────────────────┬───────────────────────┬─────────────────────────┬─────────────────────┬─────────────────┬────────────────────┐
251+
│ (index) │ 0 │ 1 │ 2 │ 3 │ 4 │ 5 │
252+
├────────────────────────┼───────────────────────┼───────────────────────┼─────────────────────────┼─────────────────────┼─────────────────┼────────────────────┤
253+
│ debian9-64 │ 'coffeescript-v2.5.1''through2-v4.0.2' │ │ │ │ │
254+
│ rhel7-s390x │ 'through2-v4.0.2' │ │ │ │ │ │
255+
│ fedora-latest-x64 │ 'coffeescript-v2.5.1''through2-v4.0.2' │ │ │ │ │
256+
│ ubuntu1604-64 │ 'coffeescript-v2.5.1''through2-v4.0.2' │ │ │ │ │
257+
│ osx1014 │ 'acorn-v7.3.1''coffeescript-v2.5.1''clinic-v6.0.2''ember-cli-v3.19.0''semver-v7.3.2''watchify-v3.11.1'
258+
│ ubuntu1804-64 │ 'coffeescript-v2.5.1''through2-v4.0.2' │ │ │ │ │
259+
│ fedora-last-latest-x64 │ 'coffeescript-v2.5.1''through2-v4.0.2' │ │ │ │ │
260+
│ centos7-ppcle │ 'coffeescript-v2.5.1''clinic-v6.0.2''torrent-stream-v1.2.0''through2-v4.0.2' │ │ │
261+
└────────────────────────┴───────────────────────┴───────────────────────┴─────────────────────────┴─────────────────────┴─────────────────┴────────────────────┘
262+
```
263+
230264
## Caveats
231265
232266
The CI failures are parsed using pattern matching and could be incorrect. Feel

lib/ci/ci_result_parser.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,9 @@ class CITGMBuild extends TestBuild {
774774

775775
this.setBuildData(headerData);
776776

777+
// CITGM jobs store results in a different location than
778+
// they do summary data, so we need to update the endpoint
779+
// and issue a second API call in order to fetch result data.
777780
this.updateAPIVariables();
778781

779782
let resultData;

0 commit comments

Comments
 (0)