-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Description
The config validation check that we run post config:import can in some cases report a configuration mismatch due Drupal not always matching what is in yaml (and vice a versa).
The example I am experiencing right now is that the migration configuration files in JFK have comments in them, as well as some pretty advanced yaml merging functionality that Drupal tends to resolve and throw away on import.
So, in tugboat, I get these errors:
robo --ansi 'validate:drupal-config'
.... (long list of mismatched config entries)
[error] in task Usher\Robo\Plugin\Commands\ValidateConfigCommandsDrupal database configuration does not match the tracked file system configuration.
Script robo --ansi handling the robo event returned with error code 1
The deployment does seem to complete successfully (Tugboat appears to think it was successful) so it is not breaking anything, but it's not great to see red error text at the bottom of the build log.
Can we either: 1) Drop this from error level to warning level (yellow) since it is not actually failing the build? OR 2) Provide a way to report the diff informationally?
I can't think of a way to do the config check/validation in a way that won't flag these differences, so maybe we just provide a lower level of reporting by default, or possibly also a way to set a lower level via a flag, something like so:
online:
# Validate that the code and database configuration match.
- 'composer robo validate:drupal-config --set-pr-status --mismatch-info|mismatch-warn|mismatch-panic|mismatch-error'