File tree Expand file tree Collapse file tree 3 files changed +25
-11
lines changed
app/com/arpnetworking/metrics/portal/reports/impl/chrome/grafana Expand file tree Collapse file tree 3 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,14 @@ pipeline {
12
12
stage(' Init' ) {
13
13
steps {
14
14
checkout scm
15
- script {
16
- def m = (env. GIT_URL =~ / (\/ |:)(([^\/ ]+)\/ )?(([^\/ ]+?)(\. git)?)$/ )
17
- if (m) {
18
- org = m. group(3 )
19
- repo = m. group(5 )
20
- }
21
- }
15
+ script {
16
+ def m = (env. GIT_URL =~ / (\/ |:)(([^\/ ]+)\/ )?(([^\/ ]+?)(\. git)?)$/ )
17
+ if (m) {
18
+ org = m. group(3 )
19
+ repo = m. group(5 )
20
+ }
21
+ }
22
+ discoverReferenceBuild()
22
23
}
23
24
}
24
25
stage(' Setup build' ) {
@@ -73,6 +74,7 @@ pipeline {
73
74
}
74
75
post(' Analysis' ) {
75
76
always {
77
+ recordCoverage(tools : [[parser : ' JACOCO' ]])
76
78
recordIssues(
77
79
enabledForFailure : true , aggregatingResults : true ,
78
80
tools : [java(), checkStyle(reportEncoding : ' UTF-8' ), spotBugs()])
Original file line number Diff line number Diff line change @@ -124,9 +124,21 @@ public URI getUri(final GrafanaReportPanelReportSource source) {
124
124
125
125
final CompletableFuture <?> failureFuture = devToolsService .nowOrOnEvent (
126
126
"reportrenderfailed" ,
127
- () -> false
128
- // TODO(spencerpearson): ^ this might miss a very fast failure.
129
- // How can we avoid this race condition?
127
+ () -> {
128
+ // TODO(spencerpearson): ^ this might miss a very fast failure.
129
+ // How can we avoid this race condition?
130
+ final Object rawHtml ;
131
+ try {
132
+ rawHtml = devToolsService .evaluate ("document.documentElement.outerHTML" ).get ();
133
+ } catch (final InterruptedException | ExecutionException e ) {
134
+ throw new CompletionException (e );
135
+ }
136
+ LOGGER .debug ()
137
+ .setMessage ("snapshot of html looking for failiure" )
138
+ .addData ("bodySrc" , rawHtml )
139
+ .log ();
140
+ return false ;
141
+ }
130
142
).thenApply (whatever -> {
131
143
LOGGER .debug ()
132
144
.setMessage ("browser fired reportrenderfailed event" )
Original file line number Diff line number Diff line change 103
103
<metrics .incubator.extra.version>0.13.0</metrics .incubator.extra.version>
104
104
<metrics .jvm.extra.version>0.13.1</metrics .jvm.extra.version>
105
105
<oval .version>3.2.1</oval .version>
106
- <play2 .version>3.0.5 </play2 .version>
106
+ <play2 .version>3.0.7 </play2 .version>
107
107
<play2-json .version>3.0.4</play2-json .version>
108
108
<play2-ebean .version>8.3.0</play2-ebean .version>
109
109
<play2-jdbc-evolutions .version>3.0.5</play2-jdbc-evolutions .version>
You can’t perform that action at this time.
0 commit comments