"Song, Elen" Elen.Song@atmel.com writes:
Hi Antonio:
Thanks for your last support I have another question about bundle streams When I fulfill a job and going to find result in bundle streams I found this error:
Cause
null value in column "_order" violates not-null constraint Deserialization failure traceback
Traceback (most recent call last): File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/dashboard_app/models.py", line 497, in deserializeself._do_deserialize(prefer_evolution) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/dashboard_app/models.py", line 518, in _do_deserializehelper.deserialize(self,prefer_evolution) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/dashboard_app/helpers.py", line 801, in deserializeimporter().import_document(s_bundle,doc) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/dashboard_app/helpers.py", line 64, in import_documentself._import_document_with_transaction(s_bundle,doc) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/django/db/transaction.py", line 209, in innerreturnfunc(*args,**kwargs) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/dashboard_app/helpers.py", line 106, in _import_document_with_transactionself._import_document(s_bundle,doc) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/dashboard_app/helpers.py", line 110, in _import_documentself._import_test_run(c_test_run,s_bundle) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/dashboard_app/helpers.py", line 152, in _import_test_runself._import_test_results(c_test_run,s_test_run) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/dashboard_app/helpers.py", line 391, in _import_test_resultsself._import_test_results_pgsql(c_test_results,s_test_run) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/dashboard_app/helpers.py", line 365, in _import_test_results_pgsql""" % (s_test_run.id, s_test_run.test.id)) File "/srv/lava/instances/testinstance/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in executereturnself.cursor.execute(query,args)IntegrityError: null value in column "_order" violates not-null constraint
I don't how it occur, I have do some change in lava-dispatcher to adapt to my own board And I use lava-deployment-tool-2012-06 The requirement is:
Lava-server < 0.16 Lava-tool < 0.6 Lava-scheduler < 0.2 Lava-scheduler-tool Lava-dashboard < 0.18 Lava-dashboard-tool Lava-dispatcher < 0.15 Simplejson < 2.5 Keyring
I can not use the latest version because it change too much for me to merge change of lava-dispatch to latest Is there any suggestion where problem may occur?
It's hard to help support such an old version of the code (maybe you should try to contribute support of your board to trunk, so it can be maintained going forwards?) but for me, _order defaults to 0 in postgres:
lava-dev=# \d dashboard_app_testresult Table "public.dashboard_app_testresult" Column | Type | Modifiers ----------------+--------------------------+----------------------------------------------------------------------- test_run_id | integer | not null _order | integer | not null default 0 ...
Does it not for you?
(I also don't know what the _order field is for, it seems to be something added by Django...)
Cheers, mwh