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.
Running the upgrade path tests with an XDEBUG_SESSION cookie causes issue because it overrides the cookie set in UpgradePathTestBase::prepareD8Session()
which means that upgrades can not run because the user is not authenticated.
Comment | File | Size | Author |
---|---|---|---|
#6 | 4-6-interdiff.txt | 434 bytes | alexpott |
#6 | 2067991.xdebug-upgrade.6.patch | 3.25 KB | alexpott |
#4 | 1-4-interdiff.txt | 772 bytes | alexpott |
#4 | 2067991.xdebug-upgrade.4.patch | 3.25 KB | alexpott |
#1 | 2067991.xdebug-upgrade.patch | 2.84 KB | alexpott |
Comments
Comment #1
alexpottThis patch fixes it by introducing a protected property on WebTestBase to store cookies and then munges the cookies together in curlExec. So now you can debug upgrade path tests using xdebug and actually jump into the running upgrade code. Yay!
Comment #2
dawehnerI runned some tests manually and all I can say: it fixes the problem!
Comment #4
alexpottWell that was find to work out! Upgrade tests will multiple test cases where failing because the curlCookie array was not being cleared after every run!
Comment #5
dawehnerI am wondering whether we should document that this potentially is about multiple not just "the" curl request.
Comment #6
alexpottSure - how about this
Comment #7
dawehnerThank you!
Comment #8
catchCommitted/pushed to 8.x, thanks!