-
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
Kill wreck and other unused code #1988
Conversation
Yikes, I didn't expect the void left behind by this PR to be so terrifying. |
Its like deleting the last 5 years of my life. Kind of liberating! |
Maybe I should have shot old Yeller instead of making you do it :-/ |
Ok, kvs lua bindings are removed. Now I think the only user of |
Restarted a builder that failed on #1986 |
I thought I un-classiced kvs.py in #1748. But the old watch code has been deprecated since then, so perhaps we gotta update that part too. That said, I don't see any python using the watch code, so perhaps that code can be yoinked? (But also yet again, #1649 says we gotta re-work tons of that python lib) |
Yeah, my hesitation is that we do have users using the python bindings, so I don't know what is safe to remove. However, the point of this PR is removal of older interfaces regardless of current usage, so I'll just go ahead and remove that code along with the old kvs_watch interfaces if that is ok by you. |
A couple kvs tests still use watch: |
There are probably a few that need to be updated. Would you like me to do that as a PR before this PR is merged? Or shall we just leave all watch code as is and do it separately? |
Yeah, this seems like the best approach. I thought there were just a couple uses of watch that could be easily converted, but it is a bit more complex than that and probably not valid for this PR. |
3c586c4
to
b2f64ab
Compare
Ok, I've pushed some further code removal and other cleanup (removed some accidental debug code from At this point there are many unused functions in To fully remove the Lua bindings, we'd have to remove the |
Oh, I also had thought about moving |
I think this PR already cuts pretty deep. My $0.02 would be to leave working bits unrelated to wreck alone for now, with the exception of the deprecated stuff you've already culled. Won't the Similarly, the lua bindings have provided a lot of utility thus far. Maybe one could make a case that we should go all in with python as our scripting language, but I'm sure there are pros and cons to that choice and it seems like a discussion to have in an issue. I think |
I've updated some of the commit messages to close open issues and force-pushed. |
rebased on current master |
4506b63
to
e4904d8
Compare
Oops, I was testing autorebase and used a real branch. Well, rebased (by a tiny panda) on current master. |
Codecov Report
@@ Coverage Diff @@
## master #1988 +/- ##
==========================================
+ Coverage 80.13% 80.42% +0.28%
==========================================
Files 195 180 -15
Lines 35191 29394 -5797
==========================================
- Hits 28201 23640 -4561
+ Misses 6990 5754 -1236
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with this going in ASAP.
@grondo, feel free to add |
I think I'll consider double-hooray on the initial post as enough acks. Let's get this over with. |
Yeah, this is a big drawback of using the bot -- it doesn't seem to auto-close issues 😠 |
ah, crap. No it seems I may have pushed from an older branch somehow. Wow, that's too bad. I think the main differences were just the commit messages, but I'll double check to be sure. |
This is an initial pass at euthanizing the old execution system as requested in #1984. Continuing along those lines, other code and services of which wreck was the main or only user is removed. Small modifications were made in other places to get even more old code amputated, including, finally, the removal of
libcompat
.Still todo:
flux-aggregate.c
. This was a hack and slash job and now that I think of it should be undert
if it is kept at allmodules/cron
-- there isn't a use case for this module anymore (actually ever since hierarchical lwj directory), andflux-cron
is the last utility written in lua.t/scripts
in shell or C and remove the rest of the Lua bindings.Then we can move on to removal of older kvs watch and other kvs_classic calls etc.
There will need to be similar work done in flux-sched before this get merged. If we had thought ahead we could have tied the current flux-sched to v0.11.0 tag of flux-core, but since we've applied changes to flux-sched that require newer flux-core we'll instead have to update flux-sched first.