[JIRA] (JENKINS-60172) Open Tasks Scanner does not copy files to Jenkins

0 Aufrufe
Direkt zur ersten ungelesenen Nachricht

plawniczuk@q-loc.com (JIRA)

ungelesen,
14.11.2019, 07:56:0214.11.19
an jenkinsc...@googlegroups.com
Piotr Ławniczuk created an issue
 
Jenkins / Bug JENKINS-60172
Open Tasks Scanner does not copy files to Jenkins
Issue Type: Bug Bug
Assignee: Ulli Hafner
Attachments: warnings-ng.PNG
Components: warnings-ng-plugin
Created: 2019-11-14 12:55
Environment: Windows 10, Jenkins 2.204, warnings-ng 7.2.0
Priority: Minor Minor
Reporter: Piotr Ławniczuk

Open Task scanner does not copy sources for files with issues to Jenkins master. On the parser result page, issues (file:line) cannot be viewed as source, as it is non existing. The only sources which can be viewed are the ones copied by other parsers (tools), example in attch.

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

ullrich.hafner@gmail.com (JIRA)

ungelesen,
14.11.2019, 09:03:0314.11.19
an jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-60172
 
Re: Open Tasks Scanner does not copy files to Jenkins

Well, actually open tasks are linked to the sources in general, see example.

Can you provide some more details? What errors are reported in your open tasks info page? See https://ci.jenkins.io/job/Plugins/job/warnings-ng-plugin/job/master/667/open-tasks/info/?

plawniczuk@q-loc.com (JIRA)

ungelesen,
14.11.2019, 10:11:0414.11.19
an jenkinsc...@googlegroups.com

I didn't know about the info page and there were no errors in the console log.

After seeing what is wrong on the info page I fixed the issue:

Error Messages
Can't read source file '<deleted>\common\include\csl.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\common\include\libcdvd.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\common\include\sdmacro.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\devfont.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\libipu.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\librspu2.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\sifdev.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\kerror.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\libspu2.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\modload.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\thread.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\mcbasicx\main.c', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\common\include\csl.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\common\include\libcdvd.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\common\include\sdmacro.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\devfont.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\libipu.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\librspu2.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\sifdev.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\kerror.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\libspu2.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\modload.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\thread.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\mcbasicx\main.c', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\common\include\csl.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\common\include\libcdvd.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\common\include\sdmacro.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\devfont.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\libipu.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\librspu2.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\ee\include\sifdev.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\kerror.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\libspu2.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\modload.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\iop\install\include\thread.h', defined encoding 'windows-1250' seems to be wrong
Can't read source file '<deleted>\mcbasicx\main.c', defined encoding 'windows-1250' seems to be wrong

Information Messages
Searching for files in workspace '<deleted>' that match the include pattern '**/*.c, **/*.h, **/*.cpp, **/*.hpp, **/*.cs' and exclude pattern ''
-> found 14519 files that will be scanned
Using the following tasks patterns:
-> High : ^.*(\bNOTIMPLEMENTED\b)(.*)$
-> Normal : ^.*(\bTODO\b)(.*)$
Scanning all 14519 files for open tasks
Found a total of 450 open tasks
-> TODO: 86 open tasks
-> NOTIMPLEMENTED: 364 open tasks
Skipping post processing due to errors
No valid reference build found that meets the criteria (NO_JOB_FAILURE - SUCCESSFUL_QUALITY_GATE)
All reported issues will be considered outstanding
No quality gates have been set - skipping
Health report is disabled - skipping

There are Japanese file encondings in the project, as well as the default 'windows-1250', so I just excluded above paths from the parsing. After those errors were fixed the source code files with issues were copied. Thanks!

However, I see the issue here: above files with wrong encoding didn't even have TODO tags in them but, from what it looks like, the further steps were skipped due to errors, including file copying. I think files should be copied despite the errors (found in other files).

 

plawniczuk@q-loc.com (JIRA)

ungelesen,
14.11.2019, 10:12:0314.11.19
an jenkinsc...@googlegroups.com
Piotr Ławniczuk edited a comment on Bug JENKINS-60172
I didn't know about the info page and there were no errors in the console log.

After seeing what is wrong on the info page I fixed the issue:
{code:java}
{code}
There are Japanese file encondings in the project, as well as the default 'windows-1250', so I just excluded above paths from the parsing
, as they are 3rd party libs and tools . After those errors were fixed the source code files with issues were copied. Thanks!


However, I see the issue here: above files with wrong encoding didn't even have TODO tags in them but, from what it looks like, the further steps were skipped due to errors, including file copying. I think files should be copied despite the errors (found in other files).

 

ullrich.hafner@gmail.com (JIRA)

ungelesen,
14.11.2019, 13:59:0214.11.19
an jenkinsc...@googlegroups.com

I see. Currently post processing is disabled if an error occurs. This helps to reduce subsequent errors.

ullrich.hafner@gmail.com (JIRA)

ungelesen,
14.11.2019, 14:08:0214.11.19
an jenkinsc...@googlegroups.com

BTW: The error messages above should be also part of the console log, are they not shown there?

plawniczuk@q-loc.com (JIRA)

ungelesen,
15.11.2019, 02:28:0415.11.19
an jenkinsc...@googlegroups.com

Ulli Hafner No, there were no task scanner errors in console log.

Here is the log:

...
12:24:12 [MSBuild NX32 Release] -> 74 copied, 0 not in workspace, 0 not-found, 0 with I/O error
12:24:12 [MSBuild NX32 Release] Attaching ResultAction with ID 'msbuild_nx32_release' to run 'PRL/PRL.nx_dev_from_pc.BUILD #44'.
12:24:12 [MSBuild NX32 Release] Using reference build 'PRL/PRL.nx_dev_from_pc.baseline #11' to compute new, fixed, and outstanding issues
12:24:12 [MSBuild NX32 Release] Issues delta (vs. reference build): outstanding: 156, new: 0, fixed: 0
12:24:12 [MSBuild NX32 Release] No quality gates have been set - skipping
12:24:12 [MSBuild NX32 Release] Health report is disabled - skipping
12:24:12 [MSBuild NX32 Release] Created analysis result for 156 issues (found 0 new issues, fixed 0 issues)
12:24:48 [TODO Task Scanner] Attaching ResultAction with ID 'todo-task-scanner' to run 'PRL/PRL.nx_dev_from_pc.BUILD #44'.
12:24:48 [TODO Task Scanner] No valid reference build found that meets the criteria (NO_JOB_FAILURE - SUCCESSFUL_QUALITY_GATE)
12:24:48 [TODO Task Scanner] All reported issues will be considered outstanding
12:24:48 [TODO Task Scanner] No quality gates have been set - skipping
12:24:48 [TODO Task Scanner] Health report is disabled - skipping
12:24:48 [TODO Task Scanner] Created analysis result for 450 issues (found 0 new issues, fixed 0 issues)
12:24:51 Email was triggered for: Always
12:24:51 Sending email for trigger: Always
12:24:54 Sending email to: <deleted>
12:24:56 Finished: SUCCESS

 

ullrich.hafner@gmail.com (JIRA)

ungelesen,
15.11.2019, 07:27:0215.11.19
an jenkinsc...@googlegroups.com

I see, there should be some

[TODO Task Scanner] [-ERROR-]

messages. Are you building (and scanning) on an agent?

plawniczuk@q-loc.com (JIRA)

ungelesen,
15.11.2019, 07:36:0515.11.19
an jenkinsc...@googlegroups.com

This is a multijob project. Building is done in a subjob on one agent, then at the end in multijob on another agent (both agents share the same machine and workspace path), scanning is performed.

plawniczuk@q-loc.com (JIRA)

ungelesen,
15.11.2019, 07:41:0215.11.19
an jenkinsc...@googlegroups.com
Piotr Ławniczuk edited a comment on Bug JENKINS-60172
This is a multijob project. Building is done in a subjob on one agent, then at the end in multijob on another agent (both agents share the same machine and , both jobs share the same custom workspace path), scanning is performed.

plawniczuk@q-loc.com (JIRA)

ungelesen,
15.11.2019, 07:42:0315.11.19
an jenkinsc...@googlegroups.com
Piotr Ławniczuk edited a comment on Bug JENKINS-60172
This is a multijob project. Building is done in a subjob on one agent, then at the end in multijob on another agent (both scanning is performed. Bboth agents share the same machine, both jobs share the same custom workspace path ), scanning is performed .

plawniczuk@q-loc.com (JIRA)

ungelesen,
15.11.2019, 07:42:0515.11.19
an jenkinsc...@googlegroups.com
Piotr Ławniczuk edited a comment on Bug JENKINS-60172
This is a multijob project. Building is done in a subjob on one agent, then at the end in multijob on another agent scanning is performed. Bboth Both agents share the same machine, both jobs share the same custom workspace path.

ullrich.hafner@gmail.com (JIRA)

ungelesen,
15.11.2019, 09:11:0415.11.19
an jenkinsc...@googlegroups.com

Is this a specific plugin required for this job? Is there a separate console log available for the subjob?

plawniczuk@q-loc.com (JIRA)

ungelesen,
15.11.2019, 10:10:0215.11.19
an jenkinsc...@googlegroups.com

This is standard Jenkins Multijob plugin. Parsing for 'MSBuild NX32 Release' is done from log file, not from console.

ullrich.hafner@gmail.com (JIRA)

ungelesen,
04.03.2020, 16:23:0204.03.20
an jenkinsc...@googlegroups.com
Change By: Ulli Hafner
Status: Open Fixed but Unreleased
Resolution: Fixed
Released As: 8.0.0
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

ullrich.hafner@gmail.com (JIRA)

ungelesen,
04.03.2020, 16:24:0404.03.20
an jenkinsc...@googlegroups.com
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten