From 093b7e1846b43273538e9b50898685478ceb6089 Mon Sep 17 00:00:00 2001 From: Ruifeng Zheng Date: Wed, 25 Oct 2023 09:14:33 +0900 Subject: [PATCH] [SPARK-45648][INFRA] Add `sql/api` and `common/utils` to `modules.py` ### What changes were proposed in this pull request? Add `sql/api` and `common/utils` to `modules.py` ### Why are the changes needed? new modules should be covered in `modules.py`, otherwise related tests maybe wrongly skipped in some cases ### Does this PR introduce _any_ user-facing change? no, infra-only ### How was this patch tested? ci ### Was this patch authored or co-authored using generative AI tooling? no Closes #43501 from zhengruifeng/infra_sql_api. Authored-by: Ruifeng Zheng Signed-off-by: Hyukjin Kwon --- .github/workflows/build_and_test.yml | 4 ++-- dev/sparktestsupport/modules.py | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index cb0715ffd3716..13e751bcaa77b 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -141,11 +141,11 @@ jobs: # Note that the modules below are from sparktestsupport/modules.py. modules: - >- - core, unsafe, kvstore, avro, + core, unsafe, kvstore, avro, utils, network-common, network-shuffle, repl, launcher, examples, sketch, graphx - >- - catalyst, hive-thriftserver + api, catalyst, hive-thriftserver - >- mllib-local,mllib - >- diff --git a/dev/sparktestsupport/modules.py b/dev/sparktestsupport/modules.py index 2a40450652440..95c9069a83131 100644 --- a/dev/sparktestsupport/modules.py +++ b/dev/sparktestsupport/modules.py @@ -157,6 +157,14 @@ def __hash__(self): ], ) +utils = Module( + name="utils", + dependencies=[tags], + source_file_regexes=[ + "common/utils/", + ], +) + launcher = Module( name="launcher", dependencies=[tags], @@ -179,9 +187,17 @@ def __hash__(self): ], ) +api = Module( + name="api", + dependencies=[utils, unsafe], + source_file_regexes=[ + "sql/api/", + ], +) + catalyst = Module( name="catalyst", - dependencies=[tags, core], + dependencies=[tags, core, api], source_file_regexes=[ "sql/catalyst/", ],