Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 3f8a29dc32
Fetching contributors…

Cannot retrieve contributors at this time

1020 lines (870 sloc) 36.149 kB
{
"views":{
"test_runs":{
"sql":"SELECT tr.id AS 'test_run_id',
tr.build_id,
tr.revision,
tr.date_run,
b.processor,
b.build_type,
b.test_build_id,
t.name AS 'Test Name',
br.product,
br.branch,
br.version,
m.name AS 'machine',
m.cpu_speed,
os.name AS 'OS',
os.version AS 'OS Version'
FROM test_run AS tr
LEFT JOIN build AS b ON tr.build_id = b.id
LEFT JOIN test AS t ON tr.test_id = t.id
LEFT JOIN machine AS m ON tr.machine_id = m.id
LEFT JOIN operating_system AS os ON m.operating_system_id = os.id
LEFT JOIN product AS br ON b.product_id = br.id
ORDER BY tr.id DESC
LIMIT 1000",
"host":"read_host"
},
"test_run":{
"sql":"SELECT tr.id AS 'test_run_id',
tr.build_id,
tr.revision,
tr.date_run,
b.processor,
b.build_type,
b.test_build_id,
t.name AS 'Test Name',
br.product,
br.branch,
br.version,
m.name AS 'machine',
m.cpu_speed,
os.name AS 'OS',
os.version AS 'OS Version'
FROM test_run AS tr
LEFT JOIN build AS b ON tr.build_id = b.id
LEFT JOIN machine AS m ON tr.machine_id = m.id
LEFT JOIN operating_system AS os ON m.operating_system_id = os.id
LEFT JOIN test AS t ON tr.test_id = t.id
LEFT JOIN product AS br ON b.product_id = br.id
ORDER BY tr.id DESC
LIMIT 1000",
"host":"read_host"
},
"test_value":{
"sql":"SELECT tv.test_run_id,
tv.run_id,
p.url,
v.name,
tv.value
FROM test_value AS tv
LEFT JOIN pages AS p ON tv.page_id = p.id
LEFT JOIN value AS v ON tv.value_id = v.id
WHERE tv.test_run_id = ?",
"host":"read_host"
},
"test_option_values":{
"sql":"SELECT tov.test_run_id,
o.name,
tov.value
FROM test_option_values AS tov
LEFT JOIN `option` AS o ON tov.option_id = o.id
WHERE tov.test_run_id = ?",
"host":"read_host"
},
"test_aux_data":{
"sql":"SELECT tad.test_run_id,
tad.run_id,
ad.name,
tad.numeric_data,
tad.string_data
FROM test_aux_data AS tad
LEFT JOIN aux_data AS ad ON tad.aux_data_id = ad.id
WHERE tad.test_run_id = ?",
"host":"read_host"
}
},
"inserts":{
"set_test_ref_data":{
"sql":"INSERT INTO `test` (`name`, `version`)
SELECT ?, ?
FROM DUAL
WHERE NOT EXISTS (
SELECT `name`, `version`
FROM `test`
WHERE `name` = ? AND `version` = ?
)",
"host":"master_host"
},
"set_os_ref_data":{
"sql":"INSERT INTO `operating_system` ( `name`, `version` )
SELECT ?, ?
FROM DUAL
WHERE NOT EXISTS (
SELECT `name`, `version`
FROM `operating_system`
WHERE `name` = ? AND `version` = ?
)",
"host":"master_host"
},
"set_aux_ref_data":{
"sql":"INSERT INTO `aux_data` (`test_id`, `name`)
SELECT ?, ?
FROM DUAL
WHERE NOT EXISTS (
SELECT `test_id`, `name`
FROM `aux_data`
WHERE `test_id` = ? AND `name` = ?
)",
"host":"master_host"
},
"set_default_product":{
"sql":"UPDATE `product`
SET `default_product` = ?
WHERE `id` = ?",
"host":"master_host"
},
"set_product_ref_data":{
"sql":"INSERT INTO `product` (`product`, `branch`, `version`)
SELECT ?, ?, ?
FROM DUAL
WHERE NOT EXISTS (
SELECT `product`, `branch`, `version`
FROM `product`
WHERE `product` = ? AND `branch` = ? AND `version` = ?
)",
"host":"master_host"
},
"set_machine_ref_data":{
"sql":"INSERT INTO `machine` (`name`, `operating_system_id`, `date_added`)
SELECT ?, ?, ?
FROM DUAL
WHERE NOT EXISTS (
SELECT `name`, `operating_system_id`
FROM `machine`
WHERE `name` = ? AND `operating_system_id` = ?
)",
"host":"master_host"
},
"set_option_ref_data":{
"sql":"INSERT INTO `option` (`name`)
SELECT ?
FROM DUAL
WHERE NOT EXISTS (
SELECT `name`
FROM `option`
WHERE `name` = ?
)",
"host":"master_host"
},
"set_pages_ref_data":{
"sql":"INSERT INTO `pages` (`test_id`, `url`)
SELECT ?, ?
FROM DUAL
WHERE NOT EXISTS (
SELECT `test_id`, `url`
FROM `pages`
WHERE `test_id` = ? AND `url` = ?
)",
"host":"master_host"
},
"set_build_data":{
"sql":"INSERT INTO `build` (`product_id`,
`test_build_id`,
`processor`,
`revision`,
`build_type`,
`build_date`)
SELECT ?, ?, ?, ?, ?, ?
FROM DUAL
WHERE NOT EXISTS (
SELECT `test_build_id`
FROM `build`
WHERE `test_build_id` = ?
)",
"host":"master_host"
},
"set_test_run_data":{
"sql":"INSERT INTO `test_run` (`test_id`,
`build_id`,
`machine_id`,
`revision`,
`date_run`)
VALUES (?,?,?,?,?)",
"host":"master_host"
},
"set_test_values":{
"sql":"INSERT INTO `test_value` (`test_run_id`,
`run_id`,
`page_id`,
`value_id`,
`value`)
VALUES (?,?,?,?,?)",
"host":"master_host"
},
"set_aux_values":{
"sql":"INSERT INTO `test_aux_data` (`test_run_id`,
`run_id`,
`aux_data_id`,
`numeric_data`,
`string_data`)
VALUES (?,?,?,?,?)",
"host":"master_host"
},
"set_test_option_values":{
"sql":"INSERT INTO `test_option_values` (`test_run_id`,
`option_id`,
`value`)
VALUES (?,?,?)",
"host":"master_host"
},
"set_summary_cache":{
"sql":"INSERT INTO `summary_cache` (`item_id`, `item_data`, `value`, `date`)
VALUES (?, ?, ?, ?)
ON DUPLICATE KEY UPDATE `value` = ?, `date` = ?",
"host":"master_host"
},
"set_test_collection":{
"sql":"INSERT INTO `test_collection` (`name`, `description`)
VALUES (?, ?)",
"host":"master_host"
},
"set_test_collection_map":{
"sql":"INSERT INTO `test_collection_map` (`test_collection_id`, `product_id`)
VALUES (?, ?)",
"host":"master_host"
},
"set_test_page_metric":{
"sql":"INSERT INTO `test_page_metric` (`test_run_id`,
`metric_id`,
`metric_value_id`,
`page_id`,
`value`,
`threshold_test_run_id`)
VALUES (?, ?, ?, ?, ?, ?)",
"host":"master_host"
},
"set_metric_threshold":{
"sql":"INSERT INTO `metric_threshold` (`product_id`,
`operating_system_id`,
`processor`,
`build_type`,
`metric_id`,
`test_id`,
`page_id`,
`test_run_id`,
`revision`)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
ON DUPLICATE KEY UPDATE `product_id` = ?,
`operating_system_id` = ?,
`processor` = ?,
`build_type` = ?,
`metric_id` = ?,
`test_id` = ?,
`page_id` = ?,
`test_run_id` = ?,
`revision` = ?",
"host":"master_host"
},
"set_application_msg":{
"sql":"INSERT INTO `application_log` (`revision`,
`test_run_id`,
`msg_type`,
`msg`,
`msg_date`)
VALUES (?,?,?,?,?)",
"host":"master_host"
},
"get_application_log":{
"sql":"SELECT `revision`,
`test_run_id`,
`msg_type`,
`msg`,
`msg_date`
FROM `application_log`
WHERE `revision` = ?",
"host":"read_host"
}
},
"selects":{
"get_test_run_summary":{
"sql":"SELECT tr.id AS 'test_run_id',
tr.revision,
tr.date_run,
b.product_id,
tr.test_id,
m.operating_system_id,
ROUND( AVG(tv.value), 2 ) AS avg,
ROUND( MIN(tv.value), 2 ) AS min,
ROUND( MAX(tv.value), 2 ) AS max,
ROUND( STDDEV(tv.value), 2 ) AS 'std'
FROM test_run AS tr
LEFT JOIN machine AS m ON tr.machine_id = m.id
LEFT JOIN test_value AS tv ON tr.id = tv.test_run_id
LEFT JOIN build AS b ON tr.build_id = b.id
WHERE (tr.date_run >= REP0 AND tr.date_run <= REP1) REP2
GROUP BY tr.id, tr.revision, b.product_id, tr.test_id, m.operating_system_id
ORDER BY tr.date_run ASC",
"host":"read_host"
},
"get_all_test_runs":{
"sql":"SELECT tr.id AS 'test_run_id',
tr.revision,
tr.date_run,
b.product_id,
tr.test_id,
m.operating_system_id,
ROUND( AVG(tv.value), 2 ) AS avg,
ROUND( MIN(tv.value), 2 ) AS min,
ROUND( MAX(tv.value), 2 ) AS max,
ROUND( STDDEV(tv.value), 2 ) AS 'std'
FROM test_run AS tr
LEFT JOIN machine AS m ON tr.machine_id = m.id
LEFT JOIN test_value AS tv ON tr.id = tv.test_run_id
LEFT JOIN build AS b ON tr.build_id = b.id
GROUP BY tr.id, tr.revision, b.product_id, tr.test_id, m.operating_system_id
ORDER BY tr.date_run ASC",
"host":"read_host"
},
"get_test_runs":{
"sql":"SELECT SQL_CALC_FOUND_ROWS
tr.revision, tr.date_run, tr.status,
p.branch, p.product, p.version
FROM test_run as tr
LEFT JOIN build as b ON tr.build_id = b.id
LEFT JOIN product as p ON b.product_id = p.id
WHERE tr.date_run BETWEEN ? AND ?
AND p.branch = ?
ORDER BY tr.date_run DESC
LIMIT 0, 80",
"host":"read_host"
},
"get_found_rows":{
"sql":"SELECT FOUND_ROWS()",
"host":"read_host"
},
"get_test_run_counts":{
"sql":"SELECT COUNT(tr.id) as count, p.branch
FROM test_run as tr
LEFT JOIN build as b ON tr.build_id = b.id
LEFT JOIN product as p ON b.product_id = p.id
WHERE tr.date_run BETWEEN ? AND ?
GROUP BY p.branch",
"host":"read_host"
},
"get_test_run_ids":{
"sql":"SELECT DISTINCT(tr.id) AS test_run_id
FROM test_run AS tr
LEFT JOIN build AS b ON b.id = tr.build_id
LEFT JOIN product AS p ON p.id = b.product_id
LEFT JOIN machine AS m ON m.id = tr.machine_id
LEFT JOIN operating_system as os on os.id = m.operating_system_id
LEFT JOIN test as t on t.id = tr.test_id
WHERE p.branch = ? AND tr.revision = ? REP0",
"host":"read_host"
},
"get_test_run_ids_no_revision":{
"sql":"SELECT DISTINCT(tr.id) AS test_run_id
FROM test_run AS tr
LEFT JOIN test_value AS tv ON tr.id = tv.test_run_id
LEFT JOIN pages AS pg ON tv.page_id = pg.id
LEFT JOIN build AS b ON b.id = tr.build_id
LEFT JOIN product AS p ON p.id = b.product_id
LEFT JOIN machine AS m ON m.id = tr.machine_id
LEFT JOIN operating_system as os on os.id = m.operating_system_id
LEFT JOIN test as t on t.id = tr.test_id
WHERE p.branch = ? REP0",
"host":"read_host"
},
"get_test_run_ids_from_pushlog_ids":{
"sql":"SELECT DISTINCT(tpm.test_run_id)
FROM test_page_metric AS tpm
LEFT JOIN metric_value AS mv ON tpm.metric_value_id = mv.id
WHERE mv.name = 'pushlog_id' AND tpm.value IN (REP0)",
"host":"read_host"
},
"get_distinct_test_run_revisions":{
"sql":"SELECT distinct revision FROM test_run",
"host":"read_host"
},
"get_test_run_values":{
"sql":"SELECT tv.test_run_id,
tv.page_id,
tv.run_id,
tr.revision,
tr.date_run,
b.product_id,
tr.test_id,
m.operating_system_id,
p.url,
v.name AS value_name,
tv.value
FROM test_value AS tv
LEFT JOIN pages AS p ON tv.page_id = p.id
LEFT JOIN value AS v ON tv.value_id = v.id
LEFT JOIN test_run AS tr ON tv.test_run_id = tr.id
LEFT JOIN machine AS m ON tr.machine_id = m.id
LEFT JOIN build AS b ON tr.build_id = b.id
WHERE tv.test_run_id = ?
ORDER BY p.url, tv.value ASC",
"host":"read_host"
},
"get_test_run_value_summary":{
"sql":"SELECT tv.test_run_id,
tv.page_id,
tv.run_id,
tr.revision,
tr.test_id,
tr.date_run,
b.product_id,
tr.test_id,
m.operating_system_id,
p.url,
ROUND( AVG(tv.value), 2 ) AS avg,
ROUND( MIN(tv.value), 2 ) AS min,
ROUND( MAX(tv.value), 2 ) AS max,
ROUND( STDDEV(tv.value), 2 ) AS 'std'
FROM test_value AS tv
LEFT JOIN pages AS p ON tv.page_id = p.id
LEFT JOIN value AS v ON tv.value_id = v.id
LEFT JOIN test_run AS tr ON tv.test_run_id = tr.id
LEFT JOIN machine AS m ON tr.machine_id = m.id
LEFT JOIN build AS b ON tr.build_id = b.id
WHERE tv.test_run_id = ?
GROUP BY tv.page_id
ORDER BY p.url, tv.value ASC",
"host":"read_host"
},
"get_page_values":{
"sql":"SELECT tv.id AS test_value_id,
tv.test_run_id,
tv.page_id,
tv.run_id,
tr.revision,
tr.date_run,
b.product_id,
tr.test_id,
m.operating_system_id,
p.url,
v.name AS value_name,
tv.value
FROM test_value AS tv
LEFT JOIN pages AS p ON tv.page_id = p.id
LEFT JOIN value AS v ON tv.value_id = v.id
LEFT JOIN test_run AS tr ON tv.test_run_id = tr.id
LEFT JOIN machine AS m ON tr.machine_id = m.id
LEFT JOIN build AS b ON tr.build_id = b.id
WHERE tv.test_run_id = ? AND tv.page_id = ?
ORDER BY p.url, tv.run_id ASC",
"host":"read_host"
},
"get_product_test_os_map":{
"sql":"SELECT b.product_id, tr.test_id, m.operating_system_id
FROM test_run AS tr
LEFT JOIN machine AS m ON tr.machine_id = m.id
LEFT JOIN build AS b ON tr.build_id = b.id
WHERE b.product_id IN (
SELECT product_id
FROM product )
GROUP BY b.product_id, tr.test_id, m.operating_system_id",
"host":"read_host"
},
"get_tests":{
"sql":"SELECT `id`, `name`, `version` FROM `test`",
"host":"read_host"
},
"get_operating_systems":{
"sql":"SELECT `id`, `name`, `version` FROM operating_system",
"host":"read_host"
},
"get_aux_data":{
"sql":"SELECT `id`, `test_id`, `name` FROM `aux_data`",
"host":"read_host"
},
"get_product_data":{
"sql":"SELECT `id`, `product`, `branch`, `version`, `default_product` FROM `product`",
"host":"read_host"
},
"get_default_products":{
"sql":"SELECT `id`, `product`, `branch`, `version`, `default_product`
FROM `product`
WHERE `default_product` = 1",
"host":"read_host"
},
"get_machines":{
"sql":"SELECT `id`, `name` FROM `machine`",
"host":"read_host"
},
"get_options":{
"sql":"SELECT `id`, `name` FROM `option`",
"host":"read_host"
},
"get_aux_data":{
"sql":"SELECT `id`, `test_id`, `name` FROM `aux_data`",
"host":"read_host"
},
"get_pages":{
"sql":"SELECT `id`, `test_id`, `url` FROM `pages`",
"host":"read_host"
},
"get_summary_cache":{
"sql":"SELECT `item_id`, `item_data`, `value`, `date`
FROM `summary_cache`
WHERE `item_id` = ? AND `item_data` = ?",
"host":"master_host"
},
"get_all_summary_cache_data":{
"sql":"SELECT `item_id`, `item_data`, `value`, `date`
FROM `summary_cache`",
"host":"master_host"
},
"get_summary_cache_keys":{
"sql":"SELECT `item_id`, `item_data`
FROM `summary_cache`",
"host":"master_host"
},
"get_test_collections":{
"sql":"SELECT tc.id,
tc.name,
tc.description,
tcm.test_id,
tcm.product_id,
tcm.operating_system_id
FROM test_collection AS tc
LEFT JOIN test_collection_map AS tcm ON tc.id = tcm.test_collection_id
LEFT JOIN test AS t ON tcm.test_id = t.id
ORDER BY tc.name",
"host":"read_host"
},
"get_build_id":{
"sql":"SELECT `id`
FROM `build`
WHERE `test_build_id` = ?",
"host":"read_host"
},
"get_test_id":{
"sql":"SELECT `id`
FROM `test`
WHERE `name` = ? AND `version` = ?",
"host":"read_host"
},
"get_option_id":{
"sql":"SELECT `id`
FROM `option`
WHERE `name` = ?",
"host":"read_host"
},
"get_os_id":{
"sql":"SELECT `id`
FROM `operating_system`
WHERE `name` = ? AND `version` = ?",
"host":"read_host"
},
"get_product_id":{
"sql":"SELECT `id`
FROM `product`
WHERE `product` = ? AND `branch` = ? AND `version` = ?",
"host":"read_host"
},
"get_machine_id":{
"sql":"SELECT `id`
FROM `machine`
WHERE `name` = ? AND `operating_system_id` = ?",
"host":"read_host"
},
"get_page_id":{
"sql":"SELECT `id`
FROM `pages`
WHERE `test_id` = ? AND `url` = ?",
"host":"read_host"
},
"get_aux_data_id":{
"sql":"SELECT `id`
FROM `aux_data`
WHERE `test_id` = ? AND `name` = ?",
"host":"read_host"
},
"get_metric_collection":{
"sql":"SELECT m.id AS 'metric_id',
m.name AS 'metric_name',
mv.id AS 'metric_value_id',
mv.name AS 'metric_value_name'
FROM `metric` AS m
LEFT JOIN `metric_value` AS mv ON m.id = mv.metric_id",
"host":"read_host"
},
"get_metric_threshold_test_run":{
"sql":"SELECT mt.test_run_id, mt.revision
FROM metric_threshold AS mt
WHERE mt.product_id = ? AND
mt.operating_system_id = ? AND
mt.processor = ? AND
mt.build_type = ? AND
mt.metric_id = ? AND
mt.test_id = ? AND
mt.page_id = ?",
"host":"read_host"
},
"get_test_evaluations_from_test_run_ids":{
"sql":"SELECT b.id AS 'build_id',
b.product_id,
m.operating_system_id,
m.name AS 'machine_name',
o.name AS 'operating_system_name',
o.version AS 'operating_system_version',
p.product AS 'product_name',
p.branch AS 'product_branch',
p.version AS 'product_version',
b.processor,
b.build_type,
b.test_build_id,
mv.metric_id,
tr.test_id,
tr.date_run AS 'date',
t.name AS 'test_name',
pg.url AS 'page_name',
tpm.page_id,
tpm.metric_value_id,
mv.name AS 'metric_value_name',
tpm.test_run_id,
tpm.threshold_test_run_id,
tr.revision,
tpm.value
FROM `test_page_metric` AS tpm
LEFT JOIN `pages` AS pg ON tpm.page_id = pg.id
LEFT JOIN `test_run` AS tr ON tpm.test_run_id = tr.id
LEFT JOIN `build` AS b ON tr.build_id = b.id
LEFT JOIN `product` AS p ON b.product_id = p.id
LEFT JOIN `test` AS t ON tr.test_id = t.id
LEFT JOIN `metric_value` AS mv ON tpm.metric_value_id = mv.id
LEFT JOIN `machine` AS m ON tr.machine_id = m.id
LEFT JOIN `operating_system` AS o ON m.operating_system_id = o.id
WHERE mv.name IN ('test_evaluation',
'mean',
'stddev',
'trend_mean',
'trend_stddev',
'p',
'h0_rejected',
'n_replicates')
AND tr.id IN (REP0)",
"host":"read_host"
},
"get_computed_metrics_from_test_run_ids":{
"sql":"SELECT b.id AS 'build_id',
b.product_id,
m.operating_system_id,
m.name AS 'machine_name',
o.name AS 'operating_system_name',
o.version AS 'operating_system_version',
p.product AS 'product_name',
p.branch AS 'product_branch',
p.version AS 'product_version',
b.processor,
b.build_type,
b.test_build_id,
mv.metric_id,
tr.test_id,
tr.date_run AS 'date',
t.name AS 'test_name',
pg.url AS 'page_name',
tpm.page_id,
tpm.metric_value_id,
mv.name AS 'metric_value_name',
tpm.test_run_id,
tpm.threshold_test_run_id,
tr.revision,
tpm.value
FROM `test_page_metric` AS tpm
LEFT JOIN `pages` AS pg ON tpm.page_id = pg.id
LEFT JOIN `test_run` AS tr ON tpm.test_run_id = tr.id
LEFT JOIN `build` AS b ON tr.build_id = b.id
LEFT JOIN `product` AS p ON b.product_id = p.id
LEFT JOIN `test` AS t ON tr.test_id = t.id
LEFT JOIN `metric_value` AS mv ON tpm.metric_value_id = mv.id
LEFT JOIN `machine` AS m ON tr.machine_id = m.id
LEFT JOIN `operating_system` AS o ON m.operating_system_id = o.id
WHERE tr.id IN (REP0)",
"host":"read_host"
},
"get_computed_metrics":{
"sql":"SELECT b.id AS 'build_id',
b.product_id,
m.operating_system_id,
b.processor,
b.build_type,
mv.metric_id,
tr.test_id,
t.name AS 'test_name',
tpm.page_id,
tpm.metric_value_id,
mv.name AS 'metric_value_name',
tpm.test_run_id,
tpm.threshold_test_run_id,
tr.revision,
tpm.value
FROM `test_page_metric` AS tpm
LEFT JOIN `test_run` AS tr ON tpm.test_run_id = tr.id
LEFT JOIN `build` AS b ON tr.build_id = b.id
LEFT JOIN `test` AS t ON tr.test_id = t.id
LEFT JOIN `metric_value` AS mv ON tpm.metric_value_id = mv.id
LEFT JOIN `machine` AS m ON tr.machine_id = m.id
WHERE tr.revision = ?",
"host":"read_host"
},
"get_metrics_data_from_ref_data":{
"sql":"SELECT b.id AS 'build_id',
b.product_id,
m.operating_system_id,
b.processor,
b.build_type,
mv.metric_id,
tr.test_id,
t.name AS 'test_name',
tpm.page_id,
tpm.metric_value_id,
mv.name AS 'metric_value_name',
tpm.test_run_id,
tpm.threshold_test_run_id,
tr.revision,
tpm.value
FROM `test_page_metric` AS tpm
LEFT JOIN `test_run` AS tr ON tpm.test_run_id = tr.id
LEFT JOIN `build` AS b ON tr.build_id = b.id
LEFT JOIN `test` AS t ON tr.test_id = t.id
LEFT JOIN `metric_value` AS mv ON tpm.metric_value_id = mv.id
LEFT JOIN `machine` AS m ON tr.machine_id = m.id
WHERE b.product_id = ? AND
m.operating_system_id = ? AND
b.processor = ? AND
b.build_type = ? AND
tr.test_id = ? AND
tr.id = ?",
"host":"read_host"
},
"get_metrics_data_from_test_run_id_and_page_id":{
"sql":"SELECT b.id AS 'build_id',
b.product_id,
m.operating_system_id,
b.processor,
b.build_type,
mv.metric_id,
tr.test_id,
t.name AS 'test_name',
tpm.page_id,
tpm.metric_value_id,
mv.name AS 'metric_value_name',
tpm.test_run_id,
tpm.threshold_test_run_id,
tr.revision,
tpm.value AS 'metric_value'
FROM `test_page_metric` AS tpm
LEFT JOIN `test_run` AS tr ON tpm.test_run_id = tr.id
LEFT JOIN `build` AS b ON tr.build_id = b.id
LEFT JOIN `test` AS t ON tr.test_id = t.id
LEFT JOIN `metric_value` AS mv ON tpm.metric_value_id = mv.id
LEFT JOIN `machine` AS m ON tr.machine_id = m.id
WHERE tpm.test_run_id = ? AND tpm.page_id = ?",
"host":"read_host"
},
"get_test_values_by_revision":{
"sql":"SELECT tr.id AS 'test_run_id',
b.product_id,
m.operating_system_id,
b.id AS 'build_id',
b.processor,
b.build_type,
tr.test_id,
t.name AS 'test_name',
tr.revision,
p.branch,
tv.run_id,
tv.page_id,
tv.value
FROM `test_run` AS tr
LEFT JOIN `build` AS b ON tr.build_id = b.id
LEFT JOIN `product` AS p ON b.product_id = p.id
LEFT JOIN `machine` AS m ON tr.machine_id = m.id
LEFT JOIN `test` AS t ON tr.test_id = t.id
LEFT JOIN `test_value` AS tv ON tr.id = tv.test_run_id
WHERE tr.revision = ?",
"host":"read_host"
},
"get_test_values_by_ref_data":{
"sql":"SELECT tr.id AS 'test_run_id',
b.product_id,
m.operating_system_id,
b.id AS 'build_id',
b.processor,
b.build_type,
tr.test_id,
t.name AS 'test_name',
tr.revision,
p.branch,
tv.run_id,
tv.page_id,
tv.value
FROM `test_run` AS tr
LEFT JOIN `build` AS b ON tr.build_id = b.id
LEFT JOIN `product` AS p ON b.product_id = p.id
LEFT JOIN `machine` AS m ON tr.machine_id = m.id
LEFT JOIN `test` AS t ON tr.test_id = t.id
LEFT JOIN `test_value` AS tv ON tr.id = tv.test_run_id
WHERE b.product_id = ? AND
m.operating_system_id = ? AND
b.processor = ? AND
b.build_type = ? AND
tr.test_id = ? AND
tr.revision = ?",
"host":"read_host"
},
"get_test_values_by_test_run_id":{
"sql":"SELECT tr.id AS 'test_run_id',
b.product_id,
b.id AS 'build_id',
m.operating_system_id,
b.processor,
b.build_type,
tr.test_id,
t.name AS 'test_name',
tr.revision,
p.branch,
tv.run_id,
tv.page_id,
tv.value
FROM `test_run` AS tr
LEFT JOIN `build` AS b ON tr.build_id = b.id
LEFT JOIN `product` AS p ON b.product_id = p.id
LEFT JOIN `machine` AS m ON tr.machine_id = m.id
LEFT JOIN `test` AS t ON tr.test_id = t.id
LEFT JOIN `test_value` AS tv ON tr.id = tv.test_run_id
WHERE tr.id = ?",
"host":"read_host"
},
"get_test_values_by_test_run_id_and_page_id":{
"sql":"SELECT tr.id AS 'test_run_id',
b.id AS 'build_id',
b.product_id,
m.operating_system_id,
b.processor,
b.build_type,
b.build_type,
tr.test_id,
t.name AS 'test_name',
tr.revision,
p.branch,
tv.run_id,
tv.page_id,
tv.value
FROM `test_run` AS tr
LEFT JOIN `build` AS b ON tr.build_id = b.id
LEFT JOIN `product` AS p ON b.product_id = p.id
LEFT JOIN `machine` AS m ON tr.machine_id = m.id
LEFT JOIN `test` AS t ON tr.test_id = t.id
LEFT JOIN `test_value` AS tv ON tr.id = tv.test_run_id
WHERE tr.id = ? AND tv.page_id = ?",
"host":"read_host"
}
}
}
Jump to Line
Something went wrong with that request. Please try again.