DAOS-18595 gurt: Handle "ERR" and "DBUG" environment values with DD_STDERR#17759
DAOS-18595 gurt: Handle "ERR" and "DBUG" environment values with DD_STDERR#17759
Conversation
|
Ticket title is 'ERROR and DBUG debug level names can not be used with DD_STDERR env variable' |
|
Test stage NLT completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-17759/1/testReport/ |
42f2919 to
1300346
Compare
…TDERR Previously, the DD_STDERR environment variable did not support the same set of values as DD_LOG_MASK. This patch updates the management of DD_STDERR to ensure consistent value handling between both environment variables. Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@hpe.com>
1300346 to
cd50cd7
Compare
|
Test stage Functional Hardware Medium MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-17759/11/testReport/ |
|
The only hardware failing test /dfuse/daos_build.py is not related to this PR but with CI connection issue with external resources as showed by the following logs: |
|
@grom72 , @jolivier23 @tanabarr and @wiliamhuang please could you have a look at this short PR ? |
| if (strncasecmp(env, "ERR", sizeof("ERR")) == 0) { | ||
| d_dbglog_data.dd_prio_err = DLOG_ERR; | ||
| goto out_env; | ||
| } |
There was a problem hiding this comment.
Isn't the value "err" available in the d_dbg_prio_dict array?
| if (strncasecmp(env, "ERR", sizeof("ERR")) == 0) { | |
| d_dbglog_data.dd_prio_err = DLOG_ERR; | |
| goto out_env; | |
| } |
There was a problem hiding this comment.
From the code, you are correct it is ERROR which is missing.
- Replace
ERRwithERROR
| if (env == NULL) | ||
| return; | ||
|
|
||
| /* handle some quirks */ |
There was a problem hiding this comment.
| /* handle some quirks */ | |
| /* DBUG can be used as an alias for DEBUG */ |
There was a problem hiding this comment.
- Update comment messages
…/daos-18595/patch-001
- Update comment messages - Replace ERR with ERROR Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@hpe.com>
Not sure any unit test exists for that. |
|
Test stage Functional Hardware Medium MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-17759/12/testReport/ |
…/daos-18595/patch-001
Add unit tests for DD_STDERR environment variable parsing, covering standard values, case insensitivity, invalid inputs, and unset behavior. Also add cmocka test filter support via command-line argument when built with cmocka >= 1.1.5. Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@hpe.com>
…/daos-18595/patch-001
Remove extra tabs in variable declarations and struct member definitions in test_dd_stderr function to align with consistent spacing style. Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@hpe.com>
Replace tab-aligned columns with consistent 4-space indentation in the test_dd_stderr test case array. Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@hpe.com>
|
Test stage Functional Hardware Medium MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-17759/16/execution/node/1256/log |
| {"Warn", DLOG_WARN}, | ||
| {"CRIT", DLOG_CRIT}, | ||
| {"Info", DLOG_INFO}, | ||
| {"error", DLOG_ERR}, |
There was a problem hiding this comment.
this seems to be a duplicate case, did you mean to change case somehow?
There was a problem hiding this comment.
- Fix duplicate cases
| {"CRIT", DLOG_CRIT}, | ||
| {"Info", DLOG_INFO}, | ||
| {"error", DLOG_ERR}, | ||
| {"dbug", DLOG_DBG}, |
There was a problem hiding this comment.
- Fix duplicate cases
…/daos-18595/patch-001
Fix reviewers comments: - Fix duplicate cases Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@hpe.com>
Description
Previously, the DD_STDERR environment variable did not support the same set of values as DD_LOG_MASK.
This patch updates the management of DD_STDERR to ensure consistent value handling between both environment variables.
Steps for the author:
After all prior steps are complete: