Would the maintainers of this project be open to using this installation profile for testing issues that arise in the media/file_entity issue queues?
We could point people to use http://simplytest.me to spin up a new instance of the media_dev install profile with all the latest dev versions of the modules.
That would allow them to test on a simplified site with only the basic media modules.
I think creating a drush make file with only these modules would suffice:
ctools-1.x-dev
wysiwyg-2.x-dev - needed to test integrations
media-2.x-dev
file_entity-2.x-dev
views-2.x-dev
views_bulk_operations-3.x-dev
panels-2.x-dev -needed to test integrations
plupload -1.x-dev
multiform-1.0
features-2.x-dev -needed to export a test configuration module to illustrate an example??
Using the dev version of the modules would make this easy to maintain and test the latest releases.
Comments
Comment #1
brunodboWow, I just had a look at http://simplytest.me and I was seriously impressed :)
Yeah, using this profile with it would make a lot of sense. I just gave tried it out on http://simplytest.me: everything was downloaded correctly, and I was able to install a new instance without problems. I noticed that the WYSIWYG wasn't set up the way it should, so that's something we would need to look at.
Just to make sure about what you're asking for:
- Directing people over to http://simplytest.me, as a way to make it easier to set up the profile and start testing
- Updating (simplifying?) the module's list (I haven't done so in quite a while, so that would be a good idea in any case)
- Anything else?
Comment #2
gmclelland commentedOoops...disregard parts of my initial comment, a lot of those modules already exist in the make file. I just tested this on simplytest.me and it works fine. It looks like we might just need some additional modules.
This is for 2.x branch of this module
change to ctools-1.x-dev
change to views-3.x-dev
optional modules:
add admin_menu-3.x-dev (help people navigate faster)
add admin_views-1.x-dev (file_entity has integrations with this)
add features-2.x-dev -needed to export a test configuration module to illustrate an example??
add views_bulk_operations-3.x-dev -needed to test integrations
change to media_flickr-2.x-dev
change to media_youtube-2.x-dev
change to media_vimeo-2.x-dev
change to feeds-2.x-dev
change to devel-1.x-dev
change to coder-2.x-dev
libraries:
change to plupload 1.5.5
What do you think?
Comment #3
gmclelland commentedAlso the make of simplytest.me suggested some changes to the make file that media_dev uses for it to work properly.
See #1930390: Media_dev installation installs the wrong modules
Would you like a patch with these changes?
Comment #4
brunodboYep, a patch would be great! I would just like to make sure that the profile still works on its own (ie. without simplytest.me), but I think that should be ok.
If you roll a patch, I'll test it as soon as I can.
I assume we'll only do this for the 2.x branch?
Comment #5
brunodboComment #6
gmclelland commentedHere is the patch for the 2.x branch. Haven't tested it yet.
Comment #7
gmclelland commentedThat didn't seem to work. Plupload library download was incorrect. Let me try this one. Sorry for the comment spam.
Comment #8
gmclelland commentedThat didn't seem to work either. It wasn't downloading the dev versions of modules. It also wasn't downloading plupload library for some reason. Going to try this one.
Comment #9
gmclelland commentedStill not downloading devs. I'm going try a different syntax. Sorry these patches have to come from Drupal.org to work on simplytest.me
Comment #10
brunodboThanks for the patch! After I applied it and tried to build the profile, I got two errors:
- Transliteration doesn't have a 7.x-2.x branch (only a 3.x branch)
- Media browser only exists for D6 and looks abandoned (https://drupal.org/project/media_browser). This should be removed. There is media_browser_plus, but I'm not sure if we want to include that (I've never used it before).
Comment #11
gmclelland commentedWhat about the styles module? Do we need that? It is my understanding that it is not recommended anymore.
I believe the plupload issue not downloading is related to #1403882: Add Plupload to packaging whitelist. Seems like 1.5.4 is the only release at the moment that can be downloaded from github in an installation profile that is hosted on drupal.org such as this one until the whitelist is updated. After the whitelist is updated we can add 1.5.6.
I'm not sure why, but simplytest.me still isn't downloading the dev versions yet.
Here is the latest patch with the changes you requested.
Comment #12
gmclelland commentedDrupal.org doesn't allow https in the libraries download url. Here is the new patch. Note: you can easily test these patches using Dreditor at http://drupal.org/project/dreditor. It includes a simplytest.me button for all patches posted in the drupal.org issue queues.
I'm still not sure why it's not downloading the dev releases?
Comment #13
gmclelland commentedTesting the format like:
projects[media] = 2.x-dev
to see if simplytest.me will download the dev versions.
Comment #14
patrickd commentedhi!
From the simplytest.me logs:
::: Mon Mar 4 21:15:18 CET 2013 : Could not select any makefile.Your makefile is called media_dev.make - what would be perfectly fine for contributed modules
But the best practice for distributions is to call them build-media_dev.make
See simplytest.me Q&A - How are distributions build?
And Drush make files for an installation profile: http://drupal.org/node/1476014
I'd recommend to follow this best practice and rename your makefile
sorry for the confusion, should have recognized this earlier
Best regards
Comment #15
gmclelland commentedI think this should work. The patch uses git to rename the file.
Comment #16
patrickd commentedyou renamed it from media_dev.make
to build-media-dev.make
remember: build-[shortname].make
so it must be: build-media_dev.make
Comment #17
gmclelland commentedHmm.. plupload library still didn't download. Sorry, I had looked at commerce_kickstart and their's was build-commerce-kickstart. Here is a new patch.
Comment #18
patrickd commentedCurrent make fails to build:
Comment #19
patrickd commentedFor example spark does the following to specify the core project
Comment #20
gmclelland commented@patrickd - oh, I didn't realize media_dev wasn't using drupal.org recommendations for make files.
#1476014: Managing Drush make files for an installation profile
I think I'm going have to switch around a few files and change their name.
drupal-org.make - contains everything
drupal-org-core.make - just specify the dev version of core drupal
build-media_dev.make - just specify the dev version of core drupal and media_dev as a dependency
Now I just need to figure out how to specify that Drupal should use the core-dev version. Most distros specify a specific version, but I want to keep this a low maintenance distro that works with dev releases.
Thanks @patrickd for reporting back the loggings
Comment #21
patrickd commentedI think using GIT for the core to checkout 7.x should work for that, though cloning drupal takes a shit load of time
Happy to help :)
Comment #22
gmclelland commentedHere's another shot with all the drupal.org recommendations. Hope this works.
Comment #23
gmclelland commentedWell that's no good. I get the following installation profile error when trying to install:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://s0a585ebeef88c74.s3.simplytest.me/install.php?profile=media_dev&locale=en&id=1&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function media_type_get_types() in /home/s0a585ebeef88c74/www/profiles/media_dev/media_dev.install on line 98I will have to look at the media_dev.install and see if I can find the problem.
@patrickd - can you tell if simplytest.me downloaded all the modules?
Comment #24
patrickd commentedAfter the error, reload the page, installation continues, you can have a look at the modules list
Seems good to me, at least media is now 2.x
Comment #25
gmclelland commentedYessss. It is sort of working. For some reason a few modules are using the stable version instead of the dev.
Ex.
Ctools
Views
Coder
Devel
All other modules including Drupal is using the dev releases.
@patrickd any thoughts on why this is?
Comment #26
patrickd commentedNot really, did you try running the make file locally to see if your having the same issues there?
Comment #27
gmclelland commentedI couldn't get it to work in my development box because it is using an old version of drush that can't be upgraded.
I think Drush is somehow picking up the old modules in the media_dev.make before this file gets removed with by the patch in #23.
@brunodbo - Maybe you should go ahead and commit this to the media_dev-2.x-dev branch?? It's 90% working. Plupload is downloaded now. We can file a followup issue about the ajax error in the .install filie.
I think media_type_get_types() was replaced by file_type_get_all_types() in the file_entity module.
I really think that once this is committed and the old make file is removed, simplytest.me will start using the dev releases for those 4 listed modules.
Comment #28
gmclelland commentedDon't know if it will work, but here is a separate patch to remove the ajax install error as mentioned in #23.
Comment #29
gmclelland commentedOops, tiny change. Trying again.
Comment #30
brunodboThanks for all the work guys!
I committed a slightly altered version of both patches (changed another call to media_get_all_types() to file_type_get_all_types()). Hopefully this will make testing easier. Combined patch attached.
Please test the profile again, on its own (using the make file to build it) and with simplytest.me.
Comment #31
brunodboAaaand ... here's the patch.
Comment #32
brunodboI guess building it with the make file won't be useful until a dev version of the profile gets rolled (not sure how simplytest.me handles that though).
Comment #33
gmclelland commentedGood catch @brunodbo. Depending on how long it takes to roll a dev release, this might be working in time to discuss/try in the Drupal Media Office Hours http://groups.drupal.org/node/286213.
Comment #34
patrickd commentedsimplytest.me works with git tags and branches, it wont care about the current dev release generated by the drupal.org packager
Comment #35
gmclelland commentedIn that case, the patch in #31 failed on simplytest.me because it was trying to remove files that have already been removed in http://drupalcode.org/project/media_dev.git/commit/bfcec2e301d9174eff8e1...
Here is a simplified patch.
Comment #36
gmclelland commentedIgnore that last post. I'm not the brightest bear to come out of the woods. :)
I was thinking you need the latest git commit and the patch in #31 by @brunodbo.
The git commit looks good, it should work.
@patrickd - When I test the latest git commit for media_dev-2.x-dev on simplytest.me, it still comes up with an ajax error that references the old code. Strange -- maybe it needs more time?
Comment #37
patrickd commentedI don't think so, it should be the newest version immediately. It's probably rather an issue with the makefile, not sure what's wrong though. Logfile seems fine
Comment #38
brunodboThe packaging system returned the following error:
So we need to get MediaElement added to the packaging whitelist. Following up in #1404378: Add MediaElement.
Comment #39
gmclelland commentedHere is a simple patch to add back in the mediaelement module. It looks like media_dev now works on simpletest.me.
Comment #40
brunodboCommitted, thanks! Leaving this issue open until the profile download builds successfully.
Comment #41
brunodboJust tested the media_dev profile (2.x branch) on simplytest.me; confirming that it works fine now.
Comment #42
brunodboUgh, the build script still chokes on MediaElement, probably due to the download url used in the make file (see https://drupal.org/packaging-whitelist?page=1 for the whitelisted library urls). Changed the url to https://github.com/johndyer/mediaelement/archive/master.zip and committed that, hopefully that'll fix it.
Comment #43
brunodboThat seemed to have worked, download build now works.
Comment #44
gmclelland commentedGreat job! @brunodbo++