-
Notifications
You must be signed in to change notification settings - Fork 7
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
Hotfix: fixes CI by correcting cpp-logger and DLIO profiler/dftracer stuff #117
Hotfix: fixes CI by correcting cpp-logger and DLIO profiler/dftracer stuff #117
Conversation
dc75990
to
c2a17a6
Compare
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.
Few small comments.
@ilumsden We will have to switch DYAD_PROFILER macros to use DFTracer as well. |
Good point. I was only thinking about it from the Python side since that was the only place where things were failing in CI. But, if I'm going to make these changes in the Python API, I should do it in the main body of DYAD too. I'll work on that after lunch |
I recommend doing a search on DLIO_PROFILER and replacing it with DFTRACER. You will have macros, apis, env variables. |
@hariharan-devarajan I made all the changes you requested. |
src/dyad/core/dyad_ctx.c
Outdated
@@ -286,24 +289,25 @@ dyad_rc_t dyad_init (bool debug, | |||
} | |||
|
|||
ctx->relative_to_managed_path = relative_to_managed_path; | |||
DYAD_LOG_INFO (ctx, "DYAD_CORE INIT: relative_to_managed_path %s", \ | |||
DYAD_LOG_INFO (ctx, |
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 will end up in a compilation error.
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.
I updated the formatting changes
src/dyad/modules/dyad.c
Outdated
"DYAD_MOD: Failed to load file \"%s\" only read %zd of %zd.", \ | ||
fullpath, \ | ||
inlen, \ | ||
DYAD_LOG_ERROR (mod_ctx->ctx, |
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.
bunch of missing ''s
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.
I updated the formatting changes
src/dyad/modules/dyad.c
Outdated
if (flux_respond_error (h, msg, ENODATA, NULL) < 0) { | ||
DYAD_LOG_ERROR (mod_ctx->ctx, "DYAD_MOD: %s: flux_respond_error with ENODATA failed\n", __func__ ); | ||
DYAD_LOG_ERROR (mod_ctx->ctx, |
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.
missing '\'
s
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.
I updated the formatting changes
There are many needless styling modifications in this PR. Refrain from that in the future and focus on what the PR intends to fix. |
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.
With the fixes of missing backslashes, all looks good.
While looking at CI for other PRs, I found that GitHub Actions was failing to build DYAD because it couldn't find cpp-logger. After looking into the issue, I realized that our check for the
<PackageName>_FOUND
variable afterfind_package
was simply using the wrong variable name. It was usingCPP_LOGGER_FOUND
, while it should have been usingcpp-logger_FOUND
. This PR corrects that variable name.After fixing this issue with cpp-logger, I also discovered that CI was failing due to @hariharan-devarajan's recent renaming of DLIO profiler to dftracer. This PR also modifies the Python bindings to use the new name (and other minor API changes in dftracer).