-
Notifications
You must be signed in to change notification settings - Fork 20
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
wip! workflows as programs prototyping #407
base: master
Are you sure you want to change the base?
Conversation
@tsibley It was really cool to see a working demo of this idea today! A couple of thoughts I had from your lab meeting presentation: Providing
|
Yeah, I saw that in Snk. I'm not sure about auto-generating CLI options based on the workflow's config. It seems to me to be a more complicated way of providing
Yeah, I've waffled on this a bit in my thinking. My old notes are full of
My thinking of overloading
An exception to the verb-nouns command pattern is the So I figured trying to implementing pathogen setup/update into the existing commands would reveal if it was actually feasible or not and give more information to help make the choice. I do think we want a way to list workflows. Haven't quite gotten there yet. I think we can do something other than
+1! |
Thanks, @tsibley!
That's fair. My main hope was that we could include the documentation for the config in the interface somehow, thinking that it's nicer for users if they don't have to leave the command line for a website to figure out how the program works. The autogenerated CLI is just an example of one approach, but I'm open to whatever achieves the end goal.
Yeah, I can see how the interface gets complicated fast when you start to bifurcate on workflow vs. runtime. As you test this with people, I'd be most interested in whether external users experience any confusion when trying to update a runtime vs. a workflow. It's obvious to us that these are separate nouns, but if users rely on the verb to signal the noun that's being operated on, it could get confusing. |
Thinking out loud about implementation edge cases around fetching workflows:
¹ registering my (probably minority) vote for "something else"; having one verb do two completely different things seems like a bad idea to me… |
@genehack— Good questions, I've thought thru these previously (though not articulated them outside of my notes yet) and so have some answers. That said, I welcome others to think thru them too!
I anticipate the constructed source URL would not be exactly that (see below), but in concept, yes.
If it's not a bare word ("no slashes"), I'm inclined to require it be a URL for maximum explicitness/self-explanation to a reader, but I'd consider the "single slash" case of Notably, I don't plan to run Instead, my plan is to have the fully-resolved URL return a ZIP, while leaving it open to support more container formats (e.g. tarballs, Git, etc.) in the future.
My thinking is that
That is,
Trying to assign both the same name would be an error. In most common usage, of course, the name will be defaulted (i.e. Current on-disk storage plan is something like:
The "current"/default version to use will be stored in Names and versions and full URLs of installed pathogens will be reported in You could set up and use specific versions like:
This probably means you could handle the
Nod. The way I see it is that it does two completely different things under the hood, but to users who don't know/care about the implementation, it does the same thing: sets up X for use. I don't think users will care if X is a "runtime" or a "pathogen"; it's all just how they get bits of Nextstrain ready for use on their computer. (And at some point, we may blur the lines between "runtime" and "pathogen" if we start bundling the runtimes into the pathogen to support pathogen-specific arbitrary deps. This is the other half of "workflows as programs", though it may not come to pass.) And if we do find it's confusing to users, we can do "something else" later, but if we do "something else" now, it'd be hard to put the horse back in the barn later. (And also, it still may be that I end up finding it too confusing to explain once I spend more time making it a reality.) ⁂ ⁂ ⁂ There's much more to write about that I've noodled on, but this feels like a good stopping point to let some discussion happen. |
I'm very sympathetic to this, but I suspect that while you or I would like to not have to leave the command line to figure out how a program works, we a) are in the minority these days by far, especially among our users and b) already leave the command line for the web browser all the gd time because getting high-quality information (beyond basic reference material) available on the command line is Hard. (Don't tempt me with the good time of arranging to render our rST docs to nroff for use with
Totally. My thinking is that many (most?) users will do the one-time setup of a runtime and a pathogen or two by closely following docs, where understanding the nuance between the nouns is not crucial nor important, and then periodically run |
Heavily redacting to just comment on the bits I want to comment on 😁
Yep, I would be in favor of requiring a full URL for exactly that reason.
I hear you about the lack of a decent Git implementation to do the work, but I just tested the zipball download from Github and the thing that gets downloaded does not expand into a Git repo, and there's a tiny voice in the back of my head that says we're gonna end up regretting that. Also means that the The tiny voice is pretty quiet so maybe it's okay to ignore it.
...and by
Sure, I get it — but there's a point where "ease of use" crosses into "obscuring actual functional differences", and for me this is on the wrong side of that line. This is probably the same tiny voice as before though...
++1 |
Sounds ████████, thanks.
👍
Hmm. Can you say more about why you think we'd regret that? I get the inclination, but I've found myself unable to identify a concrete reason we'd want/need these copies to actually be Git repos.
Why not? I don't follow. There's nothing preventing the use of a Git repo at And one usage pattern I didn't mention here yet (though did in convos with Jover) would be potentially supporting that symlink/
o(f)c. :-P
Nod. Hmm. The functional differences being "makes I'm sympathetic to not wanting to use |
As soon as somebody wants to collaborate with us on something, we're gonna want the data in Git. I agree that it might not be a requirement but there are a lot of troubleshooting things that are going to be way harder, I suspect. (I.e., somebody contacts us, they
But if you're manually symlinking/
The difference being runtimes aren't datasets, and I don't see any gain we get out of obscuring that distinction.
Yeah, I don't think I have anything better than everything you've already decided against. 🤷 |
Ah! I think I see our parity mismatch now: you're expecting If someone's at the "hacking on the source" stage of usage, I fully expect them to be managing their own
In my thinking, the user-visible distinction of runtimes vs. pathogens/workflows exists solely as an accidental/incidental implementation detail. Ideally, the whole runtime thing would be subsumed into pathogens/workflows and while it wouldn't be hidden from users, it'd need not be so visible. I guess put in your terms, I see it the other way: what do we gain from highlighting the (current) distinction? (Also, I think we're talking about "Nextstrain pathogens", not "datasets".)
Yes, sorry, I elided some thinking there where I expect that for development (incl. probably CI), we'd be using either a) And like I said, if we didn't want to manually-imitate
How about any reasons why the downsides I described for those aren't actually as downside-y as I think they are?
I'd considered Qualifying it with |
Adding another option for command naming: |
Hmm. Intriguing. I think Note that I do want to support not just a single version that you can freely upgrade/downgrade, but multiple concurrent versions. |
Re: We already use other technical terms that are not widely understood (e.g. "runtime", "build"), so I don't see the new terminology "pull" as much of a negative. |
Yes, agreed we shouldn't use
Ah, I don't think I agree. I think for many people "installing Nextstrain" would naturally include a pathogen of interest to them. We have a nuanced understanding of all the bits and bobs that are "Nextstrain"¹, but experience suggests to me that most users do not. For example, we very often see folks who (understandably) conflate "Nextstrain" with some specific part of it, e.g. Nextclade. IMO, they shouldn't have to care much about it a lot of the time. ¹ and try to communicate some of that in parts of a whole
Those existing terms are often sources of confusion and require explanation. It'd be nice not to add to that if we have other options. |
Interesting points. I see what you mean and it makes sense under the "workflows as programs" phrasing, but it's a new perspective for me. I'll let the thoughts marinate... |
👍 🧑🍳 ⁂ To followup on my own statement:
At least, shouldn't use both |
See commit messages. Opening for visibility and soliciting commentary. Not for merge yet.
Related-to: nextstrain/measles#55
Checklist