Handle SKIPPED state better

The SKIPPED results have a fake URL and no run-time.

Make the run-time part of the match optional so we start matching
these lines.

Because the URL is fake, null the result for SKIPPED matches so the
job name won't be a link to nowhere.

Put a secondary-color span around the job name in the null case so
it's a bit more obvious it was skipped.

A weird thing with the CSS matchers is that "first-child" doesn't work
with the templating "dom-if" we use.  "first-child" seems to refer to
the "if={{job.link}}" template tag -- so it works when job.link is
defined, but when it is not, the "if={{!job.link}}" *isn't* the first
child, despite being the only thing displayed.  Anyway,
"first-of-type" seems more like what we want -- the first <td> element
no matter what ... that should always be the first column.  Update
that match.

Change-Id: I5c3bed85d7f64cd0890757237f93d13406c33788
1 file changed
tree: c1380bfc2e73ddf6d29a52155e8451696e71cf12
  1. zuul-results-summary/
  2. .eslintignore
  3. .eslintrc.json
  4. .gitignore
  5. .gitreview
  6. bower.json
  7. BUILD
  8. LICENSE
  9. package.json
  10. README.md
README.md

Zuul Results Summary

Polygerrit plugin to show a summary of Zuul results in a change tab

Results are show in reverse chronological order, additionally sorted by CI userid's in ZUUL_PRIORITY (earlier entry in the list means sorted first in the output table). i.e. if you consider one of your CI reporters to be the main one, you should place it first in this list.

UI tests

UI tests are still a work in progress

Test plugin on Gerrit

  1. Clone gerrit git clone https://gerrit.googlesource.com/gerrit
  2. Clone plugin to plugins/zuul-results-summary `cd plugins; git clone https://gerrit.googlesource.com/plugins/zuul-results-summary
  3. Run build cd ..; bazel build plugins/zuul-results-summary:zuul-results-summary
  4. Copy resulting plugin bazel-bin/plugins/zuul-results-summary/zuul-results-summary.js to Gerrit plugins directory