#amara

/

      • mbentley|pi has quit
      • mbentley joined the channel
      • mbentley has quit
      • mbentley joined the channel
      • janeted joined the channel
      • sylvainc joined the channel
      • franontanaya joined the channel
      • franontanaya has quit
      • franontanaya joined the channel
      • willkg joined the channel
      • deaner joined the channel
      • DarrenBridenbeck joined the channel
      • michelled joined the channel
      • bendk joined the channel
      • bendk
        hey janeted
      • just pushed a fix for the newmedia branch
      • janeted
        hey bendk
      • bendk
        I wasn't sure what you meant about the images
      • are they working now, or is there an issue with them?
      • janeted
        when I run locally - the images are fine. But the selenium tests run in the container with the virtual display
      • and there when I grab a screenshot I can see that the images are missing
      • bendk
        hmm
      • I don't think it has to do with the virtual display
      • janeted
        ok - so I still get this when I run compile media
      • AttributeError: 'Settings' object has no attribute 'JS_OFFSITE'
      • bendk
        do the URLs change at all in selenium?
      • don't run it :)
      • no need anymore
      • janeted
        ah - ok
      • bendk
        one of the nice changes with the new system
      • janeted
        no but if you look in the docker_dev_settings_test.py file
      • you can see where I had to add all this extra crap about static media before
      • seems like that's not necessary now - but my images are missing
      • bendk
        ahh, yeah
      • I agree
      • maybe just remove all of that?
      • so STATIC_ROOT
      • STATIC_URL
      • janeted
        i did
      • so just using the dev_settings_test.py
      • is that the correct settings file?
      • bendk
        maybe
      • did you ever get it to work in the fig env?
      • janeted
        yes - I'm using the fig env now
      • so before your ssl changes - using the fig env + adding all that crap to the settings file worked.
      • bendk
        ok, so maybe just try dev_settings_test
      • janeted
        yes - I did that - that's what those images are from with the missing media
      • bendk
        and the URLs don't change at all?
      • janeted
        the ports are different
      • django live server uses different ports and you can specify a range
      • I can try it using port 8000
      • bendk
        I think that should be ok
      • having the port vary
      • ahhh
      • so that might be the issue actually
      • can you try adding this to your settings file:
      • janeted
        oh - it may also use localhost
      • bendk
        STATIC_URL = "/site_media/"
      • MEDIA_URL = "/user-data/"
      • janeted
        vs the name
      • bendk, that doesn't help
      • here's the url it opens:
      • fig run --rm app xvfb-run --server-args="-screen 0 2048x1600x24" python manage.py test --settings=dev_settings_test webdriver_testing.check_watch_page.TestCaseWatchPageSearch.test_search_simple
      • sorry
      • not that
      • bendk
        ok
      • maybe I can try to run the tests
      • is there anything special I need to do?
      • janeted
        I just added the screenshot command to tearDown in webdriver_base.py
      • otherwise there's no way to see what's happening
      • so just added
      • self.browser.get_screenshot_as_file("%s.png" % self.id())
      • will dump the image to the unisubs dir
      • running the watch_page tests - are a generally quick way to tell if it's working or not
      • michelled has quit
      • michelled joined the channel
      • bendk, when I run the sslapp - I still get all the mixed content warning and no styling - is that expected at this point - should I only be worrying about the embedder?
      • janeted has quit
      • janeted joined the channel
      • bendk
        janeted: hey
      • so I think there's more setup to get the webdriver tests working
      • did you talk about using a newer firefox repository or something?
      • Getting this
      • WebDriverException: Message: 'Can\'t load the profile. Profile Dir: /tmp/tmpyYfk6F Firefox output: Xlib: extension "RANDR" missing on display ":99".\n1406560861323\taddons.xpi\tDEBUG\tstartup\n1406560861324\taddons.xpi\tDEBUG\tcheckForChanges\n1406560861331\taddons.xpi\tDEBUG\tNo changes found\n\n(firefox:69): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Error spawning command line `dbus-launch --autolaunch=e231bd104f2db65aa509bb
      • and yeah, with sslapp you will get errors right now
      • I think we can the ones that are our fault
      • but then there's still the issue of video providers that don't support SSL
      • (like vimeo.com, which is the video we link to on the home page)
      • so short-term, I'd like to switch that video to the youtube version
      • long-term, I think we can detect there's an issue and put up some sort of message where the video would be that explains the situation
      • and lastly, a link to reopen the page using http
      • janeted: heh, I'll just keep talking even though I suspect you're not connected right now :)
      • one last issue that I'm realizing may pop up is with the javascript/CSS bundles
      • the reason we can skip the compile_media step is that we now generate them on the fly
      • the issue with that is that it can take like 5 seconds or so on my machine for the larger JS bundles. It's not a big deal when running a dev server, since we then cache the result, but it might cause some tests to fail if they don't wait long enough
      • not sure if that's an issue or not, but if it is I can add a command to pre-fill the cache
      • michelled has quit
      • janeted has quit
      • janeted joined the channel
      • janeted
        hey bendk sorry -
      • michelled joined the channel
      • I disconnected then froze -but I think I caught most of what you were saying
      • I forgot to mention to you that there were a few config changes I had to make to run the sel tests
      • I can push what I changed in a branch -
      • 1 was adding the firefox repos to the docker file
      • that other was a few things in the fig.yml file for the live server ports
      • bendk
        yeah, please push to a branch
      • I'll check them out
      • janeted
        ok
      • bendk
        also, there was a bit more
      • janeted
        yes - about the bundles and the timeout
      • bendk
        11:23:28 AM) bendk: and yeah, with sslapp you will get errors right now
      • (11:23:53 AM) bendk: I think we can the ones that are our fault
      • (11:24:03 AM) bendk: but then there's still the issue of video providers that don't support SSL
      • (11:24:12 AM) bendk: (like vimeo.com, which is the video we link to on the home page)
      • (11:24:20 AM) bendk: so short-term, I'd like to switch that video to the youtube version
      • (11:24:50 AM) bendk: long-term, I think we can detect there's an issue and put up some sort of message where the video would be that explains the situation
      • (11:25:08 AM) bendk: and lastly, a link to reopen the page using http
      • and the above stuff
      • janeted
        I can try adding a timeout to see if that's it
      • bendk
        hmm, yeah, I was more thinking that it could be an issue in the future. But now that I think about it, it could be why the media isn't loading
      • janeted
      • bendk, ^^
      • ehazlett
        all: doing some maintenance -- might notice a few slight blips in staging and production
      • trying to fix staging
      • janeted: bendk ^
      • janeted
        ok ehazlett
      • bendk, I added a 10 second wait and it still doesn't show the images
      • ehazlett
        all: deploying staging
      • janeted
        bendk, from the selenium logs:
      • WARNING 2014-07-28 11:32:29,211 base 29 140159823947520 Not Found: /site_media/images/partners/youtube.png
      • WARNING 2014-07-28 11:32:29,258 base 29 140159823947520 Not Found: /en/media/images/amara-logo.png
      • and lots more of those
      • ehazlett
        i think i may have found the staging issue
      • ehazlett fingers crossed
      • ugh nope
      • ok -- im digging
      • bendk
        janeted: so I don't know what to say about the selenium stuff, I'm not really sure that the issue is the missing images
      • I ran this test: webdriver_testing.check_watch_page:TestCaseWatchPageSearch.test_search__simple
      • and the issue was that the link wasn't present when it was looking for it
      • that seems like a search issue to me
      • DarrenBridenbeck has quit
      • michelled has quit
      • michelled joined the channel
      • janeted
        bendk, I do have some search issues as well
      • I haven't given up trying to figure out what they are yet - so I haven't asked for help
      • sylvainc has left the channel
      • bendk has quit