[JIRA] (JENKINS-36817) False warnings: Failed to copy 2016-07-20 02 to .../builds/.../workspace-files/4581fd88.tmp

1 view
Skip to first unread message

vorobievalex@yandex.ru (JIRA)

unread,
Jul 20, 2016, 5:53:01 AM7/20/16
to jenkinsc...@googlegroups.com
Alexander Vorobiev created an issue
 
Jenkins / Bug JENKINS-36817
False warnings: Failed to copy 2016-07-20 02 to .../builds/.../workspace-files/4581fd88.tmp
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: warnings-plugin
Created: 2016/Jul/20 9:52 AM
Environment: Jenkins ver. 2.10
Warnings plugin 4.56
Priority: Major Major
Reporter: Alexander Vorobiev

There are multiple false warnings appear/disappear in every build, hiding real warnings and test issues of every job.

Job configured to scan a single log file in workspace with Clang (LLVM based) parser. There are no records like this in the file. There are no folders like this in the workspace. Built at master.

Warning example.

The warning itself is shown at line 15 with text '11 database corruption at line 51393 of':

Content of file

01 Copying the source file '2016-07-20 02' from the workspace to the build folder '4581fd88.tmp' on the Jenkins master failed.
02 Seems that the path is relative, however an absolute path is required when copying the sources.
03 Is the file '2016-07-20 02' contained more than once in your workspace?
04 Is the file '2016-07-20 02' a valid filename?
05 If you are building on a slave: please check if the file is accessible under '$JENKINS_HOME/[job-name]/2016-07-20 02'
06 If you are building on the master: please check if the file is accessible under '$JENKINS_HOME/[job-name]/workspace/2016-07-20 02'
07 java.io.IOException: Failed to copy 2016-07-20 02 to /jenkins/builds/App1UnitTests/2377/workspace-files/4581fd88.tmp
08 at hudson.FilePath.copyTo(FilePath.java:2018)
09 at hudson.plugins.analysis.util.Files.copyFilesWithAnnotationsToBuildFolder(Files.java:80)
10 at hudson.plugins.analysis.core.HealthAwareRecorder.copyFilesWithAnnotationsToBuildFolder(HealthAwareRecorder.java:333)
11 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:89)
12 at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:280)
13 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
14 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
15 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
16 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
17 at hudson.model.Build$BuildExecution.post2(Build.java:185)
18 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
19 at hudson.model.Run.execute(Run.java:1745)
20 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
21 at hudson.model.ResourceController.execute(ResourceController.java:98)
22 at hudson.model.Executor.run(Executor.java:410)
23 Caused by: java.io.FileNotFoundException: 2016-07-20 02 (No such file or directory)
24 at java.io.FileInputStream.open0(Native Method)
25 at java.io.FileInputStream.open(FileInputStream.java:195)
26 at java.io.FileInputStream.<init>(FileInputStream.java:138)
27 at hudson.FilePath$41.invoke(FilePath.java:2044)
28 at hudson.FilePath$41.invoke(FilePath.java:2039)
29 at hudson.FilePath.act(FilePath.java:1018)
30 at hudson.FilePath.act(FilePath.java:996)
31 at hudson.FilePath.copyTo(FilePath.java:2039)
32 at hudson.FilePath.copyTo(FilePath.java:2013)
33 ... 14 more

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

vorobievalex@yandex.ru (JIRA)

unread,
Aug 1, 2016, 7:27:02 AM8/1/16
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 4, 2017, 4:50:02 PM1/4/17
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Change By: Ulli Hafner
There are multiple false warnings appear/disappear in every build, hiding real warnings and test issues of every job.

Job configured to scan a single log file in workspace with Clang (LLVM based) parser. There are no records like this in the file. There are no folders like this in the workspace. Built at master.
h5.
h6. Warning example.

The warning itself is shown at line 15 with text '11 database corruption at line 51393 of':

*Content of file*

{
quote noformat }
{ quote noformat }

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 4, 2017, 4:50:02 PM1/4/17
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-36817
 
Re: False warnings: Failed to copy 2016-07-20 02 to .../builds/.../workspace-files/4581fd88.tmp

Can you please attach the part of the console log that results in this warning?

vorobievalex@yandex.ru (JIRA)

unread,
Jan 9, 2017, 6:44:01 AM1/9/17
to jenkinsc...@googlegroups.com

The problem is that parsed log file contains no records related to these warnings.
No related lines can be found in the jenkins system log either.

These are some internal jenkins logs and internal jenkins tmp file that name might be constructed here:
https://github.com/jenkinsci/analysis-core-plugin/blob/master/src/main/java/hudson/plugins/analysis/util/model/AbstractAnnotation.java#L366

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 9, 2017, 8:39:01 AM1/9/17
to jenkinsc...@googlegroups.com

Sorry, I do not follow.

Just to clarify: The content of the file above is an exception trace from my plugin, it helps to identify the problem. What I would like to know: why is there a warning with a broken file-name, so I need to find the cause of this.

You wrote above:

Warning example.
The warning itself is shown at line 15 with text '11 database corruption at line 51393 of':

Can you show the full properties of the warning with this text? How does the log file look that contains this message (just that line is interesting).

vorobievalex@yandex.ru (JIRA)

unread,
Jan 10, 2017, 3:45:01 AM1/10/17
to jenkinsc...@googlegroups.com

Ah, got it now. The text '11 database corruption at line 51393 of' must have existed in the log parsed, while stack trace is plugin internal stuff.

I cannot reproduce the same issue now, but I have several equal cases with other strings. Here are the examples:
2017-01-09 23:58:38.845 TheApp[23132:1512765431] void dbErrorLogCallback(...[Line 346] SQL error: 23 misuse at line 112343 of [c78c5a7786]
2017-01-09 23:57:56.598 TheApp[22354:151245512] void dbErrorLogCallback(...[Line 326] SQL error: 232 statement aborts at 12: [select a.id, a.zid, a.user_id
2017-01-09 23:58:38.943 TheApp[26457:151457651] void dbErrorLogCallback(...[Line 324] SQL error: 1 no such table: main.bin_fr_st

These are the app output itself, appeared during UT execution. These lines lead to the following warnings with traces similar to above:
23 misuse at line 112343 of [c78c5a7786]
232 statement aborts at 12: [select a.id, a.zid, a.user_id
1 no such table: main.bin_fr_st

scm_issue_link@java.net (JIRA)

unread,
Jan 10, 2017, 12:48:05 PM1/10/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Ulli Hafner
Path:
src/main/java/hudson/plugins/warnings/parser/ClangParser.java
src/test/java/hudson/plugins/warnings/parser/ClangParserTest.java
src/test/resources/hudson/plugins/warnings/parser/issue36817.txt
warnings.iml
http://jenkins-ci.org/commit/warnings-plugin/b49d2b85a32f6b62a218386a2c922d48332973ed
Log:
[FIXED JENKINS-36817] Fixed false positives.

scm_issue_link@java.net (JIRA)

unread,
Jan 10, 2017, 12:48:05 PM1/10/17
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages