Must verify:

  1. verify BigPipeResponseAttachmentsProcessor decorates HtmlResponseAttachmentsProcessor transparently, even when there are more custom attachment types
  2. the passed in response object is not modified
  3. HtmlResponseAttachmentsProcessor's exception in case of a response other than a HtmlResponse still works
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers created an issue. See original summary.

Wim Leers’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
7.68 KB
Wim Leers’s picture

FileSize
7.81 KB

Still 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.

Wim Leers’s picture

Well, WTF, that also didn't work. Even though php vendor/bin/phpunit -c core --testsuite unit --group big_pipe does work locally. Further investigating.

Wim Leers’s picture

FileSize
861 bytes
7.82 KB

My bad again. I'm clearly too tired.

Wim Leers’s picture

Also: none of this would have happened if run-tests.sh had the same behavior as the PHPUnit test runner. This is so very confusing.

Status: Needs review » Needs work

The last submitted patch, 5: 2674126-5.patch, failed testing.

Wim Leers’s picture

Status: Needs work » Needs review
FileSize
9.4 KB

Yay, finally!

So, this test coverage uncovered a bug in BigPipe: the requirement the passed in response object is not modified as defined by the \Drupal\Core\Render\AttachmentsResponseProcessorInterface was not being respected. Yay for uncovering that.

Fix attached.

Wim Leers’s picture

FileSize
1.63 KB

d.o lost the interdiff for #8.

Wim Leers’s picture

FileSize
9.22 KB

Clean-up.

Wim Leers’s picture

FileSize
1.35 KB

d.o ate my interdiff again. WTF.

This is the interdiff for #10. Simply removes LoC that are no longer needed.

Wim Leers’s picture

FileSize
9.53 KB

This improves the legibility/maintainability of this test.

(This time not unchecking the Display checkbox for the interdiff, hoping that the interdiff will not magically disappear this time…)

Wim Leers’s picture

FileSize
4.76 KB

Nope, that didn't help either. This is absolutely maddening.

I reported this to @drumm and @Mixologic in the #drupal-infrastructure IRC channel.

Fabianx’s picture

Status: Needs review » Reviewed & tested by the community

RTBC - Looks great to me!

Wim Leers’s picture

Status: Reviewed & tested by the community » Fixed

Perfect, thanks for the review!

  • Wim Leers committed 2c0461a on 8.x-1.x
    Issue #2674126 by Wim Leers, Fabianx:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.