backdrop / backdrop-issues

Issue tracker for Backdrop core.
144 stars 39 forks source link

Automatic testing of D7 to Backdrop upgrades as part of releases #4801

Open klonos opened 3 years ago

klonos commented 3 years ago

This idea came to me while trying to test #4799 and while discussing this on Zulip: https://backdrop.zulipchat.com/#narrow/stream/218635-Backdrop/topic/D7.20to.20Backdrop.20test.20run

Idea!!!: ...this could actually be a pre-release test we run, to make sure that we have not broken basic/vanilla D7 to Backdrop upgrades.

So the idea is to automate the following steps:

  1. install a fresh D7 + admin_menu site
  2. add a very basic set of users/content/menus/taxonomy/files ...perhaps use devel_generate for this, to have it be randomized(?)
  3. take a backup of the D7 database
  4. install a fresh Backdrop site
  5. copy files over from the D7 site to the Backdrop site
  6. import the D7 database to the Backdrop site installation
  7. run /update.php

Verify that we end up with a working Backdrop site, with the D7 content intact.

klonos commented 3 years ago

Here's what I currently have, using lando:

klonos commented 3 years ago

PS: I'm intentionally testing minimal to standard profile at the moment, trying to replicate the issues reported in https://forum.backdropcms.org/forum/post-drupal-7-migration-issue-notice-undefined-index-name

ghost commented 3 years ago

@klonos I did the above, but instead of a 'page not found' error, I got 'access denied'. That was fixed by setting $settings['update_free_access'] = TRUE;

docwilmot commented 3 years ago

I'm not sure if this is the same, but Backdrop already has D7 to Backdrop upgrade tests in core.

indigoxela commented 3 years ago

I had no trouble with the update run. I tested with the standard profile, which might be the reason why I couldn't reproduce the warnings mentioned in #4799.

$settings['update_free_access'] = TRUE; is always necessary, BTW. The previous session isn't valid with the Drupal (database), of course. I never had a 404 problem.