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

Check for undefined symbols #145 #155

Merged

Conversation

var77
Copy link
Collaborator

@var77 var77 commented Sep 18, 2023

I have modified scripts/extern_defined.sh script to get the postgres binary dependencies dynamic and also get postgres binary path from pgconfig.
Now there will be check in CI for undefined symbols in our binary.

For test I have added undefined function in our hnsw.h header file and the called that function from hnsw.c file. The check is returning the missing symbol correctly
Pasted Graphic

closes #145

@Ngalstyan4
Copy link
Contributor

Please comment each line with some info on why we need it. the old code comments could help.

Also, please test locally that if you create an undefined function, this check fails, even when compilation of the shared library succeeds.

Otherwise, looks good!

@var77 var77 marked this pull request as ready for review September 19, 2023 12:03
Copy link
Contributor

@Ngalstyan4 Ngalstyan4 left a comment

Choose a reason for hiding this comment

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

Looks good!

@var77 var77 force-pushed the feature/ci-check-undefined-symbols branch from c0d04b4 to 1e614b7 Compare September 19, 2023 18:25
@Ngalstyan4 Ngalstyan4 merged commit 40dcf10 into lanterndata:main Sep 20, 2023
25 of 26 checks passed
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.

Check for undefined symbols in our shared library that will not be provided by postgres in CI/CD
2 participants