| Summary: | Builds in progress should not show in the project builds table | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Toaster | Reporter: | Belen Barros Pena <belen.barros.pena> | ||||
| Component: | toaster | Assignee: | Elliot Smith <elliot.smith> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Alexandru Roman <alexandru.costinx.roman> | ||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | alexandru.costinx.roman, belen.barros.pena, jessica.zhang, stanciux.mihail | ||||
| Version: | 1.8 | ||||||
| Target Milestone: | 2.0 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Belen Barros Pena
2015-09-01 15:47:38 UTC
Submitted branch for review on mailing list: elliot/toaster/hide_builds-8236 Created attachment 2720 [details] Traceback for error when viewing command lines builds with build in progress Brian Avery reviewed and found this bug: If you start toaster in analysis mode and navigate as follows: all projects -> Command line builds while a recipe is building (for instance core-image-minimal) you get an error: https://www.dropbox.com/s/gielruub058azug/Screenshot%202015-09-08%2020.19.03.png?dl=0 if you wait until the build is done, you do not get an error. Error traceback: Environment: Request Method: GET Request URL: http://192.168.168.66:8000/toastergui/project/1/ Django Version: 1.6 Python Version: 2.7.6 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.staticfiles', 'django.contrib.humanize', 'bldcollector', 'toastermain', 'south', 'toastergui', 'bldcontrol', 'orm') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 114. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/big/src/intel/myBugs/poky/bitbake/lib/toaster/toastergui/views.py" in returned_wrapper 150. context = view(request, *args, **kwargs) File "/big/src/intel/myBugs/poky/bitbake/lib/toaster/toastergui/views.py" in project 2273. "builds" : _project_recent_build_list(prj), File "/big/src/intel/myBugs/poky/bitbake/lib/toaster/toastergui/views.py" in _project_recent_build_list 93. "status": x.get_current_status(), File "/big/src/intel/myBugs/poky/bitbake/lib/toaster/orm/models.py" in get_current_status 354. if self.outcome == Build.IN_PROGRESS and self.buildrequest.state != BuildRequest.REQ_INPROGRESS: File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/models/fields/related.py" in __get__ 197. rel_obj = self.get_queryset(instance=instance).get(**params) File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/models/query.py" in get 301. num = len(clone) File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/models/query.py" in __len__ 77. self._fetch_all() File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/models/query.py" in _fetch_all 854. self._result_cache = list(self.iterator()) File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/models/query.py" in iterator 220. for row in compiler.results_iter(): File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in results_iter 710. for rows in self.execute_sql(MULTI): File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql 781. cursor.execute(sql, params) File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute 69. return super(CursorDebugWrapper, self).execute(sql, params) File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute 53. return self.cursor.execute(sql, params) File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/utils.py" in __exit__ 99. six.reraise(dj_exc_type, dj_exc_value, traceback) File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute 53. return self.cursor.execute(sql, params) File "/big/src/intel/yocto-builds/TOASTER/myBugs/t-myBugs/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py" in execute 450. return Database.Cursor.execute(self, query, params) Exception Type: OperationalError at /toastergui/project/1/ Exception Value: no such table: bldcontrol_buildrequest Merged into bitbake master. Verified on master: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1 |