Currently, if running multiple migrations, when one migration reports any failure, the entire process stops with that migration and subsequent migrations are not run. That's not necessarily desirable, especially when developing a set of migrations where you'd like it to run the whole thing and gather all the errors from all the migrations rather than have to identify and fix them one at a time. So, I propose a --continue-on-failure option to the migrate-import command, which will run all selected migrations whether or not one in the middle fails.

I've done this in the context of my current project, I need to generate a patch against dev.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeryan created an issue. See original summary.

mikeryan’s picture

Assigned: mikeryan » Unassigned
Status: Active » Needs review
FileSize
6.06 KB

I had trouble getting DrushCommandsTest to run locally, let's see how the testbot does...

heddn’s picture

It seems to be missing a few places. And this will too. But it seems closer.

heddn’s picture

FileSize
8.55 KB
6.41 KB

Missed uploading the patch and interdiff last night. But here's everything; and it passes on local. Let's see what the testbot thinks.

heddn’s picture

FileSize
2.91 KB
10.42 KB

Seems we need to add the continue-on-failure option to migrate:status as well. Which makes sense. This does that and adds some more test coverage.

mikeryan’s picture

Ah, nice improvements - thanks @heddn!

heddn’s picture

Status: Needs review » Reviewed & tested by the community

I'll take that as RTBC.

heddn’s picture

Status: Reviewed & tested by the community » Fixed

  • heddn committed 94bf91a on 8.x-4.x
    Issue #3092369 by heddn, mikeryan: Add continue-on-failure option
    
heddn’s picture

Status: Reviewed & tested by the community » Fixed
agentrickard’s picture

And a patch for Drush 8, which needs review, but I'm not going to change status for it.

Status: Fixed » Closed (fixed)

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

Lendude’s picture

Late to the party, but thanks SOOOO much for this! Made my day :)