Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Apr 2012 at 11:57 UTC
Updated:
29 Jul 2014 at 20:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirRe-rolled. This patch currently includes the changes from #1495024: Convert the entity system to PSR-0.
I am now able to run the Tracker test (the only one that is currently converted to PSR-0) with this patch. Let's see if the test bot is too.
Comment #3
berdirComment #4
robloach1280 deletions, 663 insertions... I love this patch. Berdir gets 2:1 high fives. This is proof that adopting PHP standards is a good thing for Drupal.
Comment #5
berdirActually, that's just because the entity psr-0 patch was part of the conversion. The real delete ratio is more like this:
Re-rolled.
Comment #7
catchI mentioned this to merlinofchaos and he pointed out that it will mean a lot of conversions to do in views (or any other contrib module with a lot of classes) to port it to 8.x once the registry is removed.
That's got to happen at some point, but I think it makes sense to schedule the actual commit of this patch so we can warn anyone else who might attempt a port. Not sure exactly when but was thinking either August 1st or September 1st (I doubt core classes will be fully converted for another 2-3 weeks and I'm going to be mostly afk the second half of June, so really that'd either be an extra 4 weeks or 8 weeks beyond when this could otherwise get committed.
Comment #8
berdirSonds fine to me, this isn't blocking something else, as long as we can port our own classes to PSR-0 asap, then we can throw this out whenever we feel like it. E.g. after the plugin system stuff lands, which Views will need to port to anyway.
Comment #9
berdirHere's a re-roll, let's see how far we are.
Comment #10
andyposttrailing white-spaces
Comment #11
robloachLots of the remaining tests are in #1593058: Remove system.info's files[] entry. Adding the tag.
Comment #12
Niklas Fiekas commentedClosing #1598610: Convert symfony.test to PSR-0 and remove all the files[] instances in system.info. Remember to also remove the PSR-0 class loading tests in symfony.test, that wouldn't even be executed, if PSR-0 wasn't working.
Comment #13
robloach#9: remove-registry-1541674-9.patch queued for re-testing.
How're we looking? I know there are still patches to be committed, just wanted to see what the test-bot had to say.
Comment #15
Tor Arne Thune commentedRerolled #9 out of curiosity.
Comment #17
Tor Arne Thune commentedAh, the "list can not be used in namespace" problem. I guess this depends only on #1592632: Merge List field types into Options module now.
Comment #18
berdirGiven that we really want to remove the registry asap, I'm changing this to major and setting to postponed on #1592632: Merge List field types into Options module and until the views PSR-0 efforts are done.
Comment #19
robloachFor reference, http://drupal.org/project/issues/search/views?issue_tags=PSR-0 .
Comment #20
sunSee also: #1667822: Remove caching of test classes in TestDiscovery
Comment #21
Tor Arne Thune commentedThe patch didn't apply anymore so I re-rolled #15 which is a re-roll of #9.
Comment #23
tim.plunkettThis was postponed both on the List->Options issue, and on Views PSR-0. The first is done, the second is not (it was until recently blocked on plugins).
Re-postponing for now.
Comment #24
sunViews should not block this removal. Last I checked and talked to @dawehner, it was using PSR-0 tests already.
The main problem for Views and all other contributed modules was the PIFR issue #1674290: PSR-0 tests in contrib modules are not found, which has been fixed already and just needs to be deployed.
Comment #25
Tor Arne Thune commentedThe reason I rerolled it was to see what failed, so that it can be worked on, even in the postponed state (or not). Should have made that clear.
Comment #26
catchI don't think we should postpone it on Views, but I do think we should schedule this commit to give people fair warning if there are contrib projects chasing HEAD since it's not a hard patch to get in and doesn't hold anything up. What about 31st August?
Comment #27
berdirFine with me, could also do it during DrupalCon a few days earlier, then we'll have a reason to party ;)
Will try to get it back to green asap. I think should actually be needs work, the last patch failed.
Comment #28
robloachI went through some of the most used projects on Drupal.org, and it looks like only Admin Menu is affected by this. I've put up #1691418: Update tests to PSR-0 to track that. Love this to go in sooner rather than later though, as I'm sure we have some follow ups to address.
[EDIT] sun reported:
So, it looks like the only blockers are:
Comment #29
tim.plunkettWhy are we only talking about test classes?
Views is 99% done converting its test classes, but hasn't begun on the 250+ non-test classes.
Also,
Comment #30
robloachCan we move the registry back over to http://drupal.org/project/registry for Drupal 8? That way, if a contrib module needs it, then it can simply depend on it until it fully moves to PSR-0. If Drupal Core doesn't need the registry, then why should it be in Drupal Core?
Comment #31
berdirIf someone wants to do that, then he can :)
The registry is IMHO not blocking anything, we don't need to get it out asap. We just want to get it out before API freeze/feature freeze/whatever point of no return it will be. damiankloip confirmed that he expects to have converted Views to PSR-0 by 31. August.
I will make sure that the patch is ready by then. Leaving it at needs work, will set it to postponed once the tests are green again.
Ok? :)
Comment #32
tim.plunkettSounds good to me.
Comment #33
robloachSounds good!
Comment #34
berdirOk, this should pass I think.
Had to remove the registering and unregistering of the autload functions in the upgrade tests. Also added an update function to remove the registry tables.
Comment #35
Tor Arne Thune commentedComment #36
berdirGreen. We can re-test it shortly before the defined date....
Comment #37
catch#1716048: Do not boot bundle classes on every request, can't release with this in.
Comment #38
tim.plunkettIf the Annotations patch goes in, Views is done. Then we don't have to wait until August 31st.
EDIT:
By "Views is done", I mean "Views no longer needs the registry". :)
Comment #39
sun#1683644: Use Annotations for plugin discovery is in.
Comment #40
sun#34: remove-registry-1541674-34.patch queued for re-testing.
Comment #42
sunRe-rolled against HEAD.
Aside from conflicts and shifted hunks, no change except of renumbered system update. interdiff contains everything (but the shifted + conflicting hunks are misleading).
Comment #43
sunThat interdiff really isn't helpful, so here's a direct patch-to-patch diff.
Comment #44
robloachThis patch is great. The doc comments make complete sense for what is happening in SimpleTest, and the caches being cleared is needed. RTBC.
Comment #45
aspilicious commentedI would like to postpone this on #1724452: Test Annotations sandbox. Views is almost done converting his classes to plugins but we need the views testbot at this stage. When that conversion is passing tests we can merge in and we don't have to rely anymore on the registry.
Ok? Thanks :)
Comment #46
merlinofchaos commentedIt's also worth noting that CTools' Export UI is not yet converted to the new plugin system and PSR-0 and it relies on the registry. While it shouldn't be a difficult conversion it'll still take a little time and might be tough to get done before Munich at this point.
Comment #47
catchI said 31st August back in July, and I'm still happy to leave it until then?
Comment #48
plachWrong comment wrapping. Rerolled the patch, no commit credit, please :)
Comment #49
tim.plunkettUntil August 31st.
Comment #50
webchickCan we announce this at g.d.o/core? This is going to impact a large number of folks IMO.
Comment #51
catchDone: http://groups.drupal.org/node/248853
Comment #52
berdir#48: rr-1541674-48.patch queued for re-testing.
Comment #54
berdirRe-rolled, will set back to postponed once it comes back green.
Comment #56
berdirForgot a }.
Comment #57
berdirGreen, back to sleep with you.
Comment #58
dixon_1 day until scheduled commit. So, simple re-roll to catch up with HEAD and to have the test bot look at it one last time.
Comment #59
tstoecklerRe-roll looks good, bot is green. Awesome! Let's do this.
Comment #60
tim.plunkettConfirmed that CTools and Views are no longer using the registry.
Comment #61
tim.plunkettRerolled for #1468328: Move file entity info, managed file, and file usage functionality into File module
Comment #63
tim.plunkett#61: registry-1541674-61.patch queued for re-testing.
Comment #64
tim.plunkettThe fail in #62 was because I submitted it too early :)
Re-RTBCing.
Comment #65
webchickI would commit this, but I'm pretty sure catch really wants to, so leaving this for him for a few hours. :)
Comment #66
catchYes, yes I did quite want to. Committed/pushed to 8.x, thanks all!
I think http://drupal.org/node/1320394 covers this for the change notice so moving straight to fixed.
Comment #67
berdirAdded a back-reference to http://drupal.org/node/1320394 and mentioned in the last sentence there that the registry has now actually been removed.
Comment #68
pounardBig win! :)
Comment #69
albert volkman commentedWoohoo! Great work everyone.
Comment #71
robloachClean up: #1810686: Remove the remaining files[] entries
Comment #72.0
(not verified) commentedUpdated issue summary.