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

Fixing Extension naming CI Checker #4717

Merged
merged 14 commits into from
Sep 15, 2022
Merged

Fixing Extension naming CI Checker #4717

merged 14 commits into from
Sep 15, 2022

Conversation

pdet
Copy link
Contributor

@pdet pdet commented Sep 14, 2022

Fixes: #4671

# root_dir needs a trailing slash (i.e. /root/dir/)
extension_path = {}
for filename in glob.iglob('/tmp/' + '**/*.duckdb_extension', recursive=True):
extension_path[filename.split("/")[-1].split('.')[0]] = filename
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use os.path.splitext/basename here instead

@@ -39,12 +46,16 @@
if args.validate:
cur_function_map = {}
file = open(os.path.join("..","src","include","extension_functions.hpp"),'r')
pattern = re.compile("{\"(.*?)\", \"(.*?)\"},")
pattern = re.compile("(.*?){\"(.*?)\", \"(.*?)\"},")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use findall instead of iterating over every line in the file?

@pdet
Copy link
Contributor Author

pdet commented Sep 15, 2022

@Mytherin if you don't have any comments this is good to go.

@Mytherin Mytherin merged commit 27d89ca into duckdb:master Sep 15, 2022
@Mytherin
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix CI for extension function name list check
3 participants