Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We'd like to find out the greatest number of test fails/exceptions that can be caused by a single patch.
Rules:
- You can only delete code, no code can be added.
- You cannot touch t() or any code it delegates to.
- Your patch must pass installation and complete testing.
Proposed resolution
The only winning move is not to pass!
Remaining tasks
Leaders:
Most exceptions:
152,655 by @larowlan in #20
Most failures:
82,363 by @jibran in #62
Most green patches (not a good thing):
1 by @jibran in #32, @lauriii in #43
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#73 | render-nothing.patch | 12.28 KB | mpdonadio |
#68 | drupal_2418019_68.patch | 2.77 KB | Xano |
#62 | more-fail-v2.1.patch | 198.91 KB | jibran |
#53 | please-fail.patch | 640 bytes | jibran |
#47 | render-nothing.patch | 11.54 KB | mpdonadio |
Comments
Comment #1
tim.plunkettComment #3
dawehnerComment #4
dawehner.
Comment #5
tim.plunkettComment #7
jibranLet's try this one.
Comment #9
jibranComment #10
dawehner@jibran
Please stick to the rules.
Comment #11
Dave ReidComment #12
jibranOk
Comment #13
Dave ReidUh, rude.
Comment #14
jibranI'd argue that this is not the part of Drupal :D
Comment #15
Dave ReidDoesn't say it's limited to Drupal code only in the rules. Only deletions.
Comment #17
tim.plunkettClarifying that it must complete testing.
No rules against changing vendor code, we should be using composer anyway, but that's for another issue.
Comment #18
dawehner@davereid
Really good try/
Here is another approach.
Comment #19
larowlanHow about #2074297-14: Optimize the code in doGenerate() in the UrlGenerator to take advantage of Drupal path restrictions. although more than deletions there
Comment #20
larowlanComment #22
Dave ReidI'm going the non-exception route, I think that's an easy way.
Despite Git showing this as having a one-line addition, you can clearly see it was only done with deleting.
Comment #23
Dave ReidComment #24
Dave ReidComment #27
jibranComment #29
larowlan152,655 exceptions - we have a new leader :)
Comment #30
Dave ReidComment #31
Dave ReidComment #32
jibranComment #34
Dave ReidOk I think I still lead the "line deletions only" group.
Comment #35
jibranAnd I have a green patch :D
Comment #36
dawehnerLet's try another one
Comment #38
mpdonadioComment #39
tim.plunkettComment #40
dawehnerStealing an idea.
Comment #41
Dave ReidComment #43
lauriiiSo what about this :P
Comment #44
EclipseGc CreditAttribution: EclipseGc commentedComment #45
lauriiiComment #46
davidhernandezLOL! The one time Lauri wantsfails they pass!
Comment #47
mpdonadioComment #49
mpdonadioLet's see how PHPUnit does with 1 byte of memory when TestBot runs it.
Comment #53
jibranComment #54
jibranComment #56
jibranComment #58
jibranCuz I can.
Comment #60
jibranHmmm
Comment #62
jibrangit--
Comment #64
jibranComment #65
jibranMost failures:
82,363 by @jibran in #62
Comment #66
alexpottPatch in #62 fails the rules...
Comment #67
alexpottHmmm thinking about it I'm wrong that diff can be achieved with only the delete key :)
Comment #68
XanoComment #70
XanoAwwww :P
Comment #71
EclipseGc CreditAttribution: EclipseGc at Acquia commentedLOL, wow yeah Ok jibran won the game. It follows the letter of the law but not its spirit. So we acknowledge the win, and now we outlaw it. No screwing with test statuses, also likely a good rule that you can't mess with tests at all. You have to affect the functional code that represents Drupal's actual operation, not the code that tests that operation.
:-D
Eclipse
Comment #72
EclipseGc CreditAttribution: EclipseGc at Acquia commentedComment #73
mpdonadioOK, I resubmit #47 under the new rules.
Comment #74
mpdonadioComment #75
Dave ReidI call BS on changing the rules.
Comment #76
tim.plunkett@EclipseGc cannot change the rules. The rules stand as they were when @dawehner and I came up with them.
Comment #78
EclipseGc CreditAttribution: EclipseGc at Acquia commentedYou have to change the rules, Jibran already "won". He achieved failure on EVERYTHING, so the game is broken without the change. if you don't change the rules, there's no point.
Comment #79
dawehnerWell, its also about the elegance of the solution if you ask me :)
Meh, if I just would remember the test failure I had recently with > 200k in one test.
Comment #91
quietone CreditAttribution: quietone at PreviousNext commentedThis looks like a fun little challenge.
It has been 8 years with no activity, I guess that has served it's purpose.