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

add flux-lptest #6301

Merged
merged 2 commits into from
Sep 24, 2024
Merged

add flux-lptest #6301

merged 2 commits into from
Sep 24, 2024

Conversation

garlick
Copy link
Member

@garlick garlick commented Sep 24, 2024

Problem the lptest utility is useful for testing standard I/O buffering on a deployed system, but it only exists in the source tree.

At least, I keep finding a use for it and accessing it is not always convenient.

This elevates the lptest test program to a flux command.

I didn't feel a man page was warranted for this one.

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.

Sure, why not? 👍

}

// vi:ts=4 sw=4 expandtab

Copy link
Contributor

Choose a reason for hiding this comment

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

Python linter maybe didn't like this trailing line? 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

What it's checking C files now??? Ok.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I guess this set of pre-commit hooks are not Python specific:

    hooks:
      - id: check-added-large-files
      - id: check-case-conflict
      - id: check-docstring-first
      - id: check-shebang-scripts-are-executable
      - id: end-of-file-fixer
      - id: trailing-whitespace
      - id: mixed-line-ending

Copy link
Member Author

Choose a reason for hiding this comment

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

I did not realize that!

Problem: the "lptest" test program in t/shell/lptest.c is
useful for diagnosing problems with standard I/O buffering
outside of the testsuite.

Since it is so trivial, just make it a built-in flux command.
Problem: the test suite lptest executable now duplicates flux lptest.

Remove the test suite version and point tests at the flux version.
@garlick
Copy link
Member Author

garlick commented Sep 24, 2024

OK well that did it. I'll set MWP - thanks!

@mergify mergify bot merged commit 8352e72 into flux-framework:master Sep 24, 2024
33 checks passed
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

Attention: Patch coverage is 90.32258% with 3 lines in your changes missing coverage. Please review.

Project coverage is 83.34%. Comparing base (7efc1a0) to head (36075dd).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/cmd/builtin/lptest.c 90.32% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6301      +/-   ##
==========================================
+ Coverage   83.32%   83.34%   +0.02%     
==========================================
  Files         522      523       +1     
  Lines       86093    86124      +31     
==========================================
+ Hits        71733    71780      +47     
+ Misses      14360    14344      -16     
Files with missing lines Coverage Δ
src/cmd/builtin/lptest.c 90.32% <90.32%> (ø)

... and 10 files with indirect coverage changes

@garlick garlick deleted the lptest branch September 24, 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.

2 participants