1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add the estkey column to the jobs table of testrunner.db. The plan is to

use this to collect measurements that will help generate improved ETAs for
a test run.

FossilOrigin-Name: 9eccf5267c6423c9dd4da1d61b62bbb6fbba44fb8089da79f89c84e8b77ff0f0
This commit is contained in:
drh
2025-07-10 17:19:08 +00:00
parent 07b483c48e
commit 45bff0ea64
3 changed files with 27 additions and 10 deletions

View File

@ -341,6 +341,7 @@ set TRG(schema) {
endtime INTEGER, -- End time
span INTEGER, -- Total run-time in milliseconds
estwork INTEGER, -- Estimated amount of work
estkey TEXT, -- Key used to compute estwork
state TEXT CHECK( state IN ('','ready','running','done','failed','omit','halt') ),
ntest INT, -- Number of test cases run
nerr INT, -- Number of errors reported
@ -985,12 +986,27 @@ proc add_job {args} {
set state ""
if {$A(-depid)==""} { set state ready }
set type $A(-displaytype)
set displayname $A(-displayname)
switch $type {
tcl {
set ek [file tail [lindex $displayname end]]
}
bld {
set ek [lindex $displayname end]
}
fuzz {
set ek [lrange $displayname 1 2]
}
make {
set ek [lindex $displayname end]
}
}
set ew $estwork($type)
trdb eval {
INSERT INTO jobs(
displaytype, displayname, build, dirname, cmd, depid, priority, estwork,
state
displaytype, displayname, build, dirname, cmd, depid, priority,
estwork, estkey, state
) VALUES (
$type,
$A(-displayname),
@ -1000,6 +1016,7 @@ proc add_job {args} {
$A(-depid),
$A(-priority),
$ew,
$ek,
$state
)
}