-
Notifications
You must be signed in to change notification settings - Fork 50
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
flux-jobs: support W presentation type, update cute output format #5179
base: master
Are you sure you want to change the base?
Conversation
Problem: A test in t2800-jobs-cmd.t had a message that was inconsistent to what the test performed. Update the test message to list what is tested. Update the format of the message to avoid it being super long.
re-pushed, fix spelling and linting issues found by CI. Edit: oops another time, isort fail. |
Problem: When outputting wide characters (e.g. emojis) in flux-jobs, the alignment of output can be poor due to the characters having different output widths. Solution: Add a new W presentation type that can adjust formating of the form "(<|>)N", e.g. {id.emoji:>12W}. The output width will be adjusted given the number of wide characters that exist in the string. Note that this presentation type does not help for all output scenarios, as it depends on the width of the output and width of the alignment, but it definitely helps in some scenarios.
Problem: The W presentation type is not documented in flux-jobs(1) Add paragraph covering it.
Problem: The cute format in flux-jobs is not cute enough! Solution: Update the format to use id.emoji over id.f58.
Problem: There is no coveragage for id.emoji and the W presentation type. Add some coverage in t2800-jobs-cmd.t.
Codecov Report
@@ Coverage Diff @@
## master #5179 +/- ##
==========================================
- Coverage 83.15% 83.15% -0.01%
==========================================
Files 455 455
Lines 78035 78050 +15
==========================================
+ Hits 64890 64899 +9
- Misses 13145 13151 +6
|
doh! i wonder if this is even solvable within the framework of how we do output formats. I suppose in some worst case it could loop through all potential outputs, see what the longest emoji length is, then adjust field width .... ugh |
Yeah, that's my worry as well. I guess we do already loop through all outputs to check for empty fields to handle |
Problem:
flux-jobs(1)
cute output does not throw enough emojis in your face.Solution: Update
flux-jobs
cute
format to useid.emoji
overid.f58
. Support newW
presentation adjuster to make the output prettier.