STAMP-project/dspot

DSpot Kubernetes support: it can't stop gracefully due to script typos

danzone opened this issue · 0 comments

Characteristics

  • Issue Type: bug
  • Reproducibility: [always, sometimes, random]
  • Severity: block
  • Tool/Service/Component: DSpot 2.2.0 candidate release
  • Execution Environment: Linux Ubuntu 19.10
  • Reporter: Daniele Gagliardi, daniele.gagliardi@eng.it

Description

Once fixed #867, the whole process can't stop gracefully due to a couple of typos in Dpipeline_worker.py (executed inside dspot-pipeline Docker container) which prevent to print warning message in output console

Steps to reproduce

Having setup everything according to PR #840, the execution ends with following error stacktrace:

Loading /root/target/dspot/TestResult.ser
[INFO] Assertion amplification: 2 test method(s) has been successfully amplified.
[INFO] 2 amplified test methods has been selected to be kept. (global: 2)
[INFO] elapsedTime 1298
[INFO] Amplification succeed.
[INFO] Elapsed time 1520 ms
[INFO] 
Amplification results with 2 new tests.
[INFO] Writing report in target/dspot/output/report.txt
[INFO] DSpot amplified your test suite without errors. (no errors report will be outputted)
[INFO] The amplification ends up with 2 amplified test methods over 1 test classes.
[INFO] Print apps.AppTest.java with 2 amplified test cases in target/dspot/output
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:31 min
[INFO] Finished at: 2019-09-16T14:06:03Z
[INFO] ------------------------------------------------------------------------

Exception in thread StompReceiverThread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/stomp/transport.py", line 349, in __receiver_loop
    self.process_frame(f, frame)
  File "/usr/local/lib/python2.7/dist-packages/stomp/transport.py", line 192, in process_frame
    self.notify(frame_type, f.headers, f.body)
  File "/usr/local/lib/python2.7/dist-packages/stomp/transport.py", line 248, in notify
    rtn = notify_func(headers, body)
  File "Dpipeline_worker.py", line 349, in on_message
    if not run_Dspot_preconfig(POM_FILE,reposlug,timecap):
  File "Dpipeline_worker.py", line 162, in run_Dspot_preconfig
    logging.waring("Nothing will be submit since mongodb is not connected")
AttributeError: 'module' object has no attribute 'waring'

Properties file
project=.
src=src/main/java/
testSrc=src/test/java/
Command Line / Options
java -jar target/dspot-USED-VERSION-jar-with-dependencies.jar \
-p myPropertiesFile.properties

Other files and URLs

Relationships

Help on issue template

Preview to follow the link or open file .github/ISSUE_DOC.md