[JIRA] (JENKINS-60810) NG-Warnings detail view sometimes not loading

15 views
Skip to first unread message

stephan.valentan@sonible.com (JIRA)

unread,
Jan 17, 2020, 4:17:04 PM1/17/20
to jenkinsc...@googlegroups.com
Stephan Vallant created an issue
 
Jenkins / Bug JENKINS-60810
NG-Warnings detail view sometimes not loading
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2020-01-17 21:15
Environment: Jenkins 2.214
Warnings-NG 7.3
Java 1.8.0_222
Priority: Minor Minor
Reporter: Stephan Vallant

We are using Warnings-NG to collect warnings for cppcheck, clang and msbuild.

Sometimes there are new warnings reported for a build, but when trying to check them using the warnings detail view, the warnings are simply not loading.

This has occured with both MacOS and Windows and Firefox, Chrome or Safari.

However it did not occur at the same time, so we encountered situations where the warnings would not load using Safari on MacOS but did load with Firefox on Windows.

Sometimes a restart of jenkins helped, sometimes it didn't. In general the problem just dissapeared after some while, it happens very unregularly.

I read that this warnings-details view is loaded using ajax, so i checked the browser developer console for messages, but i could not find anything that seemed to be related to the problem.

Are there some other ways of identifying or debugging the problem when it occurs? If so, i am happy to collect more information on the problem!

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

stephan.valentan@sonible.com (JIRA)

unread,
Feb 13, 2020, 10:14:02 AM2/13/20
to jenkinsc...@googlegroups.com
Stephan Vallant updated an issue
Change By: Stephan Vallant
Attachment: failed-connection.txt

stephan.valentan@sonible.com (JIRA)

unread,
Feb 13, 2020, 10:15:02 AM2/13/20
to jenkinsc...@googlegroups.com
Stephan Vallant commented on Bug JENKINS-60810
 
Re: NG-Warnings detail view sometimes not loading

So i further investigated this issue and tracked down the failing request.
When i am looking at the issues of a particular build (so e.g. the msbuild warnings), there is a table with DOM-id "issues".
The page then makes a request to
<jenkins-url>/$stapler/bound/<random-string>/getTableModel.

It seems like while this works most of the time, sometimes the request runs into a timeout and the connection is ended with a 500 internal server error.

I've seen in the github codebase that the there is a corresponding method in the IssuesDetail.java class, however i do not understand the code enough to point to any place the error could lay.

I attached a small log captured via firefox of an instance where the issues were not loading. Looking at the network timing it seems like the connection just ran into a timeout.

ullrich.hafner@gmail.com (JIRA)

unread,
Feb 13, 2020, 10:29:02 AM2/13/20
to jenkinsc...@googlegroups.com

Thanks for adding the details. Maybe it makes sense to retry after such a failure.

stephan.valentan@sonible.com (JIRA)

unread,
Feb 13, 2020, 11:22:02 AM2/13/20
to jenkinsc...@googlegroups.com

If that would have helped, i wouldn't even bothered to create a issue here.

The problem occurs at random times on both macos and win, on all browsers, for random projects and random builds, which makes it really hard to pin down.

But once it has occured, it usually stays around for that particular build. Looking at other Issue details usually still works, only the currently failing one keeps failing.

We require "no new warnings" as quality gate for pull requests, so looking at newly introduced warnings is quite important in the process- up until now our workaround was to ask a collegue to open the page.

Could it be a nginx configuration problem?

ullrich.hafner@gmail.com (JIRA)

unread,
Feb 13, 2020, 4:25:03 PM2/13/20
to jenkinsc...@googlegroups.com

I really have no idea. Ajax in Jenkins is something that is totally hidden in the API so I have no clue where to start.

stephan.valentan@sonible.com (JIRA)

unread,
Feb 13, 2020, 5:53:03 PM2/13/20
to jenkinsc...@googlegroups.com

I just checked, nothing shows up in the jenkins server logs either... any other idea where information could be hidden?

stephan.valentan@sonible.com (JIRA)

unread,
Apr 1, 2020, 2:57:03 AM4/1/20
to jenkinsc...@googlegroups.com

This issue occurs on our team on a regular basis now, again across browsers and operating systems... Also across jenkins + plugin versions.

Are we really the only ones experiencing this?

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages