-
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
kvs test cleanup #1313
kvs test cleanup #1313
Conversation
Rename wait_watch_current() to wait_watch_file() and take filename as argument.
Make loop iteration configurable via new KVS_WAIT_ITERS variable.
Codecov Report
@@ Coverage Diff @@
## master #1313 +/- ##
==========================================
- Coverage 78.24% 78.23% -0.02%
==========================================
Files 154 154
Lines 28100 28100
==========================================
- Hits 21987 21984 -3
- Misses 6113 6116 +3
|
oops, bourne shell uses |
Move helper functions into new kvs/kvs-helper.sh file.
For consistency, rename wait_watch_namespace_put().
Use in t1004-kvs-namespace.t to cleanup lines of code.
oops, forgot to add helper file to dist. Re-pushed again. |
Hit #731, restarted a builder
|
noticed a minor issue with a comment, repushed |
This looks good to me. If you're done tweaking it, I vote we merge. |
I'm not commenting on this PR specifically, however if someone does more cleanup in the future, you could see if the busywaiting in (I didn't look closely at what |
Use KVS_WAIT_ITERS instead of hard coding 50. Call wait_watch_put() to remove duplicate code. General code cleanup.
Adjust t1000-kvs and t1004-kvs-namespace accordingly.
@garlick i thought of one extra cleanup this morning, so I just pushed that. Otherwise, it's good to go. |
@grondo I wasn't aware of the waitfile.lua script, but it seems (glossing over the help comments) like it could probably work. Will have to investigate in the future. |
Hmm, any idea why that last change dropped the project coverage into the red? Did something stop running I wonder? |
The coverage only changed -0.02% which is negligible (and probably caused by coverage "noise" that I don't quite understand yet). Codecov should have some tunable that indicates only a drop in coverage of X% should turn the report red (I thought we'd set that already) |
Oh right, I guess that is not anything to worry about. I'll go ahead and merge. |
Some simple kvs test cleanup I wanted to do. Mostly put some common functions into
kvs/kvs-helper.sh
, but some tiny things beyond that too.