planemo icon indicating copy to clipboard operation
planemo copied to clipboard

Run local galaxy via gravity

Open mvdbeek opened this issue 2 years ago • 6 comments

This drops the run_tests.sh mode completely and leads to a lot of simplification of the code.

mvdbeek avatar May 09 '22 09:05 mvdbeek

@mvdbeek The unit test failures are legit, I think you mention you already have fixes for them?

nsoranzo avatar May 25 '22 17:05 nsoranzo

I'm working on this, yes.

mvdbeek avatar May 26 '22 08:05 mvdbeek

Q: with this, we are dropping support for serving/testing on Galaxy pre 22.01, right?

In that case, we should replace unit-nonredundant-noclientbuild-noshed-gx-2105 and unit-nonredundant-noclientbuild-noshed-gx-2109 tox envs with unit-nonredundant-noclientbuild-noshed-gx-2201 in .github/workflows/ci.yaml (and similarly in tox.ini).

nsoranzo avatar May 26 '22 16:05 nsoranzo

Q: with this, we are dropping support for serving/testing on Galaxy pre 22.01, right?

No, I will re-introduce the necessary parts. That shouldn't be a big deal, that was just for me to get started.

mvdbeek avatar May 27 '22 09:05 mvdbeek

It is used in _run for Galaxy Engines via https://github.com/galaxyproject/planemo/blob/36eb798ef41528571717b646c380ba2798cba948/planemo/engine/galaxy.py#L49. If we pass the kwds explicitly we'd have to make a copy of the dict so we're not passing the argument twice ... my first version did pass the timeout argument to _run but that didn't look much better to me.

mvdbeek avatar May 31 '22 12:05 mvdbeek

It's green!

mvdbeek avatar May 31 '22 14:05 mvdbeek

I remember now that one of the concerns I had at the time is that I'm not sure we're always correctly shutting down all processes managed by gravity ... unit tests seemed to leave me with lingering processes IIRC.

mvdbeek avatar Sep 21 '22 08:09 mvdbeek

Thanks for pushing us forward @mvdbeek - these are really really important changes and simplify things very nicely.

jmchilton avatar Sep 23 '22 13:09 jmchilton