-
Notifications
You must be signed in to change notification settings - Fork 304
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
DAOS-623 build: Use AddMethod for adding methods to environments. #10654
Conversation
Signed-off-by: Ashley Pittman <[email protected]>
Bug-tracker data: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Signed-off-by: Ashley Pittman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Test stage NLT on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10654/2/execution/node/639/log |
Signed-off-by: Ashley Pittman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
def setup(env): | ||
"""Add daos specific methods to environment""" | ||
env.AddMethod(_add_build_rpath, 'd_add_build_rpath') | ||
env.AddMethod(_configure_mpi, 'd_configure_mpi') | ||
env.AddMethod(_run_command, 'd_run_command') | ||
env.AddMethod(_add_rpaths, 'd_add_rpaths') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the real change in this PR, the rest is just fluff.
- Is this worthwhile?
- do we want a common 'd_' prefix for all our methods to make it clear they're non-standard.
- Should we copy the CamelCase naming of existing methods?
- Assuming this is worthwhile should we do it for all daos_build functions (which will touch more code than this PR).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For point 2, I think we already have other precedent where we add stuff and don't name it specially. For instance, Configure CheckFlag and CheckFlagCC. I think it would be fine to do something like AddBuildRPATH. For point 4, possibly. But I wouldn't do that in a single PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would mean that we'd replace daos_build.library() with env.Library(), yet there is already a method with that name, the one that we're wrapping/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could do something like DAOSLibrary, I suppose
Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10654/3/execution/node/1131/log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Signed-off-by: Ashley Pittman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Test stage Functional on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10654/6/execution/node/878/log |
…0654) * Apply change to compiler_setup. Signed-off-by: Ashley Pittman <[email protected]>
…os-stack#10654) * Apply change to compiler_setup. Signed-off-by: Ashley Pittman <[email protected]>
Signed-off-by: Ashley Pittman [email protected]