Project

General

Profile

Bug #9067

Klever fails with corrupted

Added by Pavel Andrianov about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Immediate
Category:
Results processing
Target version:
Start date:
07/05/2018
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

An inner component fails while processing witnesses and nevertheless Klever prepares an unsafe report. As there are no witnesses then it fails with 'corrupted' and stops the launch completely.

[Reporter] Raise exception:
Traceback (most recent call last):
File "/home/debian/klever-inst/klever/core/core/components.py", line 428, in run
self.main()
File "/home/debian/klever-inst/klever/core/core/components.py", line 332, in callbacks_caller
ret = attr(*args, **kwargs)
File "/home/debian/klever-inst/klever/core/core/core.py", line 304, in send_reports
self.session.upload_report(report_file, report_file_archives)
File "/home/debian/klever-inst/klever/core/core/session.py", line 149, in upload_report
self.__upload_archive('reports/upload/', {'report': report}, archives)
File "/home/debian/klever-inst/klever/core/core/session.py", line 187, in __upload_archive
for archive in archives], stream=True)
File "/home/debian/klever-inst/klever/core/core/session.py", line 93, in __request
'Got error "{0}" when send "{1}" request to "{2}"'.format(self.error, method, url))
core.session.BridgeError: Got error "There are no error traces in report" when send "POST" request to "http://localhost:8998/reports/upload/"
Traceback (most recent call last):
File "/home/debian/klever-inst/klever/core/core/core.py", line 91, in main
'coverage_finished': multiprocessing.Manager().dict()
File "/home/debian/klever-inst/klever/core/core/job.py", line 110, in start_jobs
core.components.launch_workers(core_obj.logger, [job], subcomponents + [core_obj.uploading_reports_process])
File "/home/debian/klever-inst/klever/core/core/components.py", line 199, in launch_workers
check_components(logger, monitoring_list)
File "/home/debian/klever-inst/klever/core/core/components.py", line 304, in check_components
mc.join()
File "/home/debian/klever-inst/klever/core/core/components.py", line 332, in callbacks_caller
ret = attr(*args, **kwargs)
File "/home/debian/klever-inst/klever/core/core/components.py", line 546, in join
raise ComponentError('Component "{0}" failed'.format(self.name))
core.components.ComponentError: Component "Reporter" failed


Related issues

Related to Klever - Feature #8705: Change the way of reporting unsafe reportsClosed02/06/2018

Actions

History

#1

Updated by Evgeny Novikov about 1 year ago

  • Priority changed from Normal to Immediate
  • Assignee set to Evgeny Novikov
  • Category set to Results processing

This is a crucial regression of Klever 1.0 introduced when implementing #8705 but was not detected during stabilization. So, the bug fix will go into branch v1.0-stable in addition to master.

#2

Updated by Evgeny Novikov about 1 year ago

  • Related to Feature #8705: Change the way of reporting unsafe reports added
#3

Updated by Evgeny Novikov about 1 year ago

  • Target version set to 1.1
  • Status changed from New to Resolved

I trivially fixed the issue in branch fix-9067. Wait for testing results.

#4

Updated by Evgeny Novikov about 1 year ago

  • Status changed from Resolved to Closed

Tests passed. Moreover, Pavel reported that a job that has status Corrupted before now finishes well. I merged the branch to master in c116c448 and backported the bug fix to branch v1.0-stable.

Also available in: Atom PDF