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
Description
During
drush deployupdate 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
drush deploycommand 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