mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-13 22:36:57 +00:00
test(perf): move high-cardinality constant-tag cases to the heavy set
The 10k and 100k constant-tag direct-SST cases repeatedly kill the self-hosted query-regression runner (lost communication during the run), while the default-cardinality case passes. Move them out of the default 'all' set into the heavy set so they only run on demand (case=heavy or the heavy-regression label), and qualify them locally instead. Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
This commit is contained in:
@@ -45,6 +45,11 @@ DEFAULT_CASES = [
|
||||
|
||||
HEAVY_CASES = [
|
||||
"tests/perf/query_cases/prom_remote_write_7913/case.toml",
|
||||
# High-cardinality direct-SST cases exceed the default query-regression
|
||||
# runner's resources (the self-hosted runner is repeatedly lost during the
|
||||
# run). Keep them in the heavy set so they only run on demand.
|
||||
"tests/perf/query_cases/promql_constant_tag_concat_ms_10k/case.toml",
|
||||
"tests/perf/query_cases/promql_constant_tag_concat_ms_100k/case.toml",
|
||||
]
|
||||
|
||||
CASE_GROUPS = {
|
||||
|
||||
@@ -51,10 +51,14 @@ class QueryRegressionCaseSelectionTest(unittest.TestCase):
|
||||
self.assertEqual(len(runner.DEFAULT_CASES), 9)
|
||||
self.assertEqual(runner.split_cases([]), runner.DEFAULT_CASES)
|
||||
|
||||
def test_heavy_selects_only_remote_write_7913(self) -> None:
|
||||
def test_heavy_selects_the_heavy_case_set(self) -> None:
|
||||
self.assertEqual(
|
||||
runner.split_cases(["heavy"]),
|
||||
["tests/perf/query_cases/prom_remote_write_7913/case.toml"],
|
||||
[
|
||||
"tests/perf/query_cases/prom_remote_write_7913/case.toml",
|
||||
"tests/perf/query_cases/promql_constant_tag_concat_ms_10k/case.toml",
|
||||
"tests/perf/query_cases/promql_constant_tag_concat_ms_100k/case.toml",
|
||||
],
|
||||
)
|
||||
|
||||
def test_explicit_paths_remain_selectable(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user