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

Add median calculation (and cfitsio) to automated regression tests #57

Merged
merged 13 commits into from
Oct 12, 2018

Conversation

mcfadden8
Copy link
Collaborator

This small set of changes will allow us to build with the cfitsio library on multiple systems including our TOSS3 CI system. This automated CI scripts will now also run our median calculation test as part of our standard regression tests.

I also fixed a bug with the logging demon not being launched when a user tries to run umap programs from the build directory instead of the install directory.

@@ -28,7 +28,7 @@ export BUILD_DIR=build-${SYS_TYPE}

export COMPILER=${1:-gcc_4_8_5}
export BUILD_TYPE=${2:-Release}
export BUILD_OPTIONS="-DENABLE_STATS=On -DENABLE_CFITS=Off -DENABLE_FITS_TESTS=Off ${BUILD_OPTIONS}"
export BUILD_OPTIONS="-DENABLE_STATS=On -DENABLE_CFITS=On -DENABLE_FITS_TESTS=On -DCFITS_LIBRARY_PATH=/g/g0/martymcf/.bin/toss_3_x86_64/lib -DCFITS_INCLUDE_PATH=/g/g0/martymcf/.bin/toss_3_x86_64/include ${BUILD_OPTIONS}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

The hard coded library path won't work in general.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I agree. This particular script is for our TOSS-3 CI machine. By design (not mine), the script needs to run as me and the CFITS files needed to be installed in my home directory. I could add these files to an environment variable, but the path would still be specific.

I need to think about this some more.

Copy link
Collaborator

@mayagokhale mayagokhale left a comment

Choose a reason for hiding this comment

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

Have put a couple of minor comments in line. The main one is about the hard coded path to your directory.

@mcfadden8
Copy link
Collaborator Author

mcfadden8 commented Oct 12, 2018

Thanks @mayagokhale, I will add the comments and will figure out what the best thing is to do about the CI script.

@mayagokhale
Copy link
Collaborator

mayagokhale commented Oct 12, 2018 via email

@mcfadden8
Copy link
Collaborator Author

This particular script is not meant for humans to run. It is meant for bamboo (our CI) to run. We have a different script under tests/regression_tests that humans can run.

I think I will move this script to a 'bamboo' sub-directory and add a comment. I also think I can move the path definitions up into the bamboo definition and just reference that from this particular script. I'll also add a comment to this script to direct folks to where the human usable scripts are.

Moved build platform environment specific data up to the bamboo project
plan definition (ie. specification of location of dependent build files
like the CFITS library installation location)
@mcfadden8
Copy link
Collaborator Author

Hi @mayagokhale,

I believe I have addressed the concerns. Please let me know and I will perform the merge operation (I will squash the several testing commits that were done into a single commit).

Thank you very much for your review!

@mayagokhale
Copy link
Collaborator

mayagokhale commented Oct 12, 2018 via email

@mcfadden8 mcfadden8 merged commit b5c33d6 into develop Oct 12, 2018
@mcfadden8 mcfadden8 deleted the mcfadden8/logging-fix branch October 12, 2018 16:27
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.

2 participants