Fix and re-enable MigrateBlockContentTranslationTest

Created on 24 September 2023, over 1 year ago

Problem/Motivation

πŸ› [random test failure] Random failure in MigrateBlockContentTranslationTest Needs work

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
Block contentΒ  β†’

Last updated 3 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @catch
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10
  • First commit to issue fork.
  • Merge request !11704Repeat test 100 times β†’ (Open) created by mstrelan
  • Pipeline finished with Failed
    about 2 months ago
    Total: 142s
    #462893
  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    This failed for me on local the second time I ran it. I set up a job to repeat it 100 times and it failed 5/100 times, see https://git.drupalcode.org/issue/drupal-3389365/-/jobs/4840855

  • πŸ‡¦πŸ‡ΊAustralia acbramley

    This is actually in block module, the test class is just misnamed.

  • πŸ‡¦πŸ‡ΊAustralia acbramley

    This fails 100% of the time for me locally.

    Debugging into it I see the row in the migrate_map table, but the config table only has a single entry for that block (i.e the default language)

    MySQL [local]> select * from test72763259migrate_map_d7_block_translation;
    +------------------------------------------------------------------+-----------+-----------+-------------------+---------+-------------------+-----------------+---------------+------+
    | source_ids_hash                                                  | sourceid1 | sourceid2 | destid1           | destid2 | source_row_status | rollback_action | last_imported | hash |
    +------------------------------------------------------------------+-----------+-----------+-------------------+---------+-------------------+-----------------+---------------+------+
    | 1eb693d2354c0b014b1ed9fe9acc754b00362495e1b8b25aa25c53304192f477 | login     | fr        | bartik_user_login | fr      |                 0 |               0 |    1745988771 |      |
    +------------------------------------------------------------------+-----------+-----------+-------------------+---------+-------------------+-----------------+---------------+------+
    1 row in set (0.000 sec)
    

    There are also some error messages for the parent migration

    MySQL [local]> select * from test62552709migrate_message_d7_block;
    +-------+------------------------------------------------------------------+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | msgid | source_ids_hash                                                  | level | message                                                                                                                                                                                                                                                                                                                                                                                                  |
    +-------+------------------------------------------------------------------+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    |     1 | 70bb1a3d2a830bbad0d4625652cbab5bbb9e8cb8c20e32aee04d68791a8a7678 |     1 | Schema errors for block.block.seven_system_main with the following errors: 0 [dependencies.theme.0] This value should not be blank., 1 [dependencies.theme.0] Theme '' is not installed., 2 [theme] This value should not be blank., 3 [theme] Theme '' is not installed., 4 [region] This value should not be blank., 5 [region] This block does not say which theme it appears in. |
    |     2 | c0e5f09290df5ef8dc83c8f534dbcbd1085182faf6af9706e5e84e541f4d5c84 |     1 | Schema errors for block.block.seven_user_login with the following errors: 0 [dependencies.theme.0] This value should not be blank., 1 [dependencies.theme.0] Theme '' is not installed., 2 [theme] This value should not be blank., 3 [theme] Theme '' is not installed., 4 [region] This value should not be blank., 5 [region] This block does not say which theme it appears in.  |
    +-------+------------------------------------------------------------------+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    2 rows in set (0.000 sec)
    
Production build 0.71.5 2024