Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

use two providers on two network interfaces#128

Open
yulujia wants to merge 1 commit intomasterfrom
yulujia/multi-prov-two-if
Open

use two providers on two network interfaces#128
yulujia wants to merge 1 commit intomasterfrom
yulujia/multi-prov-two-if

Conversation

@yulujia
Copy link
Copy Markdown
Contributor

@yulujia yulujia commented Apr 25, 2019

run ofi+sockets on eth0, and ofi+psm2 on ib0

Signed-off-by: Yulu Jia yulu.jia@intel.com

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Comment thread src/cart/crt_init.c Outdated
continue;
D_DEBUG(DB_ALL, "na_type %d\n", na_type);
memset(na_conf->noc_ip_str, 0, INET_ADDRSTRLEN);
D_DEBUG(DB_ALL, "na_conf->noc_ip_str %s\n", na_conf->noc_ip_str);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_init.c Outdated
// crt_na_dict[na_type].nad_inited = 1;
D_DEBUG(DB_ALL, "YULU here\n");
D_DEBUG(DB_ALL, "na_conf->noc_ip_str %s na_conf->noc_port %d\n",
na_conf->noc_ip_str, na_conf->noc_port );
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) space prohibited before that close parenthesis ')'

Comment thread src/cart/crt_init.c Outdated
return -DER_INVAL;
}

// grab lock for crt_na_config_opt list
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c Outdated
d_list_add_tail(&na_conf->noc_link, &crt_na_ofi_config_opt);
D_DEBUG(DB_ALL, "YULU here after add tail\n");
out:
//unlock
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c Outdated
D_DEBUG(DB_ALL, "YULU here after add tail\n");
out:
//unlock
if (rc != -DER_SUCCESS) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) suspect code indent for conditional statements (8, 0)

Comment thread src/cart/crt_internal_fns.h Outdated
struct na_ofi_config *na_conf = NULL;
struct na_ofi_config *na_conf_tmp = NULL;

// D_ASSERTF(true == false, "implement this.\n");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_internal_fns.h Outdated
struct na_ofi_config *na_conf_tmp = NULL;

// D_ASSERTF(true == false, "implement this.\n");
// D_RWLOCK_WRLOCK();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/test/test_multi_prov.c Outdated
struct test_ping_check_in *e_req;
struct test_ping_check_out *e_reply;
int rc = 0;
int ctx_id = -1;;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Statements terminations use 1 semicolon

((d_string_t) (name) CRT_VAR) \
((bool) (bool_val) CRT_VAR)

#define CRT_OSEQ_TEST_PING_CHECK /* output fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Macros with complex values should be enclosed in parentheses


struct test_t test_g = { .t_hold_time = 0, .t_ctx_num = 1, .t_roomno = 1082 };

#define CRT_ISEQ_TEST_PING_CHECK /* input fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Macros with complex values should be enclosed in parentheses

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/1/display/redirect

@yulujia yulujia force-pushed the yulujia/multi-prov-two-if branch from 6f9311e to cd2ad9d Compare April 25, 2019 23:58
@daosbuild1 daosbuild1 dismissed their stale review April 25, 2019 23:59

Updated patch

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/2/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

FYI: Errors found in lines not modified in the patch:

utils/run_test.sh:98:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:109:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:118:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

Comment thread src/cart/crt_init.c Outdated
continue;
D_DEBUG(DB_ALL, "na_type %d\n", na_type);
memset(na_conf->noc_ip_str, 0, INET_ADDRSTRLEN);
D_DEBUG(DB_ALL, "na_conf->noc_ip_str %s\n", na_conf->noc_ip_str);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_init.c Outdated
// crt_na_dict[na_type].nad_inited = 1;
D_DEBUG(DB_ALL, "YULU here\n");
D_DEBUG(DB_ALL, "na_conf->noc_ip_str %s na_conf->noc_port %d\n",
na_conf->noc_ip_str, na_conf->noc_port );
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) space prohibited before that close parenthesis ')'

Comment thread src/cart/crt_init.c Outdated
return -DER_INVAL;
}

// grab lock for crt_na_config_opt list
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c Outdated
d_list_add_tail(&na_conf->noc_link, &crt_na_ofi_config_opt);
D_DEBUG(DB_ALL, "YULU here after add tail\n");
out:
//unlock
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c Outdated
D_DEBUG(DB_ALL, "YULU here after add tail\n");
out:
//unlock
if (rc != -DER_SUCCESS) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) suspect code indent for conditional statements (8, 0)

Comment thread src/cart/crt_internal_fns.h Outdated
struct na_ofi_config *na_conf = NULL;
struct na_ofi_config *na_conf_tmp = NULL;

// D_ASSERTF(true == false, "implement this.\n");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_internal_fns.h Outdated
struct na_ofi_config *na_conf_tmp = NULL;

// D_ASSERTF(true == false, "implement this.\n");
// D_RWLOCK_WRLOCK();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/test/test_multi_prov.c Outdated
struct test_ping_check_in *e_req;
struct test_ping_check_out *e_reply;
int rc = 0;
int ctx_id = -1;;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Statements terminations use 1 semicolon

((d_string_t) (name) CRT_VAR) \
((bool) (bool_val) CRT_VAR)

#define CRT_OSEQ_TEST_PING_CHECK /* output fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Macros with complex values should be enclosed in parentheses


struct test_t test_g = { .t_hold_time = 0, .t_ctx_num = 1, .t_roomno = 1082 };

#define CRT_ISEQ_TEST_PING_CHECK /* input fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Macros with complex values should be enclosed in parentheses

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/2/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build RPM on CentOS 7 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/2/display/redirect

@daosbuild1 daosbuild1 dismissed their stale review April 26, 2019 23:37

Updated patch

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/3/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

FYI: Errors found in lines not modified in the patch:

utils/run_test.sh:98:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:109:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:118:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

Comment thread src/cart/crt_init.c Outdated
D_GOTO(out, rc = -DER_PROTO);
}

// rc = crt_get_port(&port);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c Outdated
}

/* disable this ENV for now */
// port_str = getenv("OFI_PORT_2");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

procrtn = self.launch_test(testmsg, '1', self.pass_env, \
cli_arg='tests/test_multi_prov' + \
' --name client_group' + \
' --attach_to service_group --ctx_num 2',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(pylint-line-too-long) Line too long (86/80)

Comment thread src/include/cart/types.h
int na_id;
} crt_init_options_t;

typedef struct crt_ctx_init_opt {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not add new typedefs

((d_string_t) (name) CRT_VAR) \
((bool) (bool_val) CRT_VAR)

#define CRT_OSEQ_TEST_PING_CHECK /* output fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Macros with complex values should be enclosed in parentheses


struct test_t test_g = { .t_hold_time = 0, .t_ctx_num = 1, .t_roomno = 1082 };

#define CRT_ISEQ_TEST_PING_CHECK /* input fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Macros with complex values should be enclosed in parentheses

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/3/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/3/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on CentOS 7 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/3/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on Leap 15 with Intel-C completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/3/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on LEAP 42.3 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/3/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on SLES 12.3 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/3/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on Ubuntu 18.04 with Clang completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/3/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build RPM on CentOS 7 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/3/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on CentOS 7 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/4/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/4/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on SLES 12.3 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/4/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on Leap 15 with Intel-C completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/4/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on Ubuntu 18.04 with Clang completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/4/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on LEAP 42.3 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/4/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build RPM on CentOS 7 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/4/display/redirect

@yulujia yulujia force-pushed the yulujia/multi-prov-two-if branch from 555d786 to 9e456ea Compare April 29, 2019 22:36
@daosbuild1 daosbuild1 dismissed their stale review April 29, 2019 22:37

Updated patch

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/5/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

FYI: Errors found in lines not modified in the patch:

utils/run_test.sh:98:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:109:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:118:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

Comment thread src/cart/crt_init.c Outdated
D_GOTO(out, rc = -DER_PROTO);
}

// rc = crt_get_port(&port);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c Outdated
}

/* disable this ENV for now */
// port_str = getenv("OFI_PORT_2");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

procrtn = self.launch_test(testmsg, '1', self.pass_env, \
cli_arg='tests/test_multi_prov' + \
' --name client_group' + \
' --attach_to service_group --ctx_num 2',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(pylint-line-too-long) Line too long (86/80)

Comment thread src/include/cart/types.h
int na_id;
} crt_init_options_t;

typedef struct crt_ctx_init_opt {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not add new typedefs

((d_string_t) (name) CRT_VAR) \
((bool) (bool_val) CRT_VAR)

#define CRT_OSEQ_TEST_PING_CHECK /* output fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Macros with complex values should be enclosed in parentheses


struct test_t test_g = { .t_hold_time = 0, .t_ctx_num = 1, .t_roomno = 1082 };

#define CRT_ISEQ_TEST_PING_CHECK /* input fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) Macros with complex values should be enclosed in parentheses

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/5/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Single-node-valgrind completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/5/display/redirect

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Single-node completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/5/display/redirect

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/16/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

Note: Error annotation limited to the first 31 errors. Remaining unannotated errors:

src/cart/crt_group.c:1040:
(style) line over 80 characters

src/cart/crt_group.c:487:
(style) line over 80 characters

src/cart/crt_group.c:499:
(style) Block comments use a trailing */ on a separate line

src/cart/crt_group.c:631:
(style) line over 80 characters

src/cart/crt_swim.c:409:
(style) Missing a blank line after declarations

src/cart/crt_swim.c:135:
(style) line over 80 characters

test/cart_test_multi_prov.py:65:
(pylint-import-error) Unable to import 'commontestsuite'

test/cart_test_multi_prov.py:111:
(pylint-line-too-long) Line too long (86/80)

src/include/cart/types.h:98:
(style) do not add new typedefs

src/include/cart/types.h:106:
(style) trailing whitespace

src/cart/crt_group.h:447:
(style) line over 80 characters

utils/run_test.sh:112:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:121:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:101:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

src/test/test_group_rpc.h:49:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_group_rpc.h:43:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_multi_prov_cli.c:344:
(style) line over 80 characters

src/test/test_multi_prov_cli.c:226:
(style) do not use C99 // comments

src/test/test_multi_prov_cli.c:259:
(style) code indent should use tabs where possible

src/test/test_multi_prov_cli.c:293:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_cli.c:422:
(style) Block comments use * on subsequent lines

src/include/cart/api.h:1783:
(style) line over 80 characters

src/cart/crt_context.c:253:
(style) line over 80 characters

src/cart/crt_hg.c:860:
(style) line over 80 characters

src/cart/crt_hg.c:863:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:384:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:150:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:541:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:546:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:420:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:552:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:182:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:442:
(style) void function return statements are not generally useful

src/test/test_multi_prov_srv.c:75:
(style) macros should not use a trailing semicolon

src/test/test_multi_prov_srv.c:466:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:469:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:344:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:570:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:351:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:352:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:357:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:488:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:364:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:365:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:495:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:374:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:375:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:383:
(style) do not use C99 // comments

FYI: Errors found in lines not modified in the patch:

src/cart/crt_init.c:408:
(style) suspect code indent for conditional statements (16, 0)

Comment thread src/cart/crt_init.c Outdated
for (na_idx = 0; crt_na_dict[na_idx].nad_str != NULL;
na_idx++) {
if (!strncmp(addr_env, crt_na_dict[na_idx].nad_str,
strlen(crt_na_dict[na_idx].nad_str) + 1)) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_init.c
if ((crt_gdata.cg_na_plugin == CRT_NA_OFI_VERBS_RXM ||
crt_gdata.cg_na_plugin == CRT_NA_OFI_VERBS) &&
crt_gdata.cg_share_na) {
if (( na_type == CRT_NA_OFI_VERBS_RXM ||
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) space prohibited after that open parenthesis '('

Comment thread src/cart/crt_init.c

if (crt_is_service())
crt_swim_fini();
// if (crt_is_service())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c
if (crt_is_service())
crt_swim_fini();
// if (crt_is_service())
// crt_swim_fini();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c
D_DEBUG(DB_ALL, "set cg_share_na %d, cg_ctx_max_num %d.\n",
crt_gdata.cg_share_na, crt_gdata.cg_ctx_max_num);
if (crt_gdata.cg_share_na == false && crt_gdata.cg_ctx_max_num > 1)
crt_gdata.cg_share_na[na_type], crt_gdata.cg_ctx_max_num[na_type]);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
}

d_hash_rec_decref(&grp_priv->gp_uri_lookup_cache, rlink);
d_hash_rec_decref(&grp_priv->gp_uri_lookup_cache[na_type],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
for (i = 0; i < CRT_SRV_CONTEXT_NUM; i++)
crt_grp_lc_uri_remove(grp_priv, i, rank);
for (i = 0; i < CRT_SRV_CONTEXT_NUM; i++)
crt_grp_lc_uri_remove(grp_priv, na_type, i, rank);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

d_hash_rec_delete(&grp_priv->gp_uri_lookup_cache,
&rank, sizeof(d_rank_t));
d_hash_rec_delete(&grp_priv->gp_uri_lookup_cache[na_type],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

free_htables:
for (j = 0; j < i; j++) {
rc2 = d_hash_table_destroy_inplace(&htables[j], true /* force */);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

static inline int
grp_li_uri_set(struct crt_lookup_item *li, int tag, const char *uri)
grp_li_uri_set(struct crt_lookup_item *li, int na_type, int tag, const char *uri)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/16/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

Note: Error annotation limited to the first 0 errors. Remaining unannotated errors:

src/cart/crt_init.c:97:
(style) line over 80 characters

src/cart/crt_init.c:354:
(style) space prohibited after that open parenthesis '('

src/cart/crt_init.c:552:
(style) do not use C99 // comments

src/cart/crt_init.c:553:
(style) do not use C99 // comments

src/cart/crt_init.c:180:
(style) line over 80 characters

src/cart/crt_init.c:181:
(style) line over 80 characters

src/cart/crt_init.c:408:
(style) suspect code indent for conditional statements (16, 0)

src/cart/crt_init.c:409:
(style) do not use C99 // comments

src/cart/crt_init.c:410:
(style) do not use C99 // comments

src/cart/crt_init.c:411:
(style) do not use C99 // comments

src/cart/crt_init.c:412:
(style) do not use C99 // comments

src/cart/crt_init.c:413:
(style) do not use C99 // comments

src/cart/crt_init.c:414:
(style) do not use C99 // comments

src/test/SConscript:51:
(pylint-line-too-long) Line too long (83/80)

src/cart/crt_group.c:1029:
(style) line over 80 characters

src/cart/crt_group.c:392:
(style) line over 80 characters

src/cart/crt_group.c:2832:
(style) line over 80 characters

src/cart/crt_group.c:2833:
(style) line over 80 characters

src/cart/crt_group.c:3474:
(style) line over 80 characters

src/cart/crt_group.c:407:
(style) line over 80 characters

src/cart/crt_group.c:797:
(style) line over 80 characters

src/cart/crt_group.c:1055:
(style) line over 80 characters

src/cart/crt_group.c:546:
(style) line over 80 characters

src/cart/crt_group.c:755:
(style) line over 80 characters

src/cart/crt_group.c:4663:
(style) line over 80 characters

src/cart/crt_group.c:4666:
(style) line over 80 characters

src/cart/crt_group.c:671:
(style) line over 80 characters

src/cart/crt_group.c:4670:
(style) line over 80 characters

src/cart/crt_group.c:4674:
(style) line over 80 characters

src/cart/crt_group.c:4676:
(style) line over 80 characters

src/cart/crt_group.c:467:
(style) line over 80 characters

src/cart/crt_group.c:346:
(style) line over 80 characters

src/cart/crt_group.c:1040:
(style) line over 80 characters

src/cart/crt_group.c:487:
(style) line over 80 characters

src/cart/crt_group.c:499:
(style) Block comments use a trailing */ on a separate line

src/cart/crt_group.c:631:
(style) line over 80 characters

src/cart/crt_swim.c:409:
(style) Missing a blank line after declarations

src/cart/crt_swim.c:135:
(style) line over 80 characters

test/cart_test_multi_prov.py:65:
(pylint-import-error) Unable to import 'commontestsuite'

test/cart_test_multi_prov.py:111:
(pylint-line-too-long) Line too long (86/80)

src/include/cart/types.h:98:
(style) do not add new typedefs

src/include/cart/types.h:106:
(style) trailing whitespace

src/cart/crt_group.h:447:
(style) line over 80 characters

utils/run_test.sh:112:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:121:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:101:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

src/test/test_group_rpc.h:49:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_group_rpc.h:43:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_multi_prov_cli.c:344:
(style) line over 80 characters

src/test/test_multi_prov_cli.c:226:
(style) do not use C99 // comments

src/test/test_multi_prov_cli.c:259:
(style) code indent should use tabs where possible

src/test/test_multi_prov_cli.c:293:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_cli.c:422:
(style) Block comments use * on subsequent lines

src/include/cart/api.h:1783:
(style) line over 80 characters

src/cart/crt_context.c:253:
(style) line over 80 characters

src/cart/crt_hg.c:860:
(style) line over 80 characters

src/cart/crt_hg.c:863:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:384:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:150:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:541:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:546:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:420:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:552:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:182:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:442:
(style) void function return statements are not generally useful

src/test/test_multi_prov_srv.c:75:
(style) macros should not use a trailing semicolon

src/test/test_multi_prov_srv.c:466:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:469:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:344:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:570:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:351:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:352:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:357:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:488:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:364:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:365:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:495:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:374:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:375:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:383:
(style) do not use C99 // comments

Note: Unable to provide any annotated comments due to GitHub API limitations.

@daosbuild1
Copy link
Copy Markdown
Collaborator

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build DEB on Ubuntu 18.04 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/16/execution/node/279/log

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on Ubuntu 18.04 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/16/execution/node/298/log

@daosbuild1 daosbuild1 dismissed stale reviews from themself August 20, 2019 22:47

Updated patch

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/17/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

Note: Error annotation limited to the first 31 errors. Remaining unannotated errors:

src/cart/crt_group.c:1040:
(style) line over 80 characters

src/cart/crt_group.c:487:
(style) line over 80 characters

src/cart/crt_group.c:499:
(style) Block comments use a trailing */ on a separate line

src/cart/crt_group.c:631:
(style) line over 80 characters

src/cart/crt_swim.c:409:
(style) Missing a blank line after declarations

src/cart/crt_swim.c:135:
(style) line over 80 characters

test/cart_test_multi_prov.py:65:
(pylint-import-error) Unable to import 'commontestsuite'

test/cart_test_multi_prov.py:111:
(pylint-line-too-long) Line too long (86/80)

src/include/cart/types.h:98:
(style) do not add new typedefs

src/include/cart/types.h:106:
(style) trailing whitespace

src/cart/crt_group.h:447:
(style) line over 80 characters

utils/run_test.sh:112:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:121:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:101:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

src/test/test_group_rpc.h:49:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_group_rpc.h:43:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_multi_prov_cli.c:344:
(style) line over 80 characters

src/test/test_multi_prov_cli.c:226:
(style) do not use C99 // comments

src/test/test_multi_prov_cli.c:259:
(style) code indent should use tabs where possible

src/test/test_multi_prov_cli.c:293:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_cli.c:422:
(style) Block comments use * on subsequent lines

src/include/cart/api.h:1783:
(style) line over 80 characters

src/cart/crt_context.c:253:
(style) line over 80 characters

src/cart/crt_hg.c:860:
(style) line over 80 characters

src/cart/crt_hg.c:863:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:384:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:150:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:541:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:546:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:420:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:552:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:182:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:442:
(style) void function return statements are not generally useful

src/test/test_multi_prov_srv.c:75:
(style) macros should not use a trailing semicolon

src/test/test_multi_prov_srv.c:466:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:469:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:344:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:570:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:351:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:352:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:357:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:488:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:364:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:365:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:495:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:374:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:375:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:383:
(style) do not use C99 // comments

FYI: Errors found in lines not modified in the patch:

src/cart/crt_init.c:408:
(style) suspect code indent for conditional statements (16, 0)

Comment thread src/cart/crt_init.c Outdated
for (na_idx = 0; crt_na_dict[na_idx].nad_str != NULL;
na_idx++) {
if (!strncmp(addr_env, crt_na_dict[na_idx].nad_str,
strlen(crt_na_dict[na_idx].nad_str) + 1)) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_init.c
if ((crt_gdata.cg_na_plugin == CRT_NA_OFI_VERBS_RXM ||
crt_gdata.cg_na_plugin == CRT_NA_OFI_VERBS) &&
crt_gdata.cg_share_na) {
if (( na_type == CRT_NA_OFI_VERBS_RXM ||
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) space prohibited after that open parenthesis '('

Comment thread src/cart/crt_init.c

if (crt_is_service())
crt_swim_fini();
// if (crt_is_service())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c
if (crt_is_service())
crt_swim_fini();
// if (crt_is_service())
// crt_swim_fini();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c
D_DEBUG(DB_ALL, "set cg_share_na %d, cg_ctx_max_num %d.\n",
crt_gdata.cg_share_na, crt_gdata.cg_ctx_max_num);
if (crt_gdata.cg_share_na == false && crt_gdata.cg_ctx_max_num > 1)
crt_gdata.cg_share_na[na_type], crt_gdata.cg_ctx_max_num[na_type]);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
}

d_hash_rec_decref(&grp_priv->gp_uri_lookup_cache, rlink);
d_hash_rec_decref(&grp_priv->gp_uri_lookup_cache[na_type],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
for (i = 0; i < CRT_SRV_CONTEXT_NUM; i++)
crt_grp_lc_uri_remove(grp_priv, i, rank);
for (i = 0; i < CRT_SRV_CONTEXT_NUM; i++)
crt_grp_lc_uri_remove(grp_priv, na_type, i, rank);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

d_hash_rec_delete(&grp_priv->gp_uri_lookup_cache,
&rank, sizeof(d_rank_t));
d_hash_rec_delete(&grp_priv->gp_uri_lookup_cache[na_type],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

free_htables:
for (j = 0; j < i; j++) {
rc2 = d_hash_table_destroy_inplace(&htables[j], true /* force */);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

static inline int
grp_li_uri_set(struct crt_lookup_item *li, int tag, const char *uri)
grp_li_uri_set(struct crt_lookup_item *li, int na_type, int tag, const char *uri)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/17/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

Note: Error annotation limited to the first 31 errors. Remaining unannotated errors:

src/cart/crt_group.c:1040:
(style) line over 80 characters

src/cart/crt_group.c:487:
(style) line over 80 characters

src/cart/crt_group.c:499:
(style) Block comments use a trailing */ on a separate line

src/cart/crt_group.c:631:
(style) line over 80 characters

src/cart/crt_swim.c:409:
(style) Missing a blank line after declarations

src/cart/crt_swim.c:135:
(style) line over 80 characters

test/cart_test_multi_prov.py:65:
(pylint-import-error) Unable to import 'commontestsuite'

test/cart_test_multi_prov.py:111:
(pylint-line-too-long) Line too long (86/80)

src/include/cart/types.h:98:
(style) do not add new typedefs

src/include/cart/types.h:106:
(style) trailing whitespace

src/cart/crt_group.h:447:
(style) line over 80 characters

utils/run_test.sh:112:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:121:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:101:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

src/test/test_group_rpc.h:49:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_group_rpc.h:43:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_multi_prov_cli.c:344:
(style) line over 80 characters

src/test/test_multi_prov_cli.c:226:
(style) do not use C99 // comments

src/test/test_multi_prov_cli.c:259:
(style) code indent should use tabs where possible

src/test/test_multi_prov_cli.c:293:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_cli.c:422:
(style) Block comments use * on subsequent lines

src/include/cart/api.h:1783:
(style) line over 80 characters

src/cart/crt_context.c:253:
(style) line over 80 characters

src/cart/crt_hg.c:860:
(style) line over 80 characters

src/cart/crt_hg.c:863:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:384:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:150:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:541:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:546:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:420:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:552:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:182:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:442:
(style) void function return statements are not generally useful

src/test/test_multi_prov_srv.c:75:
(style) macros should not use a trailing semicolon

src/test/test_multi_prov_srv.c:466:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:469:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:344:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:570:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:351:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:352:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:357:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:488:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:364:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:365:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:495:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:374:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:375:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:383:
(style) do not use C99 // comments

FYI: Errors found in lines not modified in the patch:

src/cart/crt_init.c:408:
(style) suspect code indent for conditional statements (16, 0)

Comment thread src/cart/crt_init.c Outdated
for (na_idx = 0; crt_na_dict[na_idx].nad_str != NULL;
na_idx++) {
if (!strncmp(addr_env, crt_na_dict[na_idx].nad_str,
strlen(crt_na_dict[na_idx].nad_str) + 1)) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_init.c
if ((crt_gdata.cg_na_plugin == CRT_NA_OFI_VERBS_RXM ||
crt_gdata.cg_na_plugin == CRT_NA_OFI_VERBS) &&
crt_gdata.cg_share_na) {
if (( na_type == CRT_NA_OFI_VERBS_RXM ||
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) space prohibited after that open parenthesis '('

Comment thread src/cart/crt_init.c

if (crt_is_service())
crt_swim_fini();
// if (crt_is_service())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c
if (crt_is_service())
crt_swim_fini();
// if (crt_is_service())
// crt_swim_fini();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c
D_DEBUG(DB_ALL, "set cg_share_na %d, cg_ctx_max_num %d.\n",
crt_gdata.cg_share_na, crt_gdata.cg_ctx_max_num);
if (crt_gdata.cg_share_na == false && crt_gdata.cg_ctx_max_num > 1)
crt_gdata.cg_share_na[na_type], crt_gdata.cg_ctx_max_num[na_type]);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
}

d_hash_rec_decref(&grp_priv->gp_uri_lookup_cache, rlink);
d_hash_rec_decref(&grp_priv->gp_uri_lookup_cache[na_type],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
for (i = 0; i < CRT_SRV_CONTEXT_NUM; i++)
crt_grp_lc_uri_remove(grp_priv, i, rank);
for (i = 0; i < CRT_SRV_CONTEXT_NUM; i++)
crt_grp_lc_uri_remove(grp_priv, na_type, i, rank);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

d_hash_rec_delete(&grp_priv->gp_uri_lookup_cache,
&rank, sizeof(d_rank_t));
d_hash_rec_delete(&grp_priv->gp_uri_lookup_cache[na_type],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

free_htables:
for (j = 0; j < i; j++) {
rc2 = d_hash_table_destroy_inplace(&htables[j], true /* force */);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

static inline int
grp_li_uri_set(struct crt_lookup_item *li, int tag, const char *uri)
grp_li_uri_set(struct crt_lookup_item *li, int na_type, int tag, const char *uri)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/17/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

Note: Error annotation limited to the first 0 errors. Remaining unannotated errors:

src/cart/crt_init.c:97:
(style) line over 80 characters

src/cart/crt_init.c:354:
(style) space prohibited after that open parenthesis '('

src/cart/crt_init.c:552:
(style) do not use C99 // comments

src/cart/crt_init.c:553:
(style) do not use C99 // comments

src/cart/crt_init.c:180:
(style) line over 80 characters

src/cart/crt_init.c:181:
(style) line over 80 characters

src/cart/crt_init.c:408:
(style) suspect code indent for conditional statements (16, 0)

src/cart/crt_init.c:409:
(style) do not use C99 // comments

src/cart/crt_init.c:410:
(style) do not use C99 // comments

src/cart/crt_init.c:411:
(style) do not use C99 // comments

src/cart/crt_init.c:412:
(style) do not use C99 // comments

src/cart/crt_init.c:413:
(style) do not use C99 // comments

src/cart/crt_init.c:414:
(style) do not use C99 // comments

src/test/SConscript:51:
(pylint-line-too-long) Line too long (83/80)

src/cart/crt_group.c:1029:
(style) line over 80 characters

src/cart/crt_group.c:392:
(style) line over 80 characters

src/cart/crt_group.c:2832:
(style) line over 80 characters

src/cart/crt_group.c:2833:
(style) line over 80 characters

src/cart/crt_group.c:3474:
(style) line over 80 characters

src/cart/crt_group.c:407:
(style) line over 80 characters

src/cart/crt_group.c:797:
(style) line over 80 characters

src/cart/crt_group.c:1055:
(style) line over 80 characters

src/cart/crt_group.c:546:
(style) line over 80 characters

src/cart/crt_group.c:755:
(style) line over 80 characters

src/cart/crt_group.c:4663:
(style) line over 80 characters

src/cart/crt_group.c:4666:
(style) line over 80 characters

src/cart/crt_group.c:671:
(style) line over 80 characters

src/cart/crt_group.c:4670:
(style) line over 80 characters

src/cart/crt_group.c:4674:
(style) line over 80 characters

src/cart/crt_group.c:4676:
(style) line over 80 characters

src/cart/crt_group.c:467:
(style) line over 80 characters

src/cart/crt_group.c:346:
(style) line over 80 characters

src/cart/crt_group.c:1040:
(style) line over 80 characters

src/cart/crt_group.c:487:
(style) line over 80 characters

src/cart/crt_group.c:499:
(style) Block comments use a trailing */ on a separate line

src/cart/crt_group.c:631:
(style) line over 80 characters

src/cart/crt_swim.c:409:
(style) Missing a blank line after declarations

src/cart/crt_swim.c:135:
(style) line over 80 characters

test/cart_test_multi_prov.py:65:
(pylint-import-error) Unable to import 'commontestsuite'

test/cart_test_multi_prov.py:111:
(pylint-line-too-long) Line too long (86/80)

src/include/cart/types.h:98:
(style) do not add new typedefs

src/include/cart/types.h:106:
(style) trailing whitespace

src/cart/crt_group.h:447:
(style) line over 80 characters

utils/run_test.sh:112:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:121:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:101:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

src/test/test_group_rpc.h:49:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_group_rpc.h:43:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_multi_prov_cli.c:344:
(style) line over 80 characters

src/test/test_multi_prov_cli.c:226:
(style) do not use C99 // comments

src/test/test_multi_prov_cli.c:259:
(style) code indent should use tabs where possible

src/test/test_multi_prov_cli.c:293:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_cli.c:422:
(style) Block comments use * on subsequent lines

src/include/cart/api.h:1783:
(style) line over 80 characters

src/cart/crt_context.c:253:
(style) line over 80 characters

src/cart/crt_hg.c:860:
(style) line over 80 characters

src/cart/crt_hg.c:863:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:384:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:150:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:541:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:546:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:420:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:552:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:182:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:442:
(style) void function return statements are not generally useful

src/test/test_multi_prov_srv.c:75:
(style) macros should not use a trailing semicolon

src/test/test_multi_prov_srv.c:466:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:469:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:344:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:570:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:351:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:352:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:357:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:488:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:364:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:365:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:495:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:374:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:375:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:383:
(style) do not use C99 // comments

Note: Unable to provide any annotated comments due to GitHub API limitations.

@daosbuild1
Copy link
Copy Markdown
Collaborator

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on Ubuntu 18.04 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/17/execution/node/294/log

@daosbuild1 daosbuild1 dismissed stale reviews from themself September 6, 2019 18:44

Updated patch

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/18/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

Note: Error annotation limited to the first 31 errors. Remaining unannotated errors:

src/cart/crt_group.c:487:
(style) line over 80 characters

src/cart/crt_group.c:752:
(style) line over 80 characters

src/cart/crt_group.c:499:
(style) Block comments use a trailing */ on a separate line

src/cart/crt_group.c:628:
(style) line over 80 characters

src/cart/crt_swim.c:409:
(style) Missing a blank line after declarations

src/cart/crt_swim.c:135:
(style) line over 80 characters

test/cart_test_multi_prov.py:65:
(pylint-import-error) Unable to import 'commontestsuite'

test/cart_test_multi_prov.py:111:
(pylint-line-too-long) Line too long (86/80)

src/include/cart/types.h:98:
(style) do not add new typedefs

src/include/cart/types.h:106:
(style) trailing whitespace

src/cart/crt_group.h:447:
(style) line over 80 characters

utils/run_test.sh:112:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:121:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:101:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

src/test/test_group_rpc.h:49:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_group_rpc.h:43:
(style) Macros with complex values should be enclosed in parentheses

src/test/test_multi_prov_cli.c:344:
(style) line over 80 characters

src/test/test_multi_prov_cli.c:226:
(style) do not use C99 // comments

src/test/test_multi_prov_cli.c:259:
(style) code indent should use tabs where possible

src/test/test_multi_prov_cli.c:293:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_cli.c:422:
(style) Block comments use * on subsequent lines

src/include/cart/api.h:1783:
(style) line over 80 characters

src/cart/crt_context.c:253:
(style) line over 80 characters

src/cart/crt_hg.c:860:
(style) line over 80 characters

src/cart/crt_hg.c:863:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:384:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:150:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:541:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:546:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:420:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:552:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:182:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:442:
(style) void function return statements are not generally useful

src/test/test_multi_prov_srv.c:75:
(style) macros should not use a trailing semicolon

src/test/test_multi_prov_srv.c:466:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:469:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:344:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:570:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:351:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:352:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:357:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:488:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:364:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:365:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:495:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:374:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:375:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:383:
(style) do not use C99 // comments

FYI: Errors found in lines not modified in the patch:

src/cart/crt_init.c:408:
(style) suspect code indent for conditional statements (16, 0)

Comment thread src/cart/crt_init.c Outdated
for (na_idx = 0; crt_na_dict[na_idx].nad_str != NULL;
na_idx++) {
if (!strncmp(addr_env, crt_na_dict[na_idx].nad_str,
strlen(crt_na_dict[na_idx].nad_str) + 1)) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_init.c
if ((crt_gdata.cg_na_plugin == CRT_NA_OFI_VERBS_RXM ||
crt_gdata.cg_na_plugin == CRT_NA_OFI_VERBS) &&
crt_gdata.cg_share_na) {
if (( na_type == CRT_NA_OFI_VERBS_RXM ||
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) space prohibited after that open parenthesis '('

Comment thread src/cart/crt_init.c

if (crt_is_service())
crt_swim_fini();
// if (crt_is_service())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c
if (crt_is_service())
crt_swim_fini();
// if (crt_is_service())
// crt_swim_fini();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c
D_DEBUG(DB_ALL, "set cg_share_na %d, cg_ctx_max_num %d.\n",
crt_gdata.cg_share_na, crt_gdata.cg_ctx_max_num);
if (crt_gdata.cg_share_na == false && crt_gdata.cg_ctx_max_num > 1)
crt_gdata.cg_share_na[na_type], crt_gdata.cg_ctx_max_num[na_type]);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
for (i = 0; i < CRT_SRV_CONTEXT_NUM; i++)
crt_grp_lc_uri_remove(grp_priv, i, rank);
for (i = 0; i < CRT_SRV_CONTEXT_NUM; i++)
crt_grp_lc_uri_remove(grp_priv, na_type, i, rank);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

d_hash_rec_delete(&grp_priv->gp_uri_lookup_cache,
&rank, sizeof(d_rank_t));
d_hash_rec_delete(&grp_priv->gp_uri_lookup_cache[na_type],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c Outdated
d_hash_rec_decref(
&default_grp_priv->gp_lookup_cache[ctx_idx],
rlink);
d_hash_rec_decref(&default_grp_priv->gp_lookup_cache[na_type][ctx_idx],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

free_htables:
for (j = 0; j < i; j++) {
rc2 = d_hash_table_destroy_inplace(&htables[j], true /* force */);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c

static inline int
grp_li_uri_set(struct crt_lookup_item *li, int tag, const char *uri)
grp_li_uri_set(struct crt_lookup_item *li, int na_type, int tag, const char *uri)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

@daosbuild1
Copy link
Copy Markdown
Collaborator

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on Ubuntu 18.04 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/18/execution/node/274/log

Add multi provider support in cart. User can specify provider type when
creating a cart context.

new functions:

int crt_context_create_opt(crt_context_t *crt_ctx, crt_ctx_init_opt_t *opt);

int crt_context_na_type(crt_context_t crt_ctx);

int crt_self_uri_get_na(int na_type, int tag, char **uri);

seperate the following two functions from crt_init() and crt_finalize()

int crt_swim_init(int crt_ctx_idx);
void crt_swim_fini(void);

Signed-off-by: Yulu Jia <yulu.jia@intel.com>
@yulujia yulujia force-pushed the yulujia/multi-prov-two-if branch from cff8c2e to ca9e0a3 Compare March 6, 2020 00:17
@daosbuild1 daosbuild1 dismissed their stale review March 6, 2020 00:20

Updated patch

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-128/19/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

Note: Error annotation limited to the first 31 errors. Remaining unannotated errors:

src/cart/crt_group.c:3387:
(style) line over 80 characters

src/cart/crt_group.c:3389:
(style) line over 80 characters

src/cart/crt_group.c:840:
(style) line over 80 characters

src/cart/crt_group.c:3383:
(style) line over 80 characters

src/cart/crt_group.c:462:
(style) line over 80 characters

src/cart/crt_group.c:339:
(style) line over 80 characters

src/cart/crt_group.c:2014:
(style) line over 80 characters

src/cart/crt_group.c:2015:
(style) line over 80 characters

src/cart/crt_group.c:482:
(style) line over 80 characters

src/cart/crt_group.c:742:
(style) line over 80 characters

src/cart/crt_group.c:620:
(style) line over 80 characters

src/cart/crt_group.c:494:
(style) Block comments use a trailing */ on a separate line

src/cart/crt_group.c:1011:
(style) line over 80 characters

src/cart/crt_group.c:1917:
(style) do not use C99 // comments

src/cart/crt_swim.c:501:
(style) Missing a blank line after declarations

src/cart/crt_context.c:253:
(style) line over 80 characters

test/cart_test_multi_prov.py:65:
(pylint-import-error) Unable to import 'commontestsuite'

test/cart_test_multi_prov.py:111:
(pylint-line-too-long) Line too long (86/80)

src/include/cart/types.h:98:
(style) do not add new typedefs

src/include/cart/types.h:123:
(style) do not add new typedefs

src/include/cart/types.h:106:
(style) trailing whitespace

src/cart/crt_group.h:278:
(style) line over 80 characters

utils/run_test.sh:114:
(lint) Double quote to prevent globbing and word splitting. [SC2086]

utils/run_test.sh:43:
(lint) JENKINS_TEST_LIST appears unused. Verify it or export it. [SC2034]

src/test/test_group.c:52:
(style) do not use C99 // comments

src/test/test_group.c:54:
(style) do not use C99 // comments

src/include/cart/api.h:1718:
(style) line over 80 characters

src/test/no_pmix_group_version.c:284:
(style) do not use C99 // comments

src/test/no_pmix_corpc_errors.c:288:
(style) do not use C99 // comments

src/test/tests_common.h:473:
(style) do not use C99 // comments

src/cart/crt_hg.c:882:
(style) line over 80 characters

src/cart/crt_hg.c:879:
(style) line over 80 characters

src/test/test_multi_prov_srv.c:193:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:194:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:292:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:311:
(style) Block comments use * on subsequent lines

src/test/test_multi_prov_srv.c:289:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:265:
(style) void function return statements are not generally useful

src/test/test_multi_prov_srv.c:202:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:203:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:173:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:174:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:239:
(style) Missing a blank line after declarations

src/test/test_multi_prov_srv.c:176:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:183:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:184:
(style) do not use C99 // comments

src/test/test_multi_prov_srv.c:60:
(style) macros should not use a trailing semicolon

src/test/test_multi_prov_srv.c:318:
(style) Block comments use * on subsequent lines

Comment thread src/cart/crt_init.c
D_DEBUG(DB_ALL, "set cg_share_na %d, cg_ctx_max_num %d.\n",
crt_gdata.cg_share_na, crt_gdata.cg_ctx_max_num);
if (crt_gdata.cg_share_na == false && crt_gdata.cg_ctx_max_num > 1)
crt_gdata.cg_share_na[na_type], crt_gdata.cg_ctx_max_num[na_type]);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_init.c
crt_gdata.cg_share_na, crt_gdata.cg_ctx_max_num);
if (crt_gdata.cg_share_na == false && crt_gdata.cg_ctx_max_num > 1)
crt_gdata.cg_share_na[na_type], crt_gdata.cg_ctx_max_num[na_type]);
if (crt_gdata.cg_share_na[na_type] == false && crt_gdata.cg_ctx_max_num[na_type] > 1)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_init.c

if (crt_is_service() && crt_gdata.cg_swim_inited)
crt_swim_fini();
// if (crt_is_service())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_init.c

if (crt_is_service() && crt_gdata.cg_auto_swim_disable == 0) {
rc = crt_swim_init(CRT_DEFAULT_PROGRESS_CTX_IDX);
rc = crt_swim_init(na_type, CRT_DEFAULT_PROGRESS_CTX_IDX);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_init.c
D_GOTO(out, rc = -DER_PROTO);
}

// x2682 what happens if OFI_PORT is not provided?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_group.c
D_GOTO(out, rc = -DER_OOG);
}
for (na_type = 0; na_type < CRT_NA_TYPE_NUM; na_type++) {
rlink = d_hash_rec_find(&grp_priv->gp_uri_lookup_cache[na_type],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
rlink = d_hash_rec_find(&grp_priv->gp_uri_lookup_cache[na_type],
(void *)&rank, sizeof(rank));
if (!rlink) {
D_ERROR("Rank %d is not part of the group\n", rank);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
crt_self_uri_get_na(na_type, ctx_idx, &addr);

grpid = grp_priv->gp_pub.cg_grpid;
filename = crt_grp_attach_info_filename_v2(grp_priv, prov, grp_priv->gp_self);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) line over 80 characters

Comment thread src/cart/crt_group.c
int rc;
int rc2;

// x2682 should be local context num. it counts how many cart contexts I
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

Comment thread src/cart/crt_group.c
int rc2;

// x2682 should be local context num. it counts how many cart contexts I
// have.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(style) do not use C99 // comments

@daosbuild1
Copy link
Copy Markdown
Collaborator

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build RPM on Leap 15 completed with status UNSTABLE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/19/execution/node/265/log

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build RPM on CentOS 7 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/19/execution/node/268/log

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on CentOS 7 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/19/execution/node/231/log

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/19/execution/node/297/log

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on Ubuntu 18.04 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/19/execution/node/266/log

@daosbuild1
Copy link
Copy Markdown
Collaborator

Test stage Build on Leap 15 with Intel-C completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-128/19/execution/node/267/log

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants