Skip to content

Commit d8b2f58

Browse files
Split negative and illarg aggtests to balance runtime
1 parent 03b5144 commit d8b2f58

File tree

10 files changed

+50
-6
lines changed

10 files changed

+50
-6
lines changed

python/tests/runtime_aggtest/illarg_tests/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55

66
from test_agg import * # noqa: F403
77
from test_arr_map_type_fn import * # noqa: F403
8-
from test_date_time_fn import * # noqa: F403
9-
from test_numeric_type_fn import * # noqa: F403
108
from test_str_bin_type_fn import * # noqa: F403
119
from test_str_unicode_fn import * # noqa: F403
1210
from test_check_negative_tests import * # noqa: F403
1311
from test_cmp_operators import * # noqa: F403
14-
from test_window_agg import * # noqa: F403
1512
from test_cast import * # noqa: F403
1613
from test_grammar_tbl_fn import * # noqa: F403
1714
from test_illegal_tbl import * # noqa: F403
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Add here import statements for all files with tests
2+
3+
from tests.runtime_aggtest.aggtst_base import * # noqa: F403
4+
from tests.runtime_aggtest.atest_run import run # noqa: F403
5+
from test_date_time_fn import * # noqa: F403
6+
from test_numeric_type_fn import * # noqa: F403
7+
from test_window_agg import * # noqa: F403
8+
from tests.runtime_aggtest.illarg_tests.test_illegal_tbl import * # noqa: F403
9+
10+
11+
def main():
12+
run(
13+
"illarg_tests2",
14+
"illarg_",
15+
prefix_matches=[
16+
"test_",
17+
"tests.runtime_aggtest.illarg_tests.test_",
18+
"tests.runtime_aggtest.illarg_tests2.test_",
19+
],
20+
)
21+
22+
23+
if __name__ == "__main__":
24+
main()

python/tests/runtime_aggtest/illarg_tests/test_date_time_fn.py renamed to python/tests/runtime_aggtest/illarg_tests2/test_date_time_fn.py

File renamed without changes.

python/tests/runtime_aggtest/illarg_tests/test_numeric_type_fn.py renamed to python/tests/runtime_aggtest/illarg_tests2/test_numeric_type_fn.py

File renamed without changes.

python/tests/runtime_aggtest/illarg_tests/test_window_agg.py renamed to python/tests/runtime_aggtest/illarg_tests2/test_window_agg.py

File renamed without changes.

python/tests/runtime_aggtest/negative_tests/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from tests.runtime_aggtest.aggtst_base import * # noqa: F403
44
from tests.runtime_aggtest.atest_run import run # noqa: F403
55
from test_neg_arithmetic import * # noqa: F403
6-
from test_agg_arithmetic import * # noqa: F403
7-
from test_div_by_zero import * # noqa: F403
86
from test_neg_table import * # noqa: F403
97

108

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Add here import statements for all files with tests
2+
3+
from tests.runtime_aggtest.aggtst_base import * # noqa: F403
4+
from tests.runtime_aggtest.atest_run import run # noqa: F403
5+
from test_agg_arithmetic import * # noqa: F403
6+
from test_div_by_zero import * # noqa: F403
7+
from tests.runtime_aggtest.negative_tests.test_neg_table import * # noqa: F403
8+
9+
10+
def main():
11+
run(
12+
"negative_tests2",
13+
"neg_",
14+
prefix_matches=[
15+
"test_",
16+
"tests.runtime_aggtest.negative_tests.test_",
17+
"tests.runtime_aggtest.negative_tests2.test_",
18+
],
19+
)
20+
21+
22+
if __name__ == "__main__":
23+
main()

python/tests/runtime_aggtest/negative_tests/test_agg_arithmetic.py renamed to python/tests/runtime_aggtest/negative_tests2/test_agg_arithmetic.py

File renamed without changes.

python/tests/runtime_aggtest/negative_tests/test_div_by_zero.py renamed to python/tests/runtime_aggtest/negative_tests2/test_div_by_zero.py

File renamed without changes.

python/tests/runtime_aggtest/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ TESTS=(
1313
"asof_tests/main.py"
1414
"complex_type_tests/main.py"
1515
"illarg_tests/main.py"
16+
"illarg_tests2/main.py"
1617
"negative_tests/main.py"
18+
"negative_tests2/main.py"
1719
"orderby_tests/main.py"
1820
"variant_tests/main.py"
1921
)
@@ -27,4 +29,4 @@ if [ "${RUNTIME_AGGTEST_JOBS:-1}" -le 1 ]; then
2729
else
2830
echo "Running tests in parallel: ${RUNTIME_AGGTEST_JOBS} jobs"
2931
printf '%s\n' "${TESTS[@]}" | xargs -P "${RUNTIME_AGGTEST_JOBS}" -I{} bash -e -c 'echo "Running: {}"; uv run --locked "$PYTHONPATH/tests/runtime_aggtest/{}"'
30-
fi
32+
fi

0 commit comments

Comments
 (0)