Problem/Motivation

Everytime new test entity is committed to core. The DB dump becomes outdated. 8.x-2.x starts failing. See #2775539: DerUpdateTest is failing after 2755525 and #2839698: Fix fails in 2.x branch

Proposed resolution

Use core DB dump and update the DB by using the additional PHP script as databaseDumpFiles to enable DER, to add DER fields and to add content.

Remaining tasks

See \Drupal\field\Tests\Update\FieldUpdateTest for eaxmple

User interface changes

None

API changes

None

Data model changes

None.

CommentFileSizeAuthor
#2 use_core_db_dump_in-2844973-2.patch429.05 KBjibran

Comments

jibran created an issue. See original summary.

jibran’s picture

Title: Use core DB dump in Upgrade path tests » Update DB dump in Upgrade path tests
Status: Active » Needs review
StatusFileSize
new429.05 KB

Unfortunately, there is no way around that. We can add new configurable fields to the config but we can't install DB tables and for the basefields we have to add new entity which will add der field and create entity tables. After all that we have to create new sample entities which can only be created in setUp method which is also a big no. In the light of all that I think we are better of creating new DB dump. :(

Status: Needs review » Needs work

The last submitted patch, 2: use_core_db_dump_in-2844973-2.patch, failed testing.

  • jibran committed 670f33c on 8.x-2.x
    Issue #2844973 by jibran: Update DB dump in Upgrade path tests
    

  • jibran committed 4b44eed on 8.x-2.x
    Issue #2844973 by jibran: Update DB dump in Upgrade path tests
    
jibran’s picture

Status: Needs work » Fixed

Everything is green now.

Status: Fixed » Closed (fixed)

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