-
Notifications
You must be signed in to change notification settings - Fork 991
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
[18.05] add static content for vis plugins #6297
Conversation
Whoa, did this get stripped or something, previously? This should absolutely not be necessary -- the whole point of the bundling was to make portable, atomic plugins that do not have to be rebuilt all the time. What was the actual problem you were seeing that prompted this? |
@dannon visualizations on Main fail with 404s on Request URL: sorry to interrupt your vacation, I was trying to avoid it |
@martenson No worries at all, randomly happened to see the email come in when I came up for lunch ;) I'm trying to stay away, but it's hard. I see what's going on here. The visualization framework requires staging now, with #5810, if you aren't using the predefined routes for static content. |
how is this done? |
The In any event, the fix here shouldn't be extra (new) |
I see three options:
After discussions with @guerler and @natefoo I think the preferred choice is actually merging this PR. edit: this is broken on Main since yesterday, when we turned off the client building, but is broken for everybody else with uwsgi since 18.05 |
For main, right now, just run 'gulp plugins' wherever static is served. As you mention, turning off the client deployment process is what broke it. That command would fix the staging right now without any commits. If that's broken, we should fix it. Longer term, like we've talked about, this should just automagically happen on startup for most sites. Medium term, instead of completely duplicating 50k lines adding them to Edit: Additional options are to
These two options are actually better, since they'll correctly stage/route deployer-installed plugins. Adding all this static to the repo does nothing for that. Regarding I don't think we should merge this. |
Is that the goal? My recollection is that we'd agreed that build artifacts would remain for released stable branches. That said, if all that's needed here is a copy, then let's just have them copied in |
If we are modifying, copying, etc.. the artifacts at startup - why not just build them? The Conda based node stuff seems pretty stable and should work on all older OSs we support otherwise. I propose we merge this PR as is so 18.05 has the correct stable artifacts we sort of promised and immediately branch a 18.06 from 18.05 that just removes the artifacts all together - and all future releases will require a build. We've been waiting too long on pip install galaxy and it doesn't seem to be on the horizon. |
@jmchilton what is the purpose of 18.06, why not just wait for next regular release? |
Because you and @natefoo want a stable release with the artifacts in place and ready, @dannon wants to not include these in the release. I'm compromising and giving you each a release that does what you want. It also gives admins a clean release that only changes that to help upgrade. I want to backport some bugfixes to GUI stuff and I'm tired of dealing with the build artifacts. |
Again, I don't think we should merge this. It's a simple stage - a flat copy/duplication of 50k lines, all this bloats the repo. I only used the gulp process to do it because it was easy to include there -- maybe not a great choice in retrospect, and it'd be trivial as @natefoo suggests to just stage with sh in run, or do it in python. My plan was, yes, to include build artifacts until we have a robust way of automatically building correctly. We have that now, and I hoped we'd drop them completely in the next release or two. |
Can ya'll just run |
Why is doing the mapping so hard?
…On Wed, Jun 6, 2018 at 4:22 PM Martin Cech ***@***.***> wrote:
I see three options:
- map static to config (cannot be done/hard for uwsgi deployments)
- build client on startup (we agreed we will not require this and make
effort to ship pre-built static)
- this PR
After discussions with @guerler <https://github.com/guerler> and @natefoo
<https://github.com/natefoo> I think the preferred choice is actually
merging this PR.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6297 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAE4ZaqvQjLWm0Y989ZwjlDTaQ7LmUC8ks5t6Dn4gaJpZM4UdJUS>
.
|
@jxtx uwsgi static mapping didn't play nice with the dynamic routes required for multi-tiered plugins (and we need the granular mapping to only serve the static content, instead of the python/package/etc files that might be in |
Is there an issue for that? Seems like that is what should be fixed as we
move to uwsgi by default.
…On Thu, Jun 7, 2018 at 9:58 AM Dannon ***@***.***> wrote:
@jxtx <https://github.com/jxtx> uwsgi didn't play nice with the dynamic
routes required for multi-tiered plugins
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6297 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAE4ZZoGPk76L00LuA7J442HHnh_GHUPks5t6TGPgaJpZM4UdJUS>
.
|
My understanding is this level of one time bloat is tiny compared the packed artifacts we are regenerating with every bug fix to 18.05. If we merge this and then create an 18.06 and push client fixes to that - the growth size of our repo will slow way down. |
@jmchilton My simple patch check says this is 9.2 Mb. So that's 18 megs to do/undo it, which is significant. (to be clear, I am 100% with you on dropping them from the repo completely -- I just don't think this particular PR or 'fix' should be pursued at all) |
Update: Wait is the patch 9Mb or is the size it contributes to the git repo 9Mb? How could this possibly be worse than the packed everything once in the reoo? |
+1
+1 on doing this but after GCC (July/August) to prevent user/admin/training confusion and give us more time to think about this. |
@jmchilton That was the patch size, I didn't check the git index to see the blob, not sure. @martenson Thanks for that, and I agree with it being post-GCC. I pinged @natefoo on IRC and we're going to get main staged right away for an immediate fix, and I can look into run.sh when I get back. If anyone is interested in looking before that, here's the handle to the gulp task that does the staging (all that we need to do to make everything work): https://github.com/galaxyproject/galaxy/blob/dev/client/gulpfile.js#L115 |
Main fixed now, the release needs a bugfix that would copy the config static to static proper. p.s. we could also symlink-mirror it, haha |
on 18.05
|
new node 10.4 broke this, stupid yarn still supports only 8.x |
is this what is needed to make visualizations work on release branch? It is not even compressed so we shouldn't merge as is :/
ping @guerler