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.
Must verify:
- verify
BigPipeResponseAttachmentsProcessor
decoratesHtmlResponseAttachmentsProcessor
transparently, even when there are more custom attachment types - the passed in response object is not modified
HtmlResponseAttachmentsProcessor
's exception in case of a response other than aHtmlResponse
still works
Comment | File | Size | Author |
---|---|---|---|
#13 | interdiff.txt | 4.76 KB | Wim Leers |
#12 | 2674126-12.patch | 9.53 KB | Wim Leers |
|
Comments
Comment #2
Wim LeersComment #3
Wim LeersStill 2 passing tests, but we already had 2 before this patch. So something is wrong.
Turns out the test is in the wrong location and has a broken namespace. This is what you get when you run the test using PHPStorm directly.
Comment #4
Wim LeersWell, WTF, that also didn't work. Even though
php vendor/bin/phpunit -c core --testsuite unit --group big_pipe
does work locally. Further investigating.Comment #5
Wim LeersMy bad again. I'm clearly too tired.
Comment #6
Wim LeersAlso: none of this would have happened if
run-tests.sh
had the same behavior as the PHPUnit test runner. This is so very confusing.Comment #8
Wim LeersYay, finally!
So, this test coverage uncovered a bug in BigPipe: the requirement
as defined by the\Drupal\Core\Render\AttachmentsResponseProcessorInterface
was not being respected. Yay for uncovering that.Fix attached.
Comment #9
Wim Leersd.o lost the interdiff for #8.
Comment #10
Wim LeersClean-up.
Comment #11
Wim Leersd.o ate my interdiff again. WTF.
This is the interdiff for #10. Simply removes LoC that are no longer needed.
Comment #12
Wim LeersThis improves the legibility/maintainability of this test.
(This time not unchecking the
checkbox for the interdiff, hoping that the interdiff will not magically disappear this time…)Comment #13
Wim LeersNope, that didn't help either. This is absolutely maddening.
I reported this to @drumm and @Mixologic in the
#drupal-infrastructure
IRC channel.Comment #14
Fabianx CreditAttribution: Fabianx as a volunteer and at Tag1 Consulting commentedRTBC - Looks great to me!
Comment #15
Wim LeersPerfect, thanks for the review!