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

testsuite: add --raw-response opt to rpc test program #6342

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

garlick
Copy link
Member

@garlick garlick commented Oct 3, 2024

Problem: t/request/rpc adds a NUL character to output.

Add a -R,--raw-response option which allows any raw payload to be output when that matters, but otherwise omit the NUL character when the response is a string.

Update tests that require raw payloads.

Also do a bit of adjacent cleanup.

Copy link
Contributor

@grondo grondo left a comment

Choose a reason for hiding this comment

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

LGTM!

@garlick
Copy link
Member Author

garlick commented Oct 3, 2024

Thanks! MWP!

Problem: t/request/rpc adds a NUL character to output.

Add a -R,--raw-response option which allows any raw payload to be
output when that matters, but otherwise omit the NUL character
when the response is a string.

Update tests that require raw payloads.

Fixes flux-framework#6340
Problem: some tests define $RPC without using it.

Drop it in those tests.
Problem t/request/rpc_stream uses flux_rpc_raw() when it
doesn't support raw payloads.

Use flux_rpc().  Duh.
@mergify mergify bot merged commit 7b98dd4 into flux-framework:master Oct 3, 2024
33 checks passed
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.33%. Comparing base (8167833) to head (72d9ff6).
Report is 4 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #6342       +/-   ##
===========================================
+ Coverage   53.75%   83.33%   +29.57%     
===========================================
  Files         474      523       +49     
  Lines       78606    86189     +7583     
===========================================
+ Hits        42257    71823    +29566     
+ Misses      36349    14366    -21983     

see 445 files with indirect coverage changes

@garlick garlick deleted the issue#6340 branch October 3, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants