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
Head tests are failing.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#25 | interdiff.txt | 2.16 KB | quietone |
#25 | 2906650-25.patch | 7.46 KB | quietone |
#24 | interdiff.txt | 1.14 KB | quietone |
#24 | 2906650-24.patch | 5.12 KB | quietone |
#22 | interdiff.txt | 7.26 KB | quietone |
Comments
Comment #2
heddnComment #3
heddnI've tried reproducing the error on local with commerce commit: 75ce6a3841846b7637e9582bd6e02b6492504794 and I'm not able to do that (yet).
Comment #5
heddnI found some interesting other bugs: #2906684: ck2 dump is malformed and #2906683: default store is not migrated. And I'm able to confirm that the data does seem to be migrated correctly. But I'm still not sure what is the deal with the tests and I'm not able to reproduce the issue locally.
Comment #6
heddnAlso found #2906663: ProductDisplay and Order store resolver is fragile while at all this too.
Comment #7
heddnAnd here's a completed order, displaying 'Hat 2' instead of the SKU. I wonder if the version of commerce being downloaded isn't the dev branch. Going to check on composer and .info.yml dependencies next.
Comment #8
heddnComment #10
heddnComment #11
heddnComment #13
heddnComment #17
heddnCommited composer and .info.yml changes so testbot would pick them up. Changes to those files aren't picked up by the bot and I think that might be part of our problem. Fingers crossed.
Comment #21
heddnConferred with @mglaman and we're going to just disable the failing testing until we have more time to figure this out.
Comment #22
quietone CreditAttribution: quietone at Acro Commerce commentedThe line_item_label in commerce_line_item is the SKU. Therefor, modified the source plugin to get the title from the commerce_product table.
Comment #24
quietone CreditAttribution: quietone at Acro Commerce commentedAnd update the other order test to use the correct title/label and not the SKU.
Comment #25
quietone CreditAttribution: quietone at Acro Commerce commentedReviewing the issues, I see that this is the same as #2900785: Order item migration and purchasable entity labels. Which I didn't realize before I wrote this patch, so I did the same code twice. Lucky me. The other patch has a source plugin test, which is being added now.
Comment #26
heddnLooks good now. Tests are passing and the explanation for why the failures makes sense.
Comment #28
heddn