Problem/Motivation
This blocks #2421427: Improve the UX of Quick Editing single-valued image fields and was discovered at #2421427-73: Improve the UX of Quick Editing single-valued image fields.
As you can see in http://cgit.drupalcode.org/drupalci_testbot/tree/containers/base/php-bas..., testbot currently uses
RUN curl -L https://github.com/bprodoehl/phantomjs/releases/download/v2.0.0-20150528/phantomjs-2.0.0-20150528-u1404-x86_64.zip -o ~/phantomjs-2.0.zip && […]
, which is Phantomjs 2.0.0 from May 28, 2015.
But, until https://github.com/ariya/phantomjs/issues/12506 was fixed on December 12, 2015, it was impossible to upload files. https://github.com/ariya/phantomjs/milestone/14?closed=1 (version 2.1) was the first release to contain this fix. It was released on February 3, 2016.
So, until we update PhantomJS, we cannot have any JS tests using file uploads.
Proposed resolution
Update PhantomJS to 2.1.1.
Remaining tasks
TBD.
Comments
Comment #2
Wim LeersIRC chat log with @Mixologic:
Comment #3
Wim LeersRelevant here: I attempted to devise a work-around, but turns out that that also doesn't work in PhantomJS. Quoting #2421427-75: Improve the UX of Quick Editing single-valued image fields:
Comment #4
Wim LeersAnd to prove that all JS tests work on PhantomJS 2.1.1:
Comment #6
MixologicI've updated the code, pushed to drupal.org, synced the code to bitbucket, triggered the webhook to rebuild the containers, and now they are queued on dockerhub waiting to rebuild.
As soon as they have rebuilt, I will re-create another AMI with the new containers on them, and we should have the upgrade available.
Comment #7
MixologicThose builds are here btw: https://hub.docker.com/r/drupalci/php-base/builds/
Comment #8
dawehnerThanks a lot @Mixologic for this super fast reaction!
Comment #9
samuel.mortensonThanks @mixologic! I'll be watching the builds patiently :-)
Comment #11
Wim LeersThanks so much @Mixologic, this is incredibly fast! But now, please go get some sleep!
Comment #13
samuel.mortensonIt looks like some builds failed on https://hub.docker.com/r/drupalci/php-base/builds, but others succeeded! Do we need to trigger another rebuild or is the docker image having problems?
Comment #14
MixologicIm going to see about rebuilding the AMI that drupalci uses to get the new containers that have the new phantom in them today
Comment #15
MixologicAMI rebuilt and deployed into production. Ugh. this process is/was ugly.
Comment #16
Wim LeersThanks! :)
Comment #17
samuel.mortensonThanks again @Mixologic! Tests are green and the issue in unblocked now :-)
Comment #18
Mixologic