Update fixture for next major test

Created on 31 August 2024, 4 months ago
Updated 14 September 2024, 3 months ago

Problem/Motivation

Next major test fails because the database fixture needs to be updated ti 10.3, since 11.0 removes update hooks prior to 10.3.

The old fixture will still be needed for older versions of Drupal.

Steps to reproduce

Look at current next major pipeline.

Proposed resolution

Import a test DB with the fixture in 10.3.

Run updates.

Export new fixture file.

Add version check to test to ensure correct fixture loads.

Remaining tasks

Do it!

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇪Ireland lostcarpark

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

Merge Requests

Comments & Activities

  • Issue created by @lostcarpark
  • Status changed to Needs review 4 months ago
  • 🇮🇪Ireland lostcarpark

    Ran command to load fixture:

    php ./core/scripts/db-tools.php import ./modules/contrib/scheduled_publish/tests/fixtures/update/drupal-10.1.2-scheduled_publish-3.10.php.gz

    Reverted to version of Scheduled Publish prior to adding update to view (couldn't go all the way back to 3.9 as it didn't support D10).

    Ran drush updb to run core updates.

    Ran script to extract new fixture:

    php ./core/scripts/db-tools.php dump-database-d8-mysql > ./modules/contrib/scheduled_publish/tests/fixtures/update/drupal-10.3.2-scheduled_publish-3.10.php

    Added check to test to use appropriate version of fixture for Drupal version.

    Verified next-major test now passes.

  • Status changed to RTBC 4 months ago
  • 🇮🇪Ireland lostcarpark

    Ideally I'd have preferred someone else to review, but I'm satisfied tests are passing, and I really want to get a D11 release.

  • Status changed to Fixed 4 months ago
  • 🇮🇪Ireland lostcarpark

    Confirmed next major test now passing.

  • 🇮🇪Ireland lostcarpark

    Forgot to assign credit.

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

Production build 0.71.5 2024