1 | COMMENT ON COLUMN SystemLog.tsCreated IS
|
---|
2 | 'When this was logged.';
|
---|
3 |
|
---|
4 |
|
---|
5 | COMMENT ON COLUMN SystemLog.sEvent IS
|
---|
6 | 'The event type.
|
---|
7 | This is a 8 character string identifier so that we don''t need to change
|
---|
8 | some enum type everytime we introduce a new event type.';
|
---|
9 |
|
---|
10 |
|
---|
11 | COMMENT ON COLUMN SystemLog.sLogText IS
|
---|
12 | 'The log text.';
|
---|
13 |
|
---|
14 |
|
---|
15 | COMMENT ON TABLE Users IS
|
---|
16 | 'Test manager users.
|
---|
17 |
|
---|
18 | This is mainly for doing simple access checks before permitting access to
|
---|
19 | the test manager. This needs to be coordinated with
|
---|
20 | apache/ldap/Oracle-Single-Sign-On.
|
---|
21 |
|
---|
22 | The main purpose, though, is for tracing who changed the test config and
|
---|
23 | analysis data.
|
---|
24 |
|
---|
25 | @remarks This table stores history. Never update or delete anything. The
|
---|
26 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
27 | current_timestamp.';
|
---|
28 |
|
---|
29 |
|
---|
30 | COMMENT ON COLUMN Users.tsEffective IS
|
---|
31 | 'When this row starts taking effect (inclusive).';
|
---|
32 |
|
---|
33 |
|
---|
34 | COMMENT ON COLUMN Users.tsExpire IS
|
---|
35 | 'When this row stops being tsEffective (exclusive).';
|
---|
36 |
|
---|
37 |
|
---|
38 | COMMENT ON COLUMN Users.uidAuthor IS
|
---|
39 | 'The user id of the one who created/modified this entry.
|
---|
40 | Non-unique foreign key: Users(uid)';
|
---|
41 |
|
---|
42 |
|
---|
43 | COMMENT ON COLUMN Users.sUsername IS
|
---|
44 | 'User name.';
|
---|
45 |
|
---|
46 |
|
---|
47 | COMMENT ON COLUMN Users.sEmail IS
|
---|
48 | 'The email address of the user.';
|
---|
49 |
|
---|
50 |
|
---|
51 | COMMENT ON COLUMN Users.sFullName IS
|
---|
52 | 'The full name.';
|
---|
53 |
|
---|
54 |
|
---|
55 | COMMENT ON COLUMN Users.sLoginName IS
|
---|
56 | 'The login name used by apache.';
|
---|
57 |
|
---|
58 |
|
---|
59 | COMMENT ON TABLE GlobalResources IS
|
---|
60 | 'Global resource configuration.
|
---|
61 |
|
---|
62 | For example an iSCSI target.
|
---|
63 |
|
---|
64 | @remarks This table stores history. Never update or delete anything. The
|
---|
65 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
66 | current_timestamp.';
|
---|
67 |
|
---|
68 |
|
---|
69 | COMMENT ON COLUMN GlobalResources.tsEffective IS
|
---|
70 | 'When this row starts taking effect (inclusive).';
|
---|
71 |
|
---|
72 |
|
---|
73 | COMMENT ON COLUMN GlobalResources.tsExpire IS
|
---|
74 | 'When this row stops being tsEffective (exclusive).';
|
---|
75 |
|
---|
76 |
|
---|
77 | COMMENT ON COLUMN GlobalResources.uidAuthor IS
|
---|
78 | 'The user id of the one who created/modified this entry.
|
---|
79 | Non-unique foreign key: Users(uid)';
|
---|
80 |
|
---|
81 |
|
---|
82 | COMMENT ON COLUMN GlobalResources.sName IS
|
---|
83 | 'The name of the resource.';
|
---|
84 |
|
---|
85 |
|
---|
86 | COMMENT ON COLUMN GlobalResources.sDescription IS
|
---|
87 | 'Optional resource description.';
|
---|
88 |
|
---|
89 |
|
---|
90 | COMMENT ON COLUMN GlobalResources.fEnabled IS
|
---|
91 | 'Indicates whether this resource is currently enabled (online).';
|
---|
92 |
|
---|
93 |
|
---|
94 | COMMENT ON TABLE BuildSources IS
|
---|
95 | 'Build sources.
|
---|
96 |
|
---|
97 | This is used by a scheduling group to select builds and the default
|
---|
98 | Validation Kit from the Builds table.
|
---|
99 |
|
---|
100 | @remarks This table stores history. Never update or delete anything. The
|
---|
101 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
102 | current_timestamp.
|
---|
103 |
|
---|
104 | @todo Any better way of representing this so we could more easily
|
---|
105 | join/whatever when searching for builds?';
|
---|
106 |
|
---|
107 |
|
---|
108 | COMMENT ON COLUMN BuildSources.tsEffective IS
|
---|
109 | 'When this row starts taking effect (inclusive).';
|
---|
110 |
|
---|
111 |
|
---|
112 | COMMENT ON COLUMN BuildSources.tsExpire IS
|
---|
113 | 'When this row stops being tsEffective (exclusive).';
|
---|
114 |
|
---|
115 |
|
---|
116 | COMMENT ON COLUMN BuildSources.uidAuthor IS
|
---|
117 | 'The user id of the one who created/modified this entry.
|
---|
118 | Non-unique foreign key: Users(uid)';
|
---|
119 |
|
---|
120 |
|
---|
121 | COMMENT ON COLUMN BuildSources.sName IS
|
---|
122 | 'The name of the build source.';
|
---|
123 |
|
---|
124 |
|
---|
125 | COMMENT ON COLUMN BuildSources.sDescription IS
|
---|
126 | 'Description.';
|
---|
127 |
|
---|
128 |
|
---|
129 | COMMENT ON COLUMN BuildSources.sProduct IS
|
---|
130 | 'Which product.
|
---|
131 | ASSUME that it is okay to limit a build source to a single product.';
|
---|
132 |
|
---|
133 |
|
---|
134 | COMMENT ON COLUMN BuildSources.sBranch IS
|
---|
135 | 'Which branch.
|
---|
136 | ASSUME that it is okay to limit a build source to a branch.';
|
---|
137 |
|
---|
138 |
|
---|
139 | COMMENT ON COLUMN BuildSources.asTypes IS
|
---|
140 | 'Build types to include, all matches if NULL.
|
---|
141 | @todo Weighting the types would be nice in a later version.';
|
---|
142 |
|
---|
143 |
|
---|
144 | COMMENT ON COLUMN BuildSources.asOsArches IS
|
---|
145 | 'Array of the ''sOs.sCpuArch'' to match, all matches if NULL.
|
---|
146 | See KBUILD_OSES in kBuild for a list of standard target OSes, and
|
---|
147 | KBUILD_ARCHES for a list of standard architectures.
|
---|
148 |
|
---|
149 | @remarks See marks on ''os-agnostic'' and ''noarch'' in BuildCategories.';
|
---|
150 |
|
---|
151 |
|
---|
152 | COMMENT ON COLUMN BuildSources.iFirstRevision IS
|
---|
153 | 'The first subversion tree revision to match, no lower limit if NULL.';
|
---|
154 |
|
---|
155 |
|
---|
156 | COMMENT ON COLUMN BuildSources.iLastRevision IS
|
---|
157 | 'The last subversion tree revision to match, no upper limit if NULL.';
|
---|
158 |
|
---|
159 |
|
---|
160 | COMMENT ON COLUMN BuildSources.cSecMaxAge IS
|
---|
161 | 'The maximum age of the builds in seconds, unlimited if NULL.';
|
---|
162 |
|
---|
163 |
|
---|
164 | COMMENT ON TABLE TestCases IS
|
---|
165 | 'Test case configuration.
|
---|
166 |
|
---|
167 | @remarks This table stores history. Never update or delete anything. The
|
---|
168 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
169 | current_timestamp.';
|
---|
170 |
|
---|
171 |
|
---|
172 | COMMENT ON COLUMN TestCases.tsEffective IS
|
---|
173 | 'When this row starts taking effect (inclusive).';
|
---|
174 |
|
---|
175 |
|
---|
176 | COMMENT ON COLUMN TestCases.tsExpire IS
|
---|
177 | 'When this row stops being tsEffective (exclusive).';
|
---|
178 |
|
---|
179 |
|
---|
180 | COMMENT ON COLUMN TestCases.uidAuthor IS
|
---|
181 | 'The user id of the one who created/modified this entry.
|
---|
182 | Non-unique foreign key: Users(uid)';
|
---|
183 |
|
---|
184 |
|
---|
185 | COMMENT ON COLUMN TestCases.sName IS
|
---|
186 | 'The name of the test case.';
|
---|
187 |
|
---|
188 |
|
---|
189 | COMMENT ON COLUMN TestCases.sDescription IS
|
---|
190 | 'Optional test case description.';
|
---|
191 |
|
---|
192 |
|
---|
193 | COMMENT ON COLUMN TestCases.fEnabled IS
|
---|
194 | 'Indicates whether this test case is currently enabled.';
|
---|
195 |
|
---|
196 |
|
---|
197 | COMMENT ON COLUMN TestCases.cSecTimeout IS
|
---|
198 | 'Default test case timeout given in seconds.';
|
---|
199 |
|
---|
200 |
|
---|
201 | COMMENT ON COLUMN TestCases.sTestBoxReqExpr IS
|
---|
202 | 'Default TestBox requirement expression (python boolean expression).
|
---|
203 | All the scheduler properties are available for use with the same names
|
---|
204 | as in that table.
|
---|
205 | If NULL everything matches.';
|
---|
206 |
|
---|
207 |
|
---|
208 | COMMENT ON COLUMN TestCases.sBuildReqExpr IS
|
---|
209 | 'Default build requirement expression (python boolean expression).
|
---|
210 | The following build properties are available: sProduct, sBranch,
|
---|
211 | sType, asOsArches, sVersion, iRevision, uidAuthor and idBuild.
|
---|
212 | If NULL everything matches.';
|
---|
213 |
|
---|
214 |
|
---|
215 | COMMENT ON COLUMN TestCases.sBaseCmd IS
|
---|
216 | 'The base command.
|
---|
217 | String suitable for executing in bourne shell with space as separator
|
---|
218 | (IFS). References to @BUILD_BINARIES@ will be replaced WITH the content
|
---|
219 | of the Builds(sBinaries) field.';
|
---|
220 |
|
---|
221 |
|
---|
222 | COMMENT ON COLUMN TestCases.sTestSuiteZips IS
|
---|
223 | 'Comma separated list of test suite zips (or tars) that the testbox will
|
---|
224 | need to download and expand prior to testing.
|
---|
225 | If NULL the current test suite of the scheduling group will be used (the
|
---|
226 | scheduling group will have an optional test suite build queue associated
|
---|
227 | with it). The current test suite can also be referenced by
|
---|
228 | @VALIDATIONKIT_ZIP@ in case more downloads are required. Files may also be
|
---|
229 | uploaded to the test manager download area, in which case the
|
---|
230 | @DOWNLOAD_BASE_URL@ prefix can be used to refer to this area.';
|
---|
231 |
|
---|
232 |
|
---|
233 | COMMENT ON TABLE TestCaseArgs IS
|
---|
234 | 'Test case argument list variations.
|
---|
235 |
|
---|
236 | For example, we have a test case that does a set of tests on a virtual
|
---|
237 | machine. To get better code/feature coverage of this testcase we wish to
|
---|
238 | run it with different guest hardware configuration. The test case may do
|
---|
239 | the same stuff, but the guest OS as well as the VMM may react differently to
|
---|
240 | the hardware configurations and uncover issues in the VMM, device emulation
|
---|
241 | or other places.
|
---|
242 |
|
---|
243 | Typical hardware variations are:
|
---|
244 | - guest memory size (RAM),
|
---|
245 | - guest video memory size (VRAM),
|
---|
246 | - virtual CPUs / cores / threads,
|
---|
247 | - virtual chipset
|
---|
248 | - virtual network interface card (NIC)
|
---|
249 | - USB 1.1, USB 2.0, no USB
|
---|
250 |
|
---|
251 | The TM web UI will help the user create a reasonable set of permutations
|
---|
252 | of these parameters, the user specifies a maximum and the TM uses certain
|
---|
253 | rules together with random selection to generate the desired number. The
|
---|
254 | UI will also help suggest fitting testbox requirements according to the
|
---|
255 | RAM/VRAM sizes and the virtual CPU counts. The user may then make
|
---|
256 | adjustments to the suggestions before commit them.
|
---|
257 |
|
---|
258 | Alternatively, the user may also enter all the permutations without any
|
---|
259 | help from the UI.
|
---|
260 |
|
---|
261 | Note! All test cases has at least one entry in this table, even if it is
|
---|
262 | empty, because testbox requirements are specified thru this.
|
---|
263 |
|
---|
264 | Querying the valid parameter lists for a testase this way:
|
---|
265 | SELECT * ... WHERE idTestCase = TestCases.idTestCase
|
---|
266 | AND tsExpire > <when>
|
---|
267 | AND tsEffective <= <when>;
|
---|
268 |
|
---|
269 | Querying the valid parameter list for the latest generation can be
|
---|
270 | simplified by just checking tsExpire date:
|
---|
271 | SELECT * ... WHERE idTestCase = TestCases.idTestCase
|
---|
272 | AND tsExpire == TIMESTAMP WITH TIME ZONE ''infinity'';
|
---|
273 |
|
---|
274 | @remarks This table stores history. Never update or delete anything. The
|
---|
275 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
276 | current_timestamp.';
|
---|
277 |
|
---|
278 |
|
---|
279 | COMMENT ON COLUMN TestCaseArgs.tsEffective IS
|
---|
280 | 'When this row starts taking effect (inclusive).';
|
---|
281 |
|
---|
282 |
|
---|
283 | COMMENT ON COLUMN TestCaseArgs.tsExpire IS
|
---|
284 | 'When this row stops being tsEffective (exclusive).';
|
---|
285 |
|
---|
286 |
|
---|
287 | COMMENT ON COLUMN TestCaseArgs.uidAuthor IS
|
---|
288 | 'The user id of the one who created/modified this entry.
|
---|
289 | Non-unique foreign key: Users(uid)';
|
---|
290 |
|
---|
291 |
|
---|
292 | COMMENT ON COLUMN TestCaseArgs.sArgs IS
|
---|
293 | 'The additional arguments.
|
---|
294 | String suitable for bourne shell style argument parsing with space as
|
---|
295 | separator (IFS). References to @BUILD_BINARIES@ will be replaced with
|
---|
296 | the content of the Builds(sBinaries) field.';
|
---|
297 |
|
---|
298 |
|
---|
299 | COMMENT ON COLUMN TestCaseArgs.cSecTimeout IS
|
---|
300 | 'Optional test case timeout given in seconds.
|
---|
301 | If NULL, the TestCases.cSecTimeout field is used instead.';
|
---|
302 |
|
---|
303 |
|
---|
304 | COMMENT ON COLUMN TestCaseArgs.sTestBoxReqExpr IS
|
---|
305 | 'Additional TestBox requirement expression (python boolean expression).
|
---|
306 | All the scheduler properties are available for use with the same names
|
---|
307 | as in that table. This is checked after first checking the requirements
|
---|
308 | in the TestCases.sTestBoxReqExpr field.';
|
---|
309 |
|
---|
310 |
|
---|
311 | COMMENT ON COLUMN TestCaseArgs.sBuildReqExpr IS
|
---|
312 | 'Additional build requirement expression (python boolean expression).
|
---|
313 | The following build properties are available: sProduct, sBranch,
|
---|
314 | sType, asOsArches, sVersion, iRevision, uidAuthor and idBuild. This is
|
---|
315 | checked after first checking the requirements in the
|
---|
316 | TestCases.sBuildReqExpr field.';
|
---|
317 |
|
---|
318 |
|
---|
319 | COMMENT ON COLUMN TestCaseArgs.cGangMembers IS
|
---|
320 | 'Number of testboxes required (gang scheduling).';
|
---|
321 |
|
---|
322 |
|
---|
323 | COMMENT ON INDEX TestCaseArgsLookupIdx IS
|
---|
324 | 'The arguments are part of the primary key for several reasons.
|
---|
325 | No duplicate argument lists (makes no sense - if you want to prioritize
|
---|
326 | argument lists, we add that explicitly). This may hopefully enable us
|
---|
327 | to more easily check coverage later on, even when the test case is
|
---|
328 | reconfigured with more/less permutations.';
|
---|
329 |
|
---|
330 |
|
---|
331 | COMMENT ON TABLE TestCaseDeps IS
|
---|
332 | 'Test case dependencies (N:M)
|
---|
333 |
|
---|
334 | This effect build selection. The build must have passed all runs of the
|
---|
335 | given prerequisite testcase (idTestCasePreReq) and executed at a minimum one
|
---|
336 | argument list variation.
|
---|
337 |
|
---|
338 | This should also affect scheduling order, if possible at least one
|
---|
339 | prerequisite testcase variation should be place before the specific testcase
|
---|
340 | in the scheduling queue.
|
---|
341 |
|
---|
342 | @remarks This table stores history. Never update or delete anything. The
|
---|
343 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
344 | current_timestamp. To select the currently valid entries use
|
---|
345 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
346 |
|
---|
347 |
|
---|
348 | COMMENT ON COLUMN TestCaseDeps.tsEffective IS
|
---|
349 | 'When this row starts taking effect (inclusive).';
|
---|
350 |
|
---|
351 |
|
---|
352 | COMMENT ON COLUMN TestCaseDeps.tsExpire IS
|
---|
353 | 'When this row stops being tsEffective (exclusive).';
|
---|
354 |
|
---|
355 |
|
---|
356 | COMMENT ON COLUMN TestCaseDeps.uidAuthor IS
|
---|
357 | 'The user id of the one who created/modified this entry.
|
---|
358 | Non-unique foreign key: Users(uid)';
|
---|
359 |
|
---|
360 |
|
---|
361 | COMMENT ON TABLE TestCaseGlobalRsrcDeps IS
|
---|
362 | 'Test case dependencies on global resources (N:M)
|
---|
363 |
|
---|
364 | @remarks This table stores history. Never update or delete anything. The
|
---|
365 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
366 | current_timestamp. To select the currently valid entries use
|
---|
367 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
368 |
|
---|
369 |
|
---|
370 | COMMENT ON COLUMN TestCaseGlobalRsrcDeps.tsEffective IS
|
---|
371 | 'When this row starts taking effect (inclusive).';
|
---|
372 |
|
---|
373 |
|
---|
374 | COMMENT ON COLUMN TestCaseGlobalRsrcDeps.tsExpire IS
|
---|
375 | 'When this row stops being tsEffective (exclusive).';
|
---|
376 |
|
---|
377 |
|
---|
378 | COMMENT ON COLUMN TestCaseGlobalRsrcDeps.uidAuthor IS
|
---|
379 | 'The user id of the one who created/modified this entry.
|
---|
380 | Non-unique foreign key: Users(uid)';
|
---|
381 |
|
---|
382 |
|
---|
383 | COMMENT ON TABLE TestGroups IS
|
---|
384 | 'Test Group - A collection of test cases.
|
---|
385 |
|
---|
386 | This is for simplifying test configuration by working with a few groups
|
---|
387 | instead of a herd of individual testcases. It may also be used for creating
|
---|
388 | test suites for certain areas (like guest additions) or tasks (like
|
---|
389 | performance measurements).
|
---|
390 |
|
---|
391 | A test case can be member of any number of test groups.
|
---|
392 |
|
---|
393 | @remarks This table stores history. Never update or delete anything. The
|
---|
394 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
395 | current_timestamp. To select the currently valid entries use
|
---|
396 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
397 |
|
---|
398 |
|
---|
399 | COMMENT ON COLUMN TestGroups.tsEffective IS
|
---|
400 | 'When this row starts taking effect (inclusive).';
|
---|
401 |
|
---|
402 |
|
---|
403 | COMMENT ON COLUMN TestGroups.tsExpire IS
|
---|
404 | 'When this row stops being tsEffective (exclusive).';
|
---|
405 |
|
---|
406 |
|
---|
407 | COMMENT ON COLUMN TestGroups.uidAuthor IS
|
---|
408 | 'The user id of the one who created/modified this entry.
|
---|
409 | Non-unique foreign key: Users(uid)';
|
---|
410 |
|
---|
411 |
|
---|
412 | COMMENT ON COLUMN TestGroups.sName IS
|
---|
413 | 'The name of the scheduling group.';
|
---|
414 |
|
---|
415 |
|
---|
416 | COMMENT ON COLUMN TestGroups.sDescription IS
|
---|
417 | 'Optional group description.';
|
---|
418 |
|
---|
419 |
|
---|
420 | COMMENT ON TABLE TestGroupMembers IS
|
---|
421 | 'The N:M relation ship between test case configurations and test groups.
|
---|
422 |
|
---|
423 | @remarks This table stores history. Never update or delete anything. The
|
---|
424 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
425 | current_timestamp. To select the currently valid entries use
|
---|
426 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
427 |
|
---|
428 |
|
---|
429 | COMMENT ON COLUMN TestGroupMembers.tsEffective IS
|
---|
430 | 'When this row starts taking effect (inclusive).';
|
---|
431 |
|
---|
432 |
|
---|
433 | COMMENT ON COLUMN TestGroupMembers.tsExpire IS
|
---|
434 | 'When this row stops being tsEffective (exclusive).';
|
---|
435 |
|
---|
436 |
|
---|
437 | COMMENT ON COLUMN TestGroupMembers.uidAuthor IS
|
---|
438 | 'The user id of the one who created/modified this entry.
|
---|
439 | Non-unique foreign key: Users(uid)';
|
---|
440 |
|
---|
441 |
|
---|
442 | COMMENT ON COLUMN TestGroupMembers.iSchedPriority IS
|
---|
443 | 'Test case scheduling priority.
|
---|
444 | Higher number causes the test case to be run more frequently.
|
---|
445 | @sa SchedGroupMembers.iSchedPriority
|
---|
446 | @todo Not sure we want to keep this...';
|
---|
447 |
|
---|
448 |
|
---|
449 | COMMENT ON TABLE SchedGroups IS
|
---|
450 | 'Scheduling group (aka. testbox partitioning) configuration.
|
---|
451 |
|
---|
452 | A testbox is associated with exactly one scheduling group. This association
|
---|
453 | can be changed, of course. If we (want to) retire a group which still has
|
---|
454 | testboxes associated with it, these will be moved to the ''default'' group.
|
---|
455 |
|
---|
456 | The TM web UI will make sure that a testbox is always in a group and that
|
---|
457 | the default group cannot be deleted.
|
---|
458 |
|
---|
459 | A scheduling group combines several things:
|
---|
460 | - A selection of builds to test (via idBuildSrc).
|
---|
461 | - A collection of test groups to test with (via SchedGroupMembers).
|
---|
462 | - A set of testboxes to test on (via TestBoxes.idSchedGroup).
|
---|
463 |
|
---|
464 | In additions there is an optional source of fresh test suite builds (think
|
---|
465 | VBoxTestSuite) as well as scheduling options.
|
---|
466 |
|
---|
467 | @remarks This table stores history. Never update or delete anything. The
|
---|
468 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
469 | current_timestamp. To select the currently valid entries use
|
---|
470 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
471 |
|
---|
472 |
|
---|
473 | COMMENT ON COLUMN SchedGroups.tsEffective IS
|
---|
474 | 'When this row starts taking effect (inclusive).';
|
---|
475 |
|
---|
476 |
|
---|
477 | COMMENT ON COLUMN SchedGroups.tsExpire IS
|
---|
478 | 'When this row stops being tsEffective (exclusive).';
|
---|
479 |
|
---|
480 |
|
---|
481 | COMMENT ON COLUMN SchedGroups.uidAuthor IS
|
---|
482 | 'The user id of the one who created/modified this entry.
|
---|
483 | Non-unique foreign key: Users(uid)
|
---|
484 | @note This is NULL for the default group.';
|
---|
485 |
|
---|
486 |
|
---|
487 | COMMENT ON COLUMN SchedGroups.sName IS
|
---|
488 | 'The name of the scheduling group.';
|
---|
489 |
|
---|
490 |
|
---|
491 | COMMENT ON COLUMN SchedGroups.sDescription IS
|
---|
492 | 'Optional group description.';
|
---|
493 |
|
---|
494 |
|
---|
495 | COMMENT ON COLUMN SchedGroups.fEnabled IS
|
---|
496 | 'Indicates whether this group is currently enabled.';
|
---|
497 |
|
---|
498 |
|
---|
499 | COMMENT ON COLUMN SchedGroups.enmScheduler IS
|
---|
500 | 'The scheduler to use.
|
---|
501 | This is for when we later desire different scheduling that the best
|
---|
502 | effort stuff provided by the initial implementation.';
|
---|
503 |
|
---|
504 |
|
---|
505 | COMMENT ON TABLE SchedGroupMembers IS
|
---|
506 | 'N:M relationship between scheduling groups and test groups.
|
---|
507 |
|
---|
508 | Several scheduling parameters are associated with this relationship.
|
---|
509 |
|
---|
510 | The test group dependency (idTestGroupPreReq) can be used in the same way as
|
---|
511 | TestCaseDeps.idTestCasePreReq, only here on test group level. This means it
|
---|
512 | affects the build selection. The builds needs to have passed all test runs
|
---|
513 | the prerequisite test group and done at least one argument variation of each
|
---|
514 | test case in it.
|
---|
515 |
|
---|
516 | @remarks This table stores history. Never update or delete anything. The
|
---|
517 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
518 | current_timestamp. To select the currently valid entries use
|
---|
519 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
520 |
|
---|
521 |
|
---|
522 | COMMENT ON COLUMN SchedGroupMembers.tsEffective IS
|
---|
523 | 'When this row starts taking effect (inclusive).';
|
---|
524 |
|
---|
525 |
|
---|
526 | COMMENT ON COLUMN SchedGroupMembers.tsExpire IS
|
---|
527 | 'When this row stops being tsEffective (exclusive).';
|
---|
528 |
|
---|
529 |
|
---|
530 | COMMENT ON COLUMN SchedGroupMembers.uidAuthor IS
|
---|
531 | 'The user id of the one who created/modified this entry.
|
---|
532 | Non-unique foreign key: Users(uid)';
|
---|
533 |
|
---|
534 |
|
---|
535 | COMMENT ON COLUMN SchedGroupMembers.iSchedPriority IS
|
---|
536 | 'The scheduling priority if the test group.
|
---|
537 | Higher number causes the test case to be run more frequently.
|
---|
538 | @sa TestGroupMembers.iSchedPriority';
|
---|
539 |
|
---|
540 |
|
---|
541 | COMMENT ON COLUMN SchedGroupMembers.bmHourlySchedule IS
|
---|
542 | 'When during the week this group is allowed to start running, NULL means
|
---|
543 | there are no constraints.
|
---|
544 | Each bit in the bitstring represents one hour, with bit 0 indicating the
|
---|
545 | midnight hour on a monday.';
|
---|
546 |
|
---|
547 |
|
---|
548 | COMMENT ON TYPE TestBoxCmd_T IS
|
---|
549 | 'Testbox commands.';
|
---|
550 |
|
---|
551 |
|
---|
552 | COMMENT ON TYPE LomKind_T IS
|
---|
553 | 'The kind of lights out management on a testbox.';
|
---|
554 |
|
---|
555 |
|
---|
556 | COMMENT ON TABLE TestBoxes IS
|
---|
557 | 'Testbox configurations.
|
---|
558 |
|
---|
559 | The testboxes are identified by IP and the system UUID if available. Should
|
---|
560 | the IP change, the testbox will be refused at sign on and the testbox
|
---|
561 | sheriff will have to update it''s IP.
|
---|
562 |
|
---|
563 | @todo Implement the UUID stuff. Get it from DMI, UEFI or whereever.
|
---|
564 | Mismatching needs to be logged somewhere...
|
---|
565 |
|
---|
566 | To query the currently valid configuration:
|
---|
567 | SELECT ... WHERE id = idTestBox AND tsExpire = TIMESTAMP WITH TIME ZONE ''infinity'';
|
---|
568 |
|
---|
569 | @remarks This table stores history. Never update or delete anything. The
|
---|
570 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
571 | current_timestamp. To select the currently valid entries use
|
---|
572 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
573 |
|
---|
574 |
|
---|
575 | COMMENT ON COLUMN TestBoxes.tsEffective IS
|
---|
576 | 'When this row starts taking effect (inclusive).';
|
---|
577 |
|
---|
578 |
|
---|
579 | COMMENT ON COLUMN TestBoxes.tsExpire IS
|
---|
580 | 'When this row stops being tsEffective (exclusive).';
|
---|
581 |
|
---|
582 |
|
---|
583 | COMMENT ON COLUMN TestBoxes.uidAuthor IS
|
---|
584 | 'The user id of the one who created/modified this entry.
|
---|
585 | When modified automatically by the testbox, NULL is used.
|
---|
586 | Non-unique foreign key: Users(uid)';
|
---|
587 |
|
---|
588 |
|
---|
589 | COMMENT ON COLUMN TestBoxes.uuidSystem IS
|
---|
590 | 'The system or firmware UUID.
|
---|
591 | This uniquely identifies the testbox when talking to the server. After
|
---|
592 | SIGNON though, the testbox will also provide idTestBox and ip to
|
---|
593 | establish its identity beyond doubt.';
|
---|
594 |
|
---|
595 |
|
---|
596 | COMMENT ON COLUMN TestBoxes.sName IS
|
---|
597 | 'The testbox name.
|
---|
598 | Usually similar to the DNS name.';
|
---|
599 |
|
---|
600 |
|
---|
601 | COMMENT ON COLUMN TestBoxes.sDescription IS
|
---|
602 | 'Optional testbox description.
|
---|
603 | Intended for describing the box as well as making other relevant notes.';
|
---|
604 |
|
---|
605 |
|
---|
606 | COMMENT ON COLUMN TestBoxes.fEnabled IS
|
---|
607 | 'Indicates whether this testbox is enabled.
|
---|
608 | A testbox gets disabled when we''re doing maintenance, debugging a issue
|
---|
609 | that happens only on that testbox, or some similar stuff. This is an
|
---|
610 | alternative to deleting the testbox.';
|
---|
611 |
|
---|
612 |
|
---|
613 | COMMENT ON COLUMN TestBoxes.enmLomKind IS
|
---|
614 | 'The kind of lights-out-management.';
|
---|
615 |
|
---|
616 |
|
---|
617 | COMMENT ON COLUMN TestBoxes.sOs IS
|
---|
618 | 'Same abbrieviations as kBuild, see KBUILD_OSES.';
|
---|
619 |
|
---|
620 |
|
---|
621 | COMMENT ON COLUMN TestBoxes.sOsVersion IS
|
---|
622 | 'Informational, no fixed format.';
|
---|
623 |
|
---|
624 |
|
---|
625 | COMMENT ON COLUMN TestBoxes.sCpuVendor IS
|
---|
626 | 'Same as CPUID reports (GenuineIntel, AuthenticAMD, CentaurHauls, ...).';
|
---|
627 |
|
---|
628 |
|
---|
629 | COMMENT ON COLUMN TestBoxes.sCpuArch IS
|
---|
630 | 'Same as kBuild - x86, amd64, ... See KBUILD_ARCHES.';
|
---|
631 |
|
---|
632 |
|
---|
633 | COMMENT ON COLUMN TestBoxes.sCpuName IS
|
---|
634 | 'The CPU name if available.';
|
---|
635 |
|
---|
636 |
|
---|
637 | COMMENT ON COLUMN TestBoxes.lCpuRevision IS
|
---|
638 | 'Number identifying the CPU family/model/stepping/whatever.
|
---|
639 | For x86 and AMD64 type CPUs, this will on the following format:
|
---|
640 | (EffFamily << 24) | (EffModel << 8) | Stepping.';
|
---|
641 |
|
---|
642 |
|
---|
643 | COMMENT ON COLUMN TestBoxes.cCpus IS
|
---|
644 | 'Number of CPUs, CPU cores and CPU threads.';
|
---|
645 |
|
---|
646 |
|
---|
647 | COMMENT ON COLUMN TestBoxes.fCpuHwVirt IS
|
---|
648 | 'Set if capable of hardware virtualization.';
|
---|
649 |
|
---|
650 |
|
---|
651 | COMMENT ON COLUMN TestBoxes.fCpuNestedPaging IS
|
---|
652 | 'Set if capable of nested paging.';
|
---|
653 |
|
---|
654 |
|
---|
655 | COMMENT ON COLUMN TestBoxes.fCpu64BitGuest IS
|
---|
656 | 'Set if CPU capable of 64-bit (VBox) guests.';
|
---|
657 |
|
---|
658 |
|
---|
659 | COMMENT ON COLUMN TestBoxes.fChipsetIoMmu IS
|
---|
660 | 'Set if chipset with usable IOMMU (VT-d / AMD-Vi).';
|
---|
661 |
|
---|
662 |
|
---|
663 | COMMENT ON COLUMN TestBoxes.cMbMemory IS
|
---|
664 | 'The (approximate) memory size in megabytes (rounded down to nearest 4 MB).';
|
---|
665 |
|
---|
666 |
|
---|
667 | COMMENT ON COLUMN TestBoxes.cMbScratch IS
|
---|
668 | 'The amount of scratch space in megabytes (rounded down to nearest 64 MB).';
|
---|
669 |
|
---|
670 |
|
---|
671 | COMMENT ON COLUMN TestBoxes.sReport IS
|
---|
672 | 'Free form hardware and software report field.';
|
---|
673 |
|
---|
674 |
|
---|
675 | COMMENT ON COLUMN TestBoxes.iTestBoxScriptRev IS
|
---|
676 | 'The testbox script revision number, serves the purpose of a version number.
|
---|
677 | Probably good to have when scheduling upgrades as well for status purposes.';
|
---|
678 |
|
---|
679 |
|
---|
680 | COMMENT ON COLUMN TestBoxes.iPythonHexVersion IS
|
---|
681 | 'The python sys.hexversion (layed out as of 2.7).
|
---|
682 | Good to know which python versions we need to support.';
|
---|
683 |
|
---|
684 |
|
---|
685 | COMMENT ON COLUMN TestBoxes.enmPendingCmd IS
|
---|
686 | 'Pending command.
|
---|
687 | @note We put it here instead of in TestBoxStatuses to get history.';
|
---|
688 |
|
---|
689 |
|
---|
690 | COMMENT ON INDEX TestBoxesUuidIdx IS
|
---|
691 | 'Nested paging requires hardware virtualization.';
|
---|
692 |
|
---|
693 |
|
---|
694 | COMMENT ON TABLE FailureCategories IS
|
---|
695 | 'Failure categories.
|
---|
696 |
|
---|
697 | This is for organizing the failure reasons.
|
---|
698 |
|
---|
699 | @remarks This table stores history. Never update or delete anything. The
|
---|
700 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
701 | current_timestamp. To select the currently valid entries use
|
---|
702 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
703 |
|
---|
704 |
|
---|
705 | COMMENT ON COLUMN FailureCategories.tsEffective IS
|
---|
706 | 'When this row starts taking effect (inclusive).';
|
---|
707 |
|
---|
708 |
|
---|
709 | COMMENT ON COLUMN FailureCategories.tsExpire IS
|
---|
710 | 'When this row stops being tsEffective (exclusive).';
|
---|
711 |
|
---|
712 |
|
---|
713 | COMMENT ON COLUMN FailureCategories.uidAuthor IS
|
---|
714 | 'The user id of the one who created/modified this entry.
|
---|
715 | Non-unique foreign key: Users(uid)';
|
---|
716 |
|
---|
717 |
|
---|
718 | COMMENT ON COLUMN FailureCategories.sShort IS
|
---|
719 | 'The short category description.
|
---|
720 | For combo boxes and other selection lists.';
|
---|
721 |
|
---|
722 |
|
---|
723 | COMMENT ON COLUMN FailureCategories.sFull IS
|
---|
724 | 'Full description
|
---|
725 | For cursor-over-poppups for instance.';
|
---|
726 |
|
---|
727 |
|
---|
728 | COMMENT ON TABLE FailureReasons IS
|
---|
729 | 'Failure reasons.
|
---|
730 |
|
---|
731 | When analysing a test failure, the testbox sheriff will try assign a fitting
|
---|
732 | reason for the failure. This table is here to help the sheriff in his/hers
|
---|
733 | job as well as developers looking checking if their changes affected the
|
---|
734 | test results in any way.
|
---|
735 |
|
---|
736 | @remarks This table stores history. Never update or delete anything. The
|
---|
737 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
738 | current_timestamp. To select the currently valid entries use
|
---|
739 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
740 |
|
---|
741 |
|
---|
742 | COMMENT ON COLUMN FailureReasons.tsEffective IS
|
---|
743 | 'When this row starts taking effect (inclusive).';
|
---|
744 |
|
---|
745 |
|
---|
746 | COMMENT ON COLUMN FailureReasons.tsExpire IS
|
---|
747 | 'When this row stops being tsEffective (exclusive).';
|
---|
748 |
|
---|
749 |
|
---|
750 | COMMENT ON COLUMN FailureReasons.uidAuthor IS
|
---|
751 | 'The user id of the one who created/modified this entry.
|
---|
752 | Non-unique foreign key: Users(uid)';
|
---|
753 |
|
---|
754 |
|
---|
755 | COMMENT ON COLUMN FailureReasons.sShort IS
|
---|
756 | 'The short failure description.
|
---|
757 | For combo boxes and other selection lists.';
|
---|
758 |
|
---|
759 |
|
---|
760 | COMMENT ON COLUMN FailureReasons.sFull IS
|
---|
761 | 'Full failure description.';
|
---|
762 |
|
---|
763 |
|
---|
764 | COMMENT ON COLUMN FailureReasons.iTicket IS
|
---|
765 | 'Ticket number in the primary bugtracker.';
|
---|
766 |
|
---|
767 |
|
---|
768 | COMMENT ON COLUMN FailureReasons.asUrls IS
|
---|
769 | 'Other URLs to reports or discussions of the observed symptoms.';
|
---|
770 |
|
---|
771 |
|
---|
772 | COMMENT ON TABLE TestResultFailures IS
|
---|
773 | 'This is for tracking/discussing test result failures.
|
---|
774 |
|
---|
775 | The rational for putting this is a separate table is that we need history on
|
---|
776 | this while TestResults does not.
|
---|
777 |
|
---|
778 | @remarks This table stores history. Never update or delete anything. The
|
---|
779 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
780 | current_timestamp. To select the currently valid entries use
|
---|
781 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
782 |
|
---|
783 |
|
---|
784 | COMMENT ON COLUMN TestResultFailures.tsEffective IS
|
---|
785 | 'When this row starts taking effect (inclusive).';
|
---|
786 |
|
---|
787 |
|
---|
788 | COMMENT ON COLUMN TestResultFailures.tsExpire IS
|
---|
789 | 'When this row stops being tsEffective (exclusive).';
|
---|
790 |
|
---|
791 |
|
---|
792 | COMMENT ON COLUMN TestResultFailures.uidAuthor IS
|
---|
793 | 'The user id of the one who created/modified this entry.
|
---|
794 | Non-unique foreign key: Users(uid)';
|
---|
795 |
|
---|
796 |
|
---|
797 | COMMENT ON COLUMN TestResultFailures.sComment IS
|
---|
798 | 'Optional comment.';
|
---|
799 |
|
---|
800 |
|
---|
801 | COMMENT ON TABLE BuildBlacklist IS
|
---|
802 | 'Table used to blacklist sets of builds.
|
---|
803 |
|
---|
804 | The best usage example is a VMM developer realizing that a change causes the
|
---|
805 | host to panic, hang, or otherwise misbehave. To prevent the testbox sheriff
|
---|
806 | from repeatedly having to reboot testboxes, the builds gets blacklisted
|
---|
807 | until there is a working build again. This may mean adding an open ended
|
---|
808 | blacklist spec and then updating it with the final revision number once the
|
---|
809 | fix has been committed.
|
---|
810 |
|
---|
811 | @remarks This table stores history. Never update or delete anything. The
|
---|
812 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
813 | current_timestamp. To select the currently valid entries use
|
---|
814 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.
|
---|
815 |
|
---|
816 | @todo Would be nice if we could replace the text strings below with a set of
|
---|
817 | BuildCategories, or sore it in any other way which would enable us to
|
---|
818 | do a negative join with build category... The way it is specified
|
---|
819 | now, it looks like we have to open a cursor of prospecitve builds and
|
---|
820 | filter then thru this table one by one.
|
---|
821 |
|
---|
822 | Any better representation is welcome, but this is low prioirty for
|
---|
823 | now, as it''s relatively easy to change this later one.';
|
---|
824 |
|
---|
825 |
|
---|
826 | COMMENT ON COLUMN BuildBlacklist.tsEffective IS
|
---|
827 | 'When this row starts taking effect (inclusive).';
|
---|
828 |
|
---|
829 |
|
---|
830 | COMMENT ON COLUMN BuildBlacklist.tsExpire IS
|
---|
831 | 'When this row stops being tsEffective (exclusive).';
|
---|
832 |
|
---|
833 |
|
---|
834 | COMMENT ON COLUMN BuildBlacklist.uidAuthor IS
|
---|
835 | 'The user id of the one who created/modified this entry.
|
---|
836 | Non-unique foreign key: Users(uid)';
|
---|
837 |
|
---|
838 |
|
---|
839 | COMMENT ON COLUMN BuildBlacklist.sProduct IS
|
---|
840 | 'Which product.
|
---|
841 | ASSUME that it is okay to limit a blacklisting to a single product.';
|
---|
842 |
|
---|
843 |
|
---|
844 | COMMENT ON COLUMN BuildBlacklist.sBranch IS
|
---|
845 | 'Which branch.
|
---|
846 | ASSUME that it is okay to limit a blacklisting to a branch.';
|
---|
847 |
|
---|
848 |
|
---|
849 | COMMENT ON COLUMN BuildBlacklist.asTypes IS
|
---|
850 | 'Build types to include, all matches if NULL.';
|
---|
851 |
|
---|
852 |
|
---|
853 | COMMENT ON COLUMN BuildBlacklist.asOsArches IS
|
---|
854 | 'Array of the ''sOs.sCpuArch'' to match, all matches if NULL.
|
---|
855 | See KBUILD_OSES in kBuild for a list of standard target OSes, and
|
---|
856 | KBUILD_ARCHES for a list of standard architectures.
|
---|
857 |
|
---|
858 | @remarks See marks on ''os-agnostic'' and ''noarch'' in BuildCategories.';
|
---|
859 |
|
---|
860 |
|
---|
861 | COMMENT ON COLUMN BuildBlacklist.iFirstRevision IS
|
---|
862 | 'The first subversion tree revision to blacklist.';
|
---|
863 |
|
---|
864 |
|
---|
865 | COMMENT ON COLUMN BuildBlacklist.iLastRevision IS
|
---|
866 | 'The last subversion tree revision to blacklist, no upper limit if NULL.';
|
---|
867 |
|
---|
868 |
|
---|
869 | COMMENT ON TABLE BuildCategories IS
|
---|
870 | 'Build categories.
|
---|
871 |
|
---|
872 | The purpose of this table is saving space in the Builds table and hopefully
|
---|
873 | speed things up when selecting builds as well (compared to selecting on 4
|
---|
874 | text fields in the much larger Builds table).
|
---|
875 |
|
---|
876 | Insert only table, no update, no delete. History is not needed.';
|
---|
877 |
|
---|
878 |
|
---|
879 | COMMENT ON COLUMN BuildCategories.sProduct IS
|
---|
880 | 'Product.
|
---|
881 | The product name. For instance ''VBox'' or ''VBoxTestSuite''.';
|
---|
882 |
|
---|
883 |
|
---|
884 | COMMENT ON COLUMN BuildCategories.sRepository IS
|
---|
885 | 'The version control repository name.';
|
---|
886 |
|
---|
887 |
|
---|
888 | COMMENT ON COLUMN BuildCategories.sBranch IS
|
---|
889 | 'The branch name (in the version control system).';
|
---|
890 |
|
---|
891 |
|
---|
892 | COMMENT ON COLUMN BuildCategories.sType IS
|
---|
893 | 'The build type.
|
---|
894 | See KBUILD_BLD_TYPES in kBuild for a list of standard build types.';
|
---|
895 |
|
---|
896 |
|
---|
897 | COMMENT ON COLUMN BuildCategories.asOsArches IS
|
---|
898 | 'Array of the ''sOs.sCpuArch'' supported by the build.
|
---|
899 | See KBUILD_OSES in kBuild for a list of standard target OSes, and
|
---|
900 | KBUILD_ARCHES for a list of standard architectures.
|
---|
901 |
|
---|
902 | @remarks ''os-agnostic'' is used if the build doesn''t really target any
|
---|
903 | specific OS or if it targets all applicable OSes.
|
---|
904 | ''noarch'' is used if the build is architecture independent or if
|
---|
905 | all applicable architectures are handled.
|
---|
906 | Thus, ''os-agnostic.noarch'' will run on all build boxes.
|
---|
907 |
|
---|
908 | @note The array shall be sorted ascendingly to prevent unnecessary duplicates!';
|
---|
909 |
|
---|
910 |
|
---|
911 | COMMENT ON TABLE Builds IS
|
---|
912 | 'The builds table contains builds from the tinderboxes and oaccasionally from
|
---|
913 | developers.
|
---|
914 |
|
---|
915 | The tinderbox side could be fed by a batch job enumerating the build output
|
---|
916 | directories every so often, looking for new builds. Or we could query them
|
---|
917 | from the tinderbox database. Yet another alternative is making the
|
---|
918 | tinderbox server or client side software inform us about all new builds.
|
---|
919 |
|
---|
920 | The developer builds are entered manually thru the TM web UI. They are used
|
---|
921 | for subjecting new code to some larger scale testing before commiting,
|
---|
922 | enabling, or merging a private branch.
|
---|
923 |
|
---|
924 | The builds are being selected from this table by the via the build source
|
---|
925 | specification that SchedGroups.idBuildSrc and
|
---|
926 | SchedGroups.idBuildSrcTestSuite links to.
|
---|
927 |
|
---|
928 | @remarks This table stores history. Never update or delete anything. The
|
---|
929 | equivalent of deleting is done by setting the ''tsExpire'' field to
|
---|
930 | current_timestamp. To select the currently valid entries use
|
---|
931 | tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
|
---|
932 |
|
---|
933 |
|
---|
934 | COMMENT ON COLUMN Builds.tsCreated IS
|
---|
935 | 'When this build was created or entered into the database.
|
---|
936 | This remains unchanged';
|
---|
937 |
|
---|
938 |
|
---|
939 | COMMENT ON COLUMN Builds.tsEffective IS
|
---|
940 | 'When this row starts taking effect (inclusive).';
|
---|
941 |
|
---|
942 |
|
---|
943 | COMMENT ON COLUMN Builds.tsExpire IS
|
---|
944 | 'When this row stops being tsEffective (exclusive).';
|
---|
945 |
|
---|
946 |
|
---|
947 | COMMENT ON COLUMN Builds.uidAuthor IS
|
---|
948 | 'The user id of the one who created/modified this entry.
|
---|
949 | Non-unique foreign key: Users(uid)
|
---|
950 | @note This is NULL if added by a batch job / tinderbox.';
|
---|
951 |
|
---|
952 |
|
---|
953 | COMMENT ON COLUMN Builds.iRevision IS
|
---|
954 | 'The subversion tree revision of the build.';
|
---|
955 |
|
---|
956 |
|
---|
957 | COMMENT ON COLUMN Builds.sVersion IS
|
---|
958 | 'The product version number (suitable for RTStrVersionCompare).';
|
---|
959 |
|
---|
960 |
|
---|
961 | COMMENT ON COLUMN Builds.sLogUrl IS
|
---|
962 | 'The link to the tinderbox log of this build.';
|
---|
963 |
|
---|
964 |
|
---|
965 | COMMENT ON COLUMN Builds.sBinaries IS
|
---|
966 | 'Comma separated list of binaries.
|
---|
967 | The binaries have paths relative to the TESTBOX_PATH_BUILDS or full URLs.';
|
---|
968 |
|
---|
969 |
|
---|
970 | COMMENT ON COLUMN Builds.fBinariesDeleted IS
|
---|
971 | 'Set when the binaries gets deleted by the build quota script.';
|
---|
972 |
|
---|
973 |
|
---|
974 | COMMENT ON TABLE VcsRevisions IS
|
---|
975 | 'This table is for translating build revisions into commit details.
|
---|
976 |
|
---|
977 | For graphs and test results, it would be useful to translate revisions into
|
---|
978 | dates and maybe provide commit message and the committer.
|
---|
979 |
|
---|
980 | Data is entered exclusively thru one or more batch jobs, so no internal
|
---|
981 | authorship needed. Also, since we''re mirroring data from external sources
|
---|
982 | here, the batch job is allowed to update/replace existing records.
|
---|
983 |
|
---|
984 | @todo We we could collect more info from the version control systems, if we
|
---|
985 | believe it''s useful and can be presented in a reasonable manner.
|
---|
986 | Getting a list of affected files would be simple (requires
|
---|
987 | a separate table with a M:1 relationship to this table), or try
|
---|
988 | associate a commit to a branch.';
|
---|
989 |
|
---|
990 |
|
---|
991 | COMMENT ON COLUMN VcsRevisions.sRepository IS
|
---|
992 | 'The version control tree name.';
|
---|
993 |
|
---|
994 |
|
---|
995 | COMMENT ON COLUMN VcsRevisions.iRevision IS
|
---|
996 | 'The version control tree revision number.';
|
---|
997 |
|
---|
998 |
|
---|
999 | COMMENT ON COLUMN VcsRevisions.tsCreated IS
|
---|
1000 | 'When the revision was created (committed).';
|
---|
1001 |
|
---|
1002 |
|
---|
1003 | COMMENT ON COLUMN VcsRevisions.sAuthor IS
|
---|
1004 | 'The name of the committer.
|
---|
1005 | @note Not to be confused with uidAuthor and test manager users.';
|
---|
1006 |
|
---|
1007 |
|
---|
1008 | COMMENT ON COLUMN VcsRevisions.sMessage IS
|
---|
1009 | 'The commit message.';
|
---|
1010 |
|
---|
1011 |
|
---|
1012 | COMMENT ON TABLE TestResultStrTab IS
|
---|
1013 | 'String table for the test results.
|
---|
1014 |
|
---|
1015 | This is a string cache for value names, test names and possible more, that
|
---|
1016 | is frequently repated in the test results record for each test run. The
|
---|
1017 | purpose is not only to save space, but to make datamining queries faster by
|
---|
1018 | giving them integer fields to work on instead of text fields. There may
|
---|
1019 | possibly be some benefits on INSERT as well as there are only integer
|
---|
1020 | indexes.
|
---|
1021 |
|
---|
1022 | Nothing is ever deleted from this table.
|
---|
1023 |
|
---|
1024 | @note Should use a stored procedure to query/insert a string.';
|
---|
1025 |
|
---|
1026 |
|
---|
1027 | COMMENT ON COLUMN TestResultStrTab.sValue IS
|
---|
1028 | 'The string value.';
|
---|
1029 |
|
---|
1030 |
|
---|
1031 | COMMENT ON COLUMN TestResultStrTab.tsCreated IS
|
---|
1032 | 'Creation time stamp.';
|
---|
1033 |
|
---|
1034 |
|
---|
1035 | COMMENT ON TYPE TestStatus_T IS
|
---|
1036 | 'The status of a test (set / result).';
|
---|
1037 |
|
---|
1038 |
|
---|
1039 | COMMENT ON TABLE TestResults IS
|
---|
1040 | 'Test results - a recursive bundle of joy!
|
---|
1041 |
|
---|
1042 | A test case will be created when the testdriver calls reporter.testStart and
|
---|
1043 | concluded with reporter.testDone. The testdriver (or it subordinates) can
|
---|
1044 | use these methods to create nested test results. For IPRT based test cases,
|
---|
1045 | RTTestCreate, RTTestInitAndCreate and RTTestSub will both create new test
|
---|
1046 | result records, where as RTTestSubDone, RTTestSummaryAndDestroy and
|
---|
1047 | RTTestDestroy will conclude records.
|
---|
1048 |
|
---|
1049 | By concluding is meant updating the status. When the test driver reports
|
---|
1050 | success, we check it against reported results. (paranoia strikes again!)
|
---|
1051 |
|
---|
1052 | Nothing is ever deleted from this table.
|
---|
1053 |
|
---|
1054 | @note As seen below, several other tables associate data with a
|
---|
1055 | test result, and the top most test result is referenced by the
|
---|
1056 | test set.';
|
---|
1057 |
|
---|
1058 |
|
---|
1059 | COMMENT ON COLUMN TestResults.tsCreated IS
|
---|
1060 | 'Creation time stamp. This may also be the timestamp of when the test started.';
|
---|
1061 |
|
---|
1062 |
|
---|
1063 | COMMENT ON COLUMN TestResults.tsElapsed IS
|
---|
1064 | 'The elapsed time for this test.
|
---|
1065 | This is either reported by the directly (with some sanity checking) or
|
---|
1066 | calculated (current_timestamp - created_ts).
|
---|
1067 | @todo maybe use a nanosecond field here, check with what';
|
---|
1068 |
|
---|
1069 |
|
---|
1070 | COMMENT ON COLUMN TestResults.cErrors IS
|
---|
1071 | 'The error count.';
|
---|
1072 |
|
---|
1073 |
|
---|
1074 | COMMENT ON COLUMN TestResults.enmStatus IS
|
---|
1075 | 'The test status.';
|
---|
1076 |
|
---|
1077 |
|
---|
1078 | COMMENT ON COLUMN TestResults.iNestingDepth IS
|
---|
1079 | 'Nesting depth.';
|
---|
1080 |
|
---|
1081 |
|
---|
1082 | COMMENT ON TABLE TestResultValues IS
|
---|
1083 | 'Test result values.
|
---|
1084 |
|
---|
1085 | A testdriver or subordinate may report a test value via
|
---|
1086 | reporter.testValue(), while IPRT based test will use RTTestValue and
|
---|
1087 | associates.
|
---|
1088 |
|
---|
1089 | This is an insert only table, no deletes, no updates.';
|
---|
1090 |
|
---|
1091 |
|
---|
1092 | COMMENT ON COLUMN TestResultValues.tsCreated IS
|
---|
1093 | 'Creation time stamp.';
|
---|
1094 |
|
---|
1095 |
|
---|
1096 | COMMENT ON COLUMN TestResultValues.lValue IS
|
---|
1097 | 'The value.';
|
---|
1098 |
|
---|
1099 |
|
---|
1100 | COMMENT ON COLUMN TestResultValues.iUnit IS
|
---|
1101 | 'The unit.
|
---|
1102 | @todo This is currently not defined properly. Will fix/correlate this
|
---|
1103 | with the other places we use unit (IPRT/testdriver/VMMDev).';
|
---|
1104 |
|
---|
1105 |
|
---|
1106 | COMMENT ON TABLE TestResultFiles IS
|
---|
1107 | 'Test result files.
|
---|
1108 |
|
---|
1109 | A testdriver or subordinate may report a file by using
|
---|
1110 | reporter.addFile() or reporter.addLogFile().
|
---|
1111 |
|
---|
1112 | The files stored here as well as the primary log file will be processed by a
|
---|
1113 | batch job and compressed if considered compressable. Thus, TM will look for
|
---|
1114 | files with a .gz/.bz2 suffix first and then without a suffix.
|
---|
1115 |
|
---|
1116 | This is an insert only table, no deletes, no updates.';
|
---|
1117 |
|
---|
1118 |
|
---|
1119 | COMMENT ON COLUMN TestResultFiles.tsCreated IS
|
---|
1120 | 'Creation time stamp.';
|
---|
1121 |
|
---|
1122 |
|
---|
1123 | COMMENT ON INDEX TestResultFilesIdx IS
|
---|
1124 | 'The mime type for the file.
|
---|
1125 | For instance: ''text/plain'',
|
---|
1126 | ''image/png'',
|
---|
1127 | ''video/webm'',
|
---|
1128 | ''text/xml''';
|
---|
1129 |
|
---|
1130 |
|
---|
1131 | COMMENT ON TABLE TestResultMsgs IS
|
---|
1132 | 'Test result message.
|
---|
1133 |
|
---|
1134 | A testdriver or subordinate may report a message via the sDetails parameter
|
---|
1135 | of the reporter.testFailure() method, while IPRT test cases will use
|
---|
1136 | RTTestFailed, RTTestPrintf and their friends. For RTTestPrintf, we will
|
---|
1137 | ignore the more verbose message levels since these can also be found in one
|
---|
1138 | of the logs.
|
---|
1139 |
|
---|
1140 | This is an insert only table, no deletes, no updates.';
|
---|
1141 |
|
---|
1142 |
|
---|
1143 | COMMENT ON COLUMN TestResultMsgs.tsCreated IS
|
---|
1144 | 'Creation time stamp.';
|
---|
1145 |
|
---|
1146 |
|
---|
1147 | COMMENT ON COLUMN TestResultMsgs.enmLevel IS
|
---|
1148 | 'The message level.';
|
---|
1149 |
|
---|
1150 |
|
---|
1151 | COMMENT ON TABLE TestSets IS
|
---|
1152 | 'Test sets / Test case runs.
|
---|
1153 |
|
---|
1154 | This is where we collect data about test runs.
|
---|
1155 |
|
---|
1156 | @todo Not entirely sure where the ''test set'' term came from. Consider
|
---|
1157 | finding something more appropriate.';
|
---|
1158 |
|
---|
1159 |
|
---|
1160 | COMMENT ON COLUMN TestSets.tsConfig IS
|
---|
1161 | 'The test config timestamp, used when reading test config.';
|
---|
1162 |
|
---|
1163 |
|
---|
1164 | COMMENT ON COLUMN TestSets.tsCreated IS
|
---|
1165 | 'When this test set was scheduled.
|
---|
1166 | idGenTestBox is valid at this point.';
|
---|
1167 |
|
---|
1168 |
|
---|
1169 | COMMENT ON COLUMN TestSets.tsDone IS
|
---|
1170 | 'When this test completed, i.e. testing stopped. This should only be set once.';
|
---|
1171 |
|
---|
1172 |
|
---|
1173 | COMMENT ON COLUMN TestSets.enmStatus IS
|
---|
1174 | 'The current status.';
|
---|
1175 |
|
---|
1176 |
|
---|
1177 | COMMENT ON COLUMN TestSets.sBaseFilename IS
|
---|
1178 | 'The base filename used for storing files related to this test set.
|
---|
1179 | This is a path relative to wherever TM is dumping log files. In order
|
---|
1180 | to not become a file system test case, we will try not to put too many
|
---|
1181 | hundred thousand files in a directory. A simple first approach would
|
---|
1182 | be to just use the current date (tsCreated) like this:
|
---|
1183 | TM_FILE_DIR/year/month/day/TestSets.idTestSet
|
---|
1184 |
|
---|
1185 | The primary log file for the test is this name suffixed by ''.log''.
|
---|
1186 |
|
---|
1187 | The files in the testresultfile table gets their full names like this:
|
---|
1188 | TM_FILE_DIR/sBaseFilename-testresultfile.id-TestResultStrTab(testresultfile.idStrFilename)
|
---|
1189 |
|
---|
1190 | @remarks We store this explicitly in case we change the directly layout
|
---|
1191 | at some later point.';
|
---|
1192 |
|
---|
1193 |
|
---|
1194 | COMMENT ON COLUMN TestSets.iGangMemberNo IS
|
---|
1195 | 'The gang member number number, 0 is the leader.';
|
---|
1196 |
|
---|
1197 |
|
---|
1198 | COMMENT ON INDEX TestSetsGangIdx IS
|
---|
1199 | 'The test set of the gang leader, NULL if no gang involved.
|
---|
1200 | @note This is set by the gang leader as well, so that we can find all
|
---|
1201 | gang members by WHERE idTestSetGangLeader = :id.';
|
---|
1202 |
|
---|
1203 |
|
---|
1204 | COMMENT ON INDEX TestSetsDoneCreatedBuildCatIdx IS
|
---|
1205 | 'The TestSetsDoneCreatedBuildCatIdx is for testbox results, graph options and such.';
|
---|
1206 |
|
---|
1207 |
|
---|
1208 | COMMENT ON INDEX TestSetsGraphBoxIdx IS
|
---|
1209 | 'For graphs.';
|
---|
1210 |
|
---|
1211 |
|
---|
1212 | COMMENT ON TYPE TestBoxState_T IS
|
---|
1213 | 'TestBox state.
|
---|
1214 |
|
---|
1215 | @todo Consider drawing a state diagram for this.';
|
---|
1216 |
|
---|
1217 |
|
---|
1218 | COMMENT ON TABLE TestBoxStatuses IS
|
---|
1219 | 'Testbox status table.
|
---|
1220 |
|
---|
1221 | History is not planned on this table.';
|
---|
1222 |
|
---|
1223 |
|
---|
1224 | COMMENT ON COLUMN TestBoxStatuses.tsUpdated IS
|
---|
1225 | 'When this status was last updated.
|
---|
1226 | This is updated everytime the testbox talks to the test manager, thus it
|
---|
1227 | can easily be used to find testboxes which has stopped responding.
|
---|
1228 |
|
---|
1229 | This is used for timeout calculation during gang-gathering, so in that
|
---|
1230 | scenario it won''t be updated until the gang is gathered or we time out.';
|
---|
1231 |
|
---|
1232 |
|
---|
1233 | COMMENT ON COLUMN TestBoxStatuses.enmState IS
|
---|
1234 | 'The current state.';
|
---|
1235 |
|
---|
1236 |
|
---|
1237 | COMMENT ON TABLE GlobalResourceStatuses IS
|
---|
1238 | 'Global resource status, tracks which test set resources are allocated by.
|
---|
1239 |
|
---|
1240 | History is not planned on this table.';
|
---|
1241 |
|
---|
1242 |
|
---|
1243 | COMMENT ON COLUMN GlobalResourceStatuses.tsAllocated IS
|
---|
1244 | 'When the allocation took place.';
|
---|
1245 |
|
---|
1246 |
|
---|
1247 | COMMENT ON TABLE SchedQueues IS
|
---|
1248 | 'Scheduler queue.
|
---|
1249 |
|
---|
1250 | The queues are currently associated with a scheduling group, it could
|
---|
1251 | alternative be changed to hook on to a testbox instead. It depends on what
|
---|
1252 | kind of scheduling method we prefer. The former method aims at test case
|
---|
1253 | thruput, making sacrifices in the hardware distribution area. The latter is
|
---|
1254 | more like the old buildbox style testing, making sure that each test case is
|
---|
1255 | executed on each testbox.
|
---|
1256 |
|
---|
1257 | When there are configuration changes, TM will regenerate the scheduling
|
---|
1258 | queue for the affected scheduling groups. We do not concern ourselves with
|
---|
1259 | trying to continue at the approximately same queue position, we simply take
|
---|
1260 | it from the top.
|
---|
1261 |
|
---|
1262 | When a testbox ask for work, we will open a cursor on the queue and take the
|
---|
1263 | first test in the queue that can be executed on that testbox. The test will
|
---|
1264 | be moved to the end of the queue (getting a new item_id).
|
---|
1265 |
|
---|
1266 | If a test is manually changed to the head of the queue, the item will get a
|
---|
1267 | item_id which is 1 lower than the head of the queue. Unless someone does
|
---|
1268 | this a couple of billion times, we shouldn''t have any trouble running out of
|
---|
1269 | number space. :-)
|
---|
1270 |
|
---|
1271 | Manually moving a test to the end of the queue is easy, just get a new
|
---|
1272 | ''item_id''.
|
---|
1273 |
|
---|
1274 | History is not planned on this table.';
|
---|
1275 |
|
---|
1276 |
|
---|
1277 | COMMENT ON COLUMN SchedQueues.bmHourlySchedule IS
|
---|
1278 | 'The scheduling time constraints (see SchedGroupMembers.bmHourlySchedule).';
|
---|
1279 |
|
---|
1280 |
|
---|
1281 | COMMENT ON COLUMN SchedQueues.tsConfig IS
|
---|
1282 | 'When the queue entry was created and for which config is valid.
|
---|
1283 | This is the timestamp that should be used when reading config info.';
|
---|
1284 |
|
---|
1285 |
|
---|
1286 | COMMENT ON COLUMN SchedQueues.tsLastScheduled IS
|
---|
1287 | 'When this status was last scheduled.
|
---|
1288 | This is set to current_timestamp when moving the entry to the end of the
|
---|
1289 | queue. It''s initial value is unix-epoch. Not entirely sure if it''s
|
---|
1290 | useful beyond introspection and non-unique foreign key hacking.';
|
---|
1291 |
|
---|
1292 |
|
---|
1293 | COMMENT ON COLUMN SchedQueues.cMissingGangMembers IS
|
---|
1294 | 'The number of gang members still missing.
|
---|
1295 |
|
---|
1296 | This saves calculating the number of missing members via selects like:
|
---|
1297 | SELECT COUNT(*) FROM TestSets WHERE idTestSetGangLeader = :idGang;
|
---|
1298 | and
|
---|
1299 | SELECT cGangMembers FROM TestCaseArgs WHERE idGenTestCaseArgs = :idTest;
|
---|
1300 | to figure out whether to remain in ''gather-gang''::TestBoxState_T.';
|
---|
1301 |
|
---|
1302 |
|
---|