Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defined Shims Should Be Declared In POM #10167

Merged
merged 5 commits into from
Jan 10, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build/shimplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ def __traverse_source_tree_of_all_shims(src_type, func):
"orphan shim files should be deleted"
build_ver_arr = map(lambda s: str(json.loads(s).get('spark')), shim_arr)
__log.debug("extracted shims %s", build_ver_arr)
for ver in build_ver_arr:
razajafri marked this conversation as resolved.
Show resolved Hide resolved
try:
__all_shims_arr.index(ver)
except:
raise Exception("shim for " + ver + " not defined in pom")
razajafri marked this conversation as resolved.
Show resolved Hide resolved
razajafri marked this conversation as resolved.
Show resolved Hide resolved
assert build_ver_arr == sorted(build_ver_arr),\
"%s shim list is not properly sorted" % shim_file_path
func(src_type, shim_file_path, build_ver_arr)
Expand Down