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