Skip to content

UCP/HELLO-WORLD: added error simulations - #5901

Merged
yosefe merged 1 commit into
openucx:masterfrom
hoopoepg:topic/ucp-hello-world-improved-error-simul
Dec 13, 2020
Merged

yosefe merged 1 commit into
openucx:masterfrom
hoopoepg:topic/ucp-hello-world-improved-error-simul

Conversation

@hoopoepg

Copy link
Copy Markdown
Contributor
  • added sender/receiver/keepalive error simulations to
    ucp_hello_world application

@brminich

Copy link
Copy Markdown
Contributor

relevant coverity errors


path:/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:652:
switch: Switch case value "110".
path:/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:675:
switch_case: Reached case "110".
path:/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:677:
break: Breaking from switch.
path:/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:711:
switch_end: Reached end of switch.
path:/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:712:
loop: Jumping back to the beginning of the loop.
path:/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:651:
loop_begin: Jumped back to beginning of loop.
path:/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:651:
cond_true: Condition "(c = getopt(argc, argv, "wfbe:n:p:s:m:h")) != -1", taking true branch.
path:/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:652:
switch: Switch case value "109".
path:/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:692:
switch_case: Reached case "109".
/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/ucp_hello_world.c:693:
var_deref_model: Passing null pointer "optarg" to "parse_mem_type", which dereferences it.
/scrap/azure/agent-05/AZP_WORKSPACE/2/s/examples/hello_world_util.h:167:5:
deref_parm_in_call: Function "strcmp" dereferences "opt_arg".
+ echo 'not ok 1 Coverity Detected 2 failures # https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=10849/ws/cov_build_devel_10849-20201114.13/output/errors/index.html'
+ echo Coverity report: 'https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=10849/ws/cov_build_devel_10849-20201114.13/output/errors/index.html'
+ printf '%s\t%s\n' Coverity 'https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=10849/ws/cov_build_devel_10849-20201114.13/output/errors/index.html'
+ module unload tools/cov

@hoopoepg

Copy link
Copy Markdown
Contributor Author

yep, fixed

@hoopoepg

Copy link
Copy Markdown
Contributor Author

bot:pipe:retest

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Comment thread examples/ucp_hello_world.c Outdated
FAILURE_MODE_SEND,
FAILURE_MODE_RECV,
FAILURE_MODE_KEEPALIVE
} ucp_failure_mode_t;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

failure_mode_t
otherwise - it means that this is defined in UCP

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hmmm, named way same as ucp_test_mode_t...
ok, renamed

Comment thread examples/ucp_hello_world.c Resolved
Comment thread examples/ucp_hello_world.c Outdated

typedef enum {
FAILURE_MODE_NONE,
FAILURE_MODE_SEND,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you are killing either server or client, i'd better reflect it in the names instead.
SEND or RECV sounds confusing

@hoopoepg hoopoepg Nov 17, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

failure mode say's what operation is failed: send/recv/keepalive

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add comments : /* fail send operation on server /
/
fail receive operation on client */

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added comments

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@hoopoepg

Copy link
Copy Markdown
Contributor Author

bot:pipe:retest

@hoopoepg

Copy link
Copy Markdown
Contributor Author

infra issues

@hoopoepg

Copy link
Copy Markdown
Contributor Author

bot:pipe:retest

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@hoopoepg

Copy link
Copy Markdown
Contributor Author

bot:pipe:retest

@hoopoepg

Copy link
Copy Markdown
Contributor Author

@yosefe ok to squash?

Comment thread examples/ucp_hello_world.c Resolved
Comment thread contrib/test_jenkins.sh Resolved
Comment thread examples/ucp_hello_world.c Outdated

typedef enum {
FAILURE_MODE_NONE,
FAILURE_MODE_SEND,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add comments : /* fail send operation on server /
/
fail receive operation on client */

Comment thread examples/ucp_hello_world.c Resolved
Comment thread examples/ucp_hello_world.c Resolved
Comment thread examples/ucp_hello_world.c Resolved
Comment thread examples/ucp_hello_world.c Resolved
Comment thread contrib/test_jenkins.sh Outdated
Comment on lines +845 to +846
export UCX_KEEPALIVE_TIMEOUT=1s
export UCX_KEEPALIVE_NUM_EPS=10

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

indent

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yep, re-tabified

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yosefe

yosefe commented Nov 24, 2020

Copy link
Copy Markdown
Member

@hoopoepg pls squash

@hoopoepg

Copy link
Copy Markdown
Contributor Author

yep, will do after tests are passed

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yosefe

yosefe commented Nov 24, 2020

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yosefe

yosefe commented Nov 27, 2020

Copy link
Copy Markdown
Member

@hoopoepg error seems relevant - assertion in keepalive from hello-world
https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=11252&view=logs&jobId=f6a00158-c162-5d05-e321-5b7f75412dc2&j=f6a00158-c162-5d05-e321-5b7f75412dc2&t=1b8c0ea8-5fdd-5b35-a853-1eec20ac7859

[swx-rdmz-ucx-gpu-01:20565:0:20565]  ucp_worker.c:2776 Assertion `!ucs_list_is_empty(&worker->all_eps)' failed
[swx-rdmz-ucx-gpu-01:26362:0:26362]  ucp_worker.c:2776 Assertion `!ucs_list_is_empty(&worker->all_eps)' failed

/scrap/azure/agent-06/AZP_WORKSPACE/2/s/contrib/../src/ucp/core/ucp_worker.c: [ ucp_worker_keepalive_remove_ep() ]
      ...
     2773     }
     2774 
     2775     ucs_assert(!ucs_list_is_empty(&worker->all_eps));
==>  2776 
     2777     if (ucs_list_is_only(&worker->all_eps, &ucp_ep_ext_gen(ep)->ep_list)) {
     2778         /* this is the last EP in worker */
     2779         worker->keepalive.iter = &worker->all_eps;

@hoopoepg

Copy link
Copy Markdown
Contributor Author

something is wrong there: EP is trying to be removed from empty worker->all_eps
this assert is just handle situation when all_eps list is broken

@hoopoepg

Copy link
Copy Markdown
Contributor Author

fix: #5972

@yosefe

yosefe commented Dec 4, 2020

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yosefe

yosefe commented Dec 5, 2020

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yosefe

yosefe commented Dec 6, 2020

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

- added sender/receiver/keepalive error simulations to
  ucp_hello_world application
- ucp_failure_mode_t is renamed to failure_mode_t
- added keepalive tests
@hoopoepg
hoopoepg force-pushed the topic/ucp-hello-world-improved-error-simul branch from e38ab8b to 49e6122 Compare December 11, 2020 19:40
@hoopoepg

Copy link
Copy Markdown
Contributor Author

bot:pipe:retest

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@hoopoepg

Copy link
Copy Markdown
Contributor Author

failed due tohttps://github.com//issues/5999

@hoopoepg

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yosefe
yosefe merged commit 90cd6c9 into openucx:master Dec 13, 2020
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.

4 participants