Skip to content
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

Fixes to error path in tests #371

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Conversation

AmedeoSapio
Copy link
Contributor

nccl_message_transfer and ring tests are overwriting in the cleanup the error value
returned from previous calls. This is making the tests quite worthless,
because if a function fails the returned error will be overwritten by the
deallocate_buffer call, so if the deallocation is successful, the tests
succeeds. This PR fixes that by using a different variable for the
return values in the cleanup and makes the test fail if either a function
call fails, or the cleanup fails, or both.

While testing this, I also noticed that we were ignoring the return value of
send_close(), so I am also fixing that.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

nccl_message_transfer and ring tests are overwriting in the cleanup the error value
returned from previous calls. This is making the tests quite worthless,
because if a function fails the returned error will be overwritten by the
deallocate_buffer call, so if the deallocation is successful, the tests
succeeds. This commit fixes that by using a different variable for the
return values in the cleanup and makes the test fail if either a function
call fails, or the cleanup fails, or both.

Signed-off-by: Amedeo Sapio <[email protected]>
The exposed closeSend function points to blocked_send_close() which,
in turn calls send_close(). The value returned by send_close was ignored,
this commit is passing that value back to blocked_send_close.

Signed-off-by: Amedeo Sapio <[email protected]>
@AmedeoSapio AmedeoSapio requested a review from a team as a code owner April 3, 2024 00:26
@AmedeoSapio AmedeoSapio added the BuildTriggerRequest CI build will be triggered when this label is set label Apr 3, 2024
@rajachan rajachan merged commit 0d8eaee into aws:master Apr 3, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BuildTriggerRequest CI build will be triggered when this label is set
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants