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

libsubprocess: check bufsize is > 0 #6365

Merged
merged 3 commits into from
Oct 11, 2024

Conversation

chu11
Copy link
Member

@chu11 chu11 commented Oct 11, 2024

peeling off some independent cleanups/fixups from #6353

chu11 added 3 commits October 11, 2024 13:32
Problem: A test in libsubprocess outputs the wrong function name
in its test description.

Fix the function name in the test.
Problem: The service name used when setting up a subprocess server
is configurable.  However, most of the error messages assume the
service name is "rexec".  This can lead to log messages pointing
users to the wrong RPC target.

Store the service name in the subprocess server context and output
the appropriate RPC target in error messages.
Problem: A channel bufsize setting of 0 is technically possible,
which should not be allowed.

Check for bufsize > 0.  Add unit test.
@chu11 chu11 force-pushed the libsubprocess_bufsize_zero branch from 15d60a1 to 0482fd6 Compare October 11, 2024 20:32
Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

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

LGTM

@mergify mergify bot merged commit 50f8dc2 into flux-framework:master Oct 11, 2024
33 checks passed
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.27%. Comparing base (d69bedd) to head (0482fd6).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/common/libsubprocess/server.c 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6365      +/-   ##
==========================================
- Coverage   83.28%   83.27%   -0.01%     
==========================================
  Files         524      524              
  Lines       86224    86230       +6     
==========================================
  Hits        71812    71812              
- Misses      14412    14418       +6     
Files with missing lines Coverage Δ
src/common/libsubprocess/util.c 90.47% <100.00%> (+0.73%) ⬆️
src/common/libsubprocess/server.c 78.63% <75.00%> (-0.11%) ⬇️

... and 7 files with indirect coverage changes

@chu11 chu11 deleted the libsubprocess_bufsize_zero branch October 11, 2024 23:09
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