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: minor cleanup #5974

Merged
merged 7 commits into from
May 17, 2024

Conversation

chu11
Copy link
Member

@chu11 chu11 commented May 16, 2024

Splicing out this collection of minor things from my bigger PR

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!

@chu11
Copy link
Member Author

chu11 commented May 17, 2024

@Mergifyio rebase

chu11 added 7 commits May 17, 2024 20:55
Problem: A comment cut and paste did not get updated for the
actual code it was commenting on.

Update the comment for the code.
Problem: Some comments still reference flux_exec(), which was renamed
a long time ago.

Update the comments to mention flux_local_exec().
Problem: A message in a test was not changed after a likely
cut and paste.

Correct test description.
Problem: A number of tests in test/remote.c output test descriptions
based on the command executed in the subprocess.  However, multiple
tests are run under "/bin/sh", making those test descriptions duplicated
across multiple tests.  It'd be nice if these test descriptions could
be differentiated.

To differentiate the tests, instead specify a "prefix" parameter that
will be output before a collection of tests.  The prefix can be set to
something unique to differentiate tests.
Problem: The test utility libsubprocess/test/test_echo doesn't
have any usage instructions.

Add some comments at the top of the file to help developers remember
how this tool works.
Problem: For some reason a string is put into a buffer with
sprintf before it is used.  There is no other formatting of the
string in any way.

Remove the unnecessary buffer and sprintf call.
Problem: No coverage exists for invalid flags passed to flux_rexec().

Add a test in test/remote.c.
Copy link
Contributor

mergify bot commented May 17, 2024

rebase

✅ Branch has been successfully rebased

@chu11 chu11 force-pushed the libsubprocess_minor_cleanups branch from 7b538a6 to 3756556 Compare May 17, 2024 20:55
Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.30%. Comparing base (c0e17b4) to head (3756556).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5974      +/-   ##
==========================================
+ Coverage   83.28%   83.30%   +0.02%     
==========================================
  Files         515      515              
  Lines       83399    83399              
==========================================
+ Hits        69458    69479      +21     
+ Misses      13941    13920      -21     

see 7 files with indirect coverage changes

@mergify mergify bot merged commit a00ebdd into flux-framework:master May 17, 2024
35 checks passed
@chu11 chu11 deleted the libsubprocess_minor_cleanups branch May 17, 2024 21:53
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.

None yet

2 participants