#www

/

      • bugbot has quit
      • bugbot joined the channel
      • Coldblackice joined the channel
      • Coldblackice has quit
      • Mermi joined the channel
      • mr_slate joined the channel
      • NOTICE: [13bedrock] 15alexgibson opened pull request #4144: Add functional tests for /contribute tasks (06master...06functional-tests-contribute-tasks) 02https://github.com/mozilla/bedrock/pull/4144
      • mr_slate has left the channel
      • circleci-bot joined the channel
      • circleci-bot
        Success: alexgibson's build (#969; push) in mozilla/bedrock (pull/4144) -- https://circleci.com/gh/mozilla/bedrock/969
      • circleci-bot has quit
      • agibson
        pmac: when running bedrock locally in dev, what’s the easiest way to stop all the /static media copying/processing?
      • pmac
        agibson: hmmm... what you mean exactly?
      • do you want to pre-build the assets then leave them static?
      • agibson
        like, how do I stop it taking 10 seconds to load a page?
      • pmac
        or do you want no statics?
      • D:
      • agibson
        I just want a page to load and not need to do any pre-processing
      • pmac
        not sure how that's possible
      • since we use less
      • agibson
        as if everything is already in /static
      • pmac: so I’m toying with the idea of doing that in gulp
      • in dev to start with anyway
      • just to speed things up
      • right now, it seems to copy the entire /medai directory to /static on every page load
      • which is why I think it takes so long
      • pmac
        yeah. we so desperately need a better media solution. I know josh and I have it as a priority. Hopefully next sprint.
      • agibson: try this. set PIPELINE_ENABLE = True in your settings/local.py
      • then run ./manage.py collectstatic
      • then see if it's fast
      • agibson: what is the ideal system? I know it's node based, and presumably gulp since that's what we have now. but what does the compression etc.? and how do we handle minified bundles?
      • require.js? less imports? some other system?
      • agibson
        pmac: I’m not even thinking about production right now, just dev as a first step
      • pmac
        i.e. what defines the bundles, and how does the template code change from dev -> prod
      • agibson
        all I want to do as a first step is load a page locally, quickly
      • pmac
        ok... so what defines the bundles in dev. just HTML script tags, or a loader script with require() calls?
      • agibson
        why would we need all that for dev mode?
      • pmac
        so we can do that, but it won't be updated automatically when you change something
      • agibson: wanna vidyo chat about it?
      • agibson
        perhaps I’m not fully understanding why we need all those things just for local development
      • sure
      • pmac: your vidyo?
      • pmac
        sure
      • rbillings joined the channel
      • mr_slate joined the channel
      • NOTICE: [13bedrock] 15pmac opened pull request #4145: Disable middleware using the Django way (06master...06disable-middleware-properly) 02https://github.com/mozilla/bedrock/pull/4145
      • mr_slate has left the channel
      • circleci-bot joined the channel
      • circleci-bot
        Failed: pmac's build (#970; push) in mozilla/bedrock (pull/4145) -- https://circleci.com/gh/mozilla/bedrock/970
      • circleci-bot has quit
      • malexis joined the channel
      • mham joined the channel
      • circleci-bot joined the channel
      • Fixed: pmac's build (#971; push) in mozilla/bedrock (pull/4145) -- https://circleci.com/gh/mozilla/bedrock/971
      • circleci-bot has quit
      • malexis has quit
      • bugbot
        New www.mozilla.org bug 1275006 filed by wbowden@mozilla.com.
      • Bug https://bugzilla.mozilla.org/show_bug.cgi?id=12... Pages & Content, normal, nobody, NEW , Update value prop on First run
      • CocoMo joined the channel
      • CocoMo1 joined the channel
      • CocoMo has quit
      • CocoMo joined the channel
      • CocoMo1 has quit
      • mham has quit
      • mham joined the channel
      • CocoMo1 joined the channel
      • CocoMo has quit
      • CocoMo1 has quit
      • craigcook joined the channel
      • malexis joined the channel
      • malexis has quit
      • pmac
        agibson: just added a branch: upgrade-django-pipeline
      • malexis joined the channel
      • check that out, have DEBUG set to True, and that should speed page loads tremendously :)
      • agibson: you'll have to install some package upgrades
      • just pip install -r requrements/dev.txt
      • agibson
        pmac: nice! is the branch on your repo?
      • pmac
        agibson: I put it on mozilla repo so you can easily get it w/o adding my remote
      • agibson: with DEBUG = True, first run ./manage.py collectstatic
      • agibson
        pmac: hmm, don’t see the branch?
      • pmac
        we'll probably have to tell people to continue doing this, or more likely, add that as a command to the gulp script for startup
      • hmmm
      • just a moment
      • agibson
        oh, nv I got it
      • I think github is having issues
      • pmac
      • yeah
      • and yeah
      • agibson
        thanks :)
      • pmac
        lmk
      • so that combined with a gulp task for dev compilation/copying/etc. and we should be in a decent spot with minimal disruption \o/
      • jgmize: ^^
      • agibson
        pmac: i was just trying PIPELINE_COLLECTOR_ENABLED locally and wondering why it didn’t seem to work :)
      • jgmize reads scrollback
      • pmac
        agibson: yeah, our version was too old :)
      • jgmize: tl;dr is that we think we have a way to keep pipeline but disable the awful dev mode perf
      • agibson
        pmac: I’ll see if I can dig into this tomorrow and fingers crossed we can put together something that works ok :)
      • rbillings has quit
      • jgmize
        \o/
      • pmac
        agibson: great. thanks for the push!
      • agibson
        nw :)
      • this is all assuming it works out of course ;)
      • pmac
        I'm feeling good about it
      • don't see why it won't at this point
      • agibson
        I think it should get us to where we need with minimal effort
      • pmac
        the major stumbling block is cleared IMHO
      • yeah
      • agibson
        slight change is folks will need to remember to run collectstatic when pulling branches etc
      • but maybe we could build this into the gulp task also
      • pmac
        agibson: it runs pretty fast, so I think the gulp task will work
      • agibson
        sweet
      • pmac
        agibson: I'm also thinking we can maybe do w/o it
      • and just set media/ to be the static dir in dev mode
      • agibson
        perhaps yeah, will see how things pan out
      • oh i see
      • yeah that would work too
      • pmac
        compiled files would clutter things tho
      • so i dunno.. could work though
      • agibson
        no more than they used to
      • mr_slate joined the channel
      • NOTICE: [13bedrock] 15jgmize closed pull request #4145: Disable middleware using the Django way (06master...06disable-middleware-properly) 02https://github.com/mozilla/bedrock/pull/4145
      • mr_slate has left the channel
      • pmac
        or I could possibly write a static file finder class that looks in a static-dev folder first, then in media if it's not there
      • agibson
        that would be pretty nice
      • so all the perf if the file is already there
      • pmac
        agibson: I think the problem we'll have is that less compilation wouldn't happen at first pass
      • but, you can always do that as part of the gulp task
      • hmmm
      • agibson
        ah right
      • pmac
        we'll get it though. I'm pretty confident now.
      • agibson
        yeah so maybe better part of the gulp task
      • we’ll work things out yeah
      • pmac
        yeah
      • jgmize
        +100 for moving compilation to gulp task
      • agibson
        this is just for local dev (for now)
      • rbillings joined the channel
      • jgmize
        step 1. local dev, step 2 replace collectstatic with gulp + new static file finder that looks in media and static, static only contains compiled assets, change settings.MEDIA_DIR to be user-media or something else (we don't actually use it), step 3 ???, step 4. PROFIT!
      • step 2 is for deployment, and should probably be broken up into more steps. I reached a little far for the "profit" joke
      • agibson
        :)
      • pmac: omg…. speed, sweet sweet speed
      • jpetto wants this speed
      • jgmize
        pmac: the current django pipeline config compresses creates .gz files that are completely unused in prod-- is there a quick and easy way to disable that?
      • jgmize pulls down the upgrade-django-pipeline branch
      • agibson
        rogerroger: Today: Opened PR to add functional tests for the new /contribute task pages (pull 4144). Potential blocker on merging the cleaning up branch for old /contribute forms & pages (see bug 1271422). Hatching some plans with pmac to speed up local bedrock development.
      • rogerroger
        Ok, submitted status #34529 for http://www.standu.ps/user/agibson
      • bugbot
        Bug https://bugzilla.mozilla.org/show_bug.cgi?id=12... Bedrock, normal, agibson, ASSIGNED , Clean up unused/old /contribute/signup/ code & assets
      • pmac
        jgmize: they are used in prod
      • whitenoise uses them
      • it will respond with the compressed file if the accept header has gzip in it