summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/migrations
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-07-15 19:31:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-23 20:06:58 +0100
commit1b9175af3fabf12af80c8446af94078afd0832ed (patch)
tree180743528e824556bb21672826971cb7f1c36538 /bitbake/lib/toaster/bldcontrol/migrations
parent6e71c276b582135228419d95174b7e7784d496b2 (diff)
downloadpoky-1b9175af3fabf12af80c8446af94078afd0832ed.tar.gz
bitbake: toaster: properly set layers when running a build
This patch enables the localhost build controller to properly set the layers before the build runs. It creates the checkout directories under BuildEnvironment sourcedir directory, and runs the build in the buildir directory. Build launch errors are tracked in the newly added BRError table. These are different from build errors, in the sense that the build can't start due to these errors. (Bitbake rev: 1868d5635b517e0fe1b874674ea7a78910b26e2e) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/migrations')
-rw-r--r--bitbake/lib/toaster/bldcontrol/migrations/0005_auto__add_brerror.py112
1 files changed, 112 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/migrations/0005_auto__add_brerror.py b/bitbake/lib/toaster/bldcontrol/migrations/0005_auto__add_brerror.py
new file mode 100644
index 0000000000..98aeb41ceb
--- /dev/null
+++ b/bitbake/lib/toaster/bldcontrol/migrations/0005_auto__add_brerror.py
@@ -0,0 +1,112 @@
1# -*- coding: utf-8 -*-
2from south.utils import datetime_utils as datetime
3from south.db import db
4from south.v2 import SchemaMigration
5from django.db import models
6
7
8class Migration(SchemaMigration):
9
10 def forwards(self, orm):
11 # Adding model 'BRError'
12 db.create_table(u'bldcontrol_brerror', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('req', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['bldcontrol.BuildRequest'])),
15 ('errtype', self.gf('django.db.models.fields.CharField')(max_length=100)),
16 ('errmsg', self.gf('django.db.models.fields.TextField')()),
17 ('traceback', self.gf('django.db.models.fields.TextField')()),
18 ))
19 db.send_create_signal(u'bldcontrol', ['BRError'])
20
21
22 def backwards(self, orm):
23 # Deleting model 'BRError'
24 db.delete_table(u'bldcontrol_brerror')
25
26
27 models = {
28 u'bldcontrol.brerror': {
29 'Meta': {'object_name': 'BRError'},
30 'errmsg': ('django.db.models.fields.TextField', [], {}),
31 'errtype': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
32 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33 'req': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['bldcontrol.BuildRequest']"}),
34 'traceback': ('django.db.models.fields.TextField', [], {})
35 },
36 u'bldcontrol.brlayer': {
37 'Meta': {'object_name': 'BRLayer'},
38 'commit': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
39 'dirpath': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
40 'giturl': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
41 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
43 'req': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['bldcontrol.BuildRequest']"})
44 },
45 u'bldcontrol.brtarget': {
46 'Meta': {'object_name': 'BRTarget'},
47 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48 'req': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['bldcontrol.BuildRequest']"}),
49 'target': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50 'task': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'})
51 },
52 u'bldcontrol.brvariable': {
53 'Meta': {'object_name': 'BRVariable'},
54 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
56 'req': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['bldcontrol.BuildRequest']"}),
57 'value': ('django.db.models.fields.TextField', [], {'blank': 'True'})
58 },
59 u'bldcontrol.buildenvironment': {
60 'Meta': {'object_name': 'BuildEnvironment'},
61 'address': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
62 'bbaddress': ('django.db.models.fields.CharField', [], {'max_length': '254', 'blank': 'True'}),
63 'bbport': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
64 'bbstate': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
65 'bbtoken': ('django.db.models.fields.CharField', [], {'max_length': '126', 'blank': 'True'}),
66 'betype': ('django.db.models.fields.IntegerField', [], {}),
67 'builddir': ('django.db.models.fields.CharField', [], {'max_length': '512', 'blank': 'True'}),
68 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
69 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70 'lock': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
71 'sourcedir': ('django.db.models.fields.CharField', [], {'max_length': '512', 'blank': 'True'}),
72 'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
73 },
74 u'bldcontrol.buildrequest': {
75 'Meta': {'object_name': 'BuildRequest'},
76 'build': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Build']", 'null': 'True'}),
77 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
78 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Project']"}),
80 'state': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
81 'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
82 },
83 u'orm.build': {
84 'Meta': {'object_name': 'Build'},
85 'bitbake_version': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
86 'build_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
87 'completed_on': ('django.db.models.fields.DateTimeField', [], {}),
88 'cooker_log_path': ('django.db.models.fields.CharField', [], {'max_length': '500'}),
89 'distro': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
90 'distro_version': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
91 'errors_no': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
92 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93 'machine': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
94 'outcome': ('django.db.models.fields.IntegerField', [], {'default': '2'}),
95 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Project']", 'null': 'True'}),
96 'started_on': ('django.db.models.fields.DateTimeField', [], {}),
97 'timespent': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
98 'warnings_no': ('django.db.models.fields.IntegerField', [], {'default': '0'})
99 },
100 u'orm.project': {
101 'Meta': {'object_name': 'Project'},
102 'branch': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
103 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
104 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
106 'short_description': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
107 'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
108 'user_id': ('django.db.models.fields.IntegerField', [], {'null': 'True'})
109 }
110 }
111
112 complete_apps = ['bldcontrol'] \ No newline at end of file