Closed (fixed)
Project:
Juicebox HTML5 Responsive Image Galleries
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2016 at 18:00 UTC
Updated:
19 Oct 2016 at 17:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gisleTrivial patch uploaded - just to see how it is treated by automated tests.
Comment #4
gisleOK, the patch failed testing.
So It looks like testing is broken.
Comment #5
gisleFixed typo in summary.
Comment #6
rjacobs commentedNo, test failures are never normal :) ... and there are no outstanding known issues that are blocking tests.
The automated testing for 7.x-2.x on this module is only set to run on patch submissions and commits (there is no daily check run currently), and there have not been many of those in recent months on that specific branch. So core changes that might have introduced test case problems have simply gone unnoticed. Anyway, it certainly warrants some investigation.
Comment #7
rjacobs commentedThe test errors appear to be related to the new "administer fields" permission that was added in core 7.50:
https://www.drupal.org/node/2483307
The setup routines for most of the tests depend on the ability to set and alter field settings which was not being allowed because that new permission was not set during the test setup.
The following patch should address it.
Comment #9
rjacobs commentedWell... it addressed most of the errors at least. The lingering one seems to have something to do with the file entity soft dependency, so I'll need to see what's going on there (I can't replicate that one locally just yet).
Comment #10
rjacobs commentedLooks like file_entity also had some permission changes that needed to be accounted for in the test case that leverages it. Here's another go at it.
Comment #12
rjacobs commentedLooks good. Test fixes committed.
@gisle, can you submit your documentation updates in a separate new issue? I just want to keep this patch dedicated to the test fixes.
Comment #13
gisleI have no (real) documentation updates. Please ignore the patch in #2 - it was only created by me to see whether the automated testing framework was able to tell the difference between errors triggered by the patch being submitted for testing, and errors triggered by code already in the repo (it is not – and I gripe about it here: #2811297: Automated testing should not always blame the last submitted patch.)
I am preparing a real patch for #2725279: Add support for using the Scald Atom Reference field as image source (which I will upload soon).
Comment #14
gisleRepeating the exercise with just a patch to README.txt.
When running local tests against the last commit (ec1cb9cb9a67ccc87d7e1df3fc661ca371d1089d) , I still get a lot of failures from 4 of the 6 of the test suites:
456 passes, 69 fails, 20 exceptions, and 175 debug messages
This is a clean install on Drupal 7.50 and all projects required by Juicebox is updated to their most recent stable release:
Image (core) 7.50
File (core) 7.50
Field (core) 7.50
Field SQL storage (core) 7.50
Libraries 7.x-2.3
System (core) 7.50
Juicebox-Lite 1.5.0
The module is working as expected (I use the Field Formatter). There are no error messages.
Comment #15
gisleLocal tests fail (4 out of 6 test suites). When I trigger the automated test at Drupal.org (by submitting a bogus patch), it passes.
Setting back to "fixed", as this seems to be a local problem at my site - but any clues you may provide about what the problem is and how to fix it will be most welcome.
I thought that automated tests run in a "clean environment" so that they should not be affected by local configurations ...
Comment #16
rjacobs commentedIt looks like the points from #13-#15 are being addressed in #2811579: Automated test produces false positives if library is Juicebox Lite. Thanks for highlighting that.