-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config must validate, or the build/deploy should fail #39
Comments
the same error was picked up at the CI Build stage, and still passed. It'd be safest to fail (if failing was desirable) in CI. I can see both sides - it could be beneficial to ignore some cim errors, but what is the expectation on the user's config mgmt knowledge here? |
Any config validation errors that rise from So the best-case scenario, deploying such code will have zero effect - a few hours later you'll get a service desk question asking why the config change didn't deploy. At worst, the site goes down. The question is probably "what error can we show that would be useful". If you can get the drush error in front of the user that's probably the most useful.
That's pretty informative. |
Yes I think build is the right place to fail. But it should fail on the deploy too because of race-conditions with content changes happening on prod between the build and deploy steps. |
the process is
A "failure" at any step halts the process. Stopping at 1) would be the safest, and the easiest to view errors (the actual drush error would be visible in GitLab CI). We may even be able to provide a config export on failure as a build artefact to download to help diagnose? |
aha. agreed. Number 1. for visibility and step most likely to fail Number 4. for "just in time" race conditions to be super safe.... Edit - the editor turned 4. into 2. |
As a developer I don't want to deploy my code if configuration fails to validate.
This is because content (which I can't control in my deployment) can cause config sync to fail. In the case below I can't delete the content type because there exists "Speech" content.
The main reason this is a problem is when config is being deleted. Say in my deployment I'm creating a field or content type, and I have code in my theme that is expecting the field or content type to be there. My code fails and potentially causes a white screen for the whole site.
The text was updated successfully, but these errors were encountered: