[LNT] Error while report submission to lnt server
| Bugzilla Link | 30399 |
| Resolution | FIXED |
| Resolved on | Mar 30, 2017 17:08 |
| Version | unspecified |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @cmatthew |
Extended Description
I am trying to setup lnt server for llvm test-suite, specifically to see profile information whenever there is a regression. All my setup works fine i.e. results are submitted and are visible from the web browser etc.. except below error is thrown while doing submission and perf data is not visible/uploaded.
Testing Time: 0.44s Expected Passes : 11 2016-09-15 09:54:01: submitting result to '/root/santosh/myperfdb/' No handlers could be found for logger "lnt.server.db.migrate" 2016-09-15 05:54:23 INFO: Queuing background job to process fieldchanges 10006 2016-09-15 05:54:23 INFO: Starting workers 2016-09-15 05:54:23 INFO: Job queue empty. 2016-09-15 05:54:23 INFO: Successfully created db_default/v4/nts/3 2016-09-15 05:54:23 INFO: Running async wrapper: post_submit_tasks 10541 2016-09-15 05:54:23 ERROR: Subprocess failed with:Traceback (most recent call last): File "/root/santosh/lnt/lnt/util/async_ops.py", line 125, in async_wrapper _v4db = current_app.old_config.get_database(ts_args['db']) File "/root/santosh/mysandbox/lib/python2.7/site-packages/Werkzeug-0.9.4-py2.7.egg/werkzeug/local.py", line 338, in getattr return getattr(self._get_current_object(), name) File "/root/santosh/mysandbox/lib/python2.7/site-packages/Werkzeug-0.9.4-py2.7.egg/werkzeug/local.py", line 297, in _get_current_object return self.__local() File "/root/santosh/mysandbox/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/globals.py", line 34, in _find_app raise RuntimeError('working outside of application context') RuntimeError: working outside of application context
Importing 'report.json' Import succeeded.
My runtest command looks like this: export OPT=-O3;export RONO=61;~/santosh/mysandbox/bin/lnt runtest test-suite --submit ~/santosh/myperfdb/ --cmake-cache=Release --run-order=ro_$RONO --cflags=$OPT --cxxflags=$OPT --use-lit=/local/home/qa/idcfsmnt/santosh/LLVM/staging/llvm/utils/lit/lit.py --sandbox ~/santosh/lnttestwk --cc /home/qa_home/santosh/LLVM/trunk/install/bin/clang --test-suite $PWD/llvm-test-suite --only-test=SingleSource/Benchmarks/Stanford -j 1
This issue was caused by us using something from the flask app, when the LNT was run in client-only mode.
To fix, we now pass DB info directly into the workers.
r299139
I'll try and take a look at this one soon. It seems to have hit in a few different places.
I'll look at this.
Hi Chris, Any update on this issue?
I'll look at this.
assigned to @cmatthew