Skip to content

Improve Configuration Validation [ spike ]  #151

Description

@adamzimmermann

Description

During drush deploy update hooks are ran and then configuration is imported.

This is great for deploying to production, but it makes it very hard to assert that the configuration in code matches the most up to date state of the database.

A module update done via one of our automated tools may have an update hook that changes configuration. The subsequent configuration import will likely blow those changes away, and then our configuration checking tool in Usher will not find an issue.

Questions / Areas of Uncertainty

  • How can we check the state of configuration after database updates, but before configuration import?
  • Do we need to override the drush deploy command or create or own version that extends it for CI usage?

Outcome

We can confidently validate that the configuration in code has the latest values, even if an automated dependency update includes changes to configuration via an update hook.

Additional Context

We will need a fully functioning/bootstrapped version of Drupal in a CI environment to validate this.

Existing Config Validation Code:

This might be worth exploring:

@goranmiric and I had a good discussion about this recently somewhere, but I can't remember where. 🤔

Drupal Issues

Related Blog Posts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions