-
Notifications
You must be signed in to change notification settings - Fork 54
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
Update LDMS Variorum sampler to support Variorum v0.8 #1447
Conversation
@tpatki Could you also please this squash this PR together into just a small set of clean commits? You will also need to include appropriate autoconf checks since this will now only work with variorum 0.8 or newer. |
@morrone Yes, I will squash into clean commits when we're done testing and when I mark this as ready for review (will be a few weeks until @kshoga1 can test on Mutt.)
Could you please clarify this? We were not checking for a specific version in |
Better than a specific version check is to test for features in the library that the code requires. For instance, are there some unique new function in the new version of the library? You could add a test for that function in the library. LDMS's configure.ac has an AC_LIB_HAVE_LINKFLAGS test for variorum. There is an additional "testcode" field for that macro where you could put a tiny bit of C code that calls a function that is unique to the newer version of the code. https://www.gnu.org/software/gnulib/manual/html_node/Searching-for-Libraries.html |
@tpatki Ok great, thanks for the update. |
@morrone, please confirm that this is not a target for 4.4.5. |
Except for reviewing here, I'm not really involved in that work. But my understanding is that it'll happen when it happens, and we should not hold up the release for this work. |
@tpatki please reopen this pull request when it is ready for review. |
Hi @morrone : @kshoga1 tested this on an LC system this afternoon, and we can confirm that the plugin builds correctly on LC systems and the power data reported is correct. We also discussed your suggestion of adding a small testcode with If you have other suggestions on how we can do a version check, let us know. This PR is ready for your review and ready to go. We don't have permissions to reopen this PR. I have squashed the commits on the branch here, but the PR is not updating as it is closed. |
@tpatki This PR was opened against OVIS-4, which we've done away with. We now use the more standard "main" branch name for the main development branch. github won't let me reopen either becasue OVIS-4 doesn't exist. I would recommend just opening a new PR. On the topic of version checking: It looks like variorum supplies a variorum.pc file, which is great! But at least as of 0.6.0 it looks like that file is installed in the wrong path on the system. It looks like currrently it is going in /usr/share/, and I think it needs to be in ${libpath}/pkgconfig/ or /usr/share/pkgconfig/ If that can be fixed in variorum 0.8's rpm, then the following patch might meet our needs.
|
Work in Progress, not ready for review.
Fixes #1431.
This PR updates the JSON API and the parsing of power data based on Variorum 0.8.
ToDo:
Testing: