The config sync process shouldn't change the configuration at all if the validation fails for any reason, at any point.
I attempted an import that included installing (enabling) a new custom module. It failed because of a new module dependency. However, the status of that new custom module was changed to "installed". And since the import didn't complete, it was difficult to tell which items were and were not done.
Comments
Comment #3
alexpottThis one is interesting. What does
actually mean? We check that all the modules in core.extension exist prior to install. I'm guessing that maybe the new module has a dependency that is not in core.extentsion?
But also this suggests that either code change has occurred or the core has been edited externally. In which case #2628144: Ensure that ConfigImport is taking place against the same code base and #2762235: Ensure that ConfigImport is taking place without outstanding updates are relevant.
Comment #4
extexan commented@alexpott, Unfortunately, I can't recall exactly what caused the sync to fail, as it is now more than 2.5 years since the issue was created. But I think it was something that changed in Drupal that "created" a new dependency of some sort.
The sequence of events would have been something like this:
I realize it would be pretty much impossible to track down the original cause of the above issue, but really the point of this post was to ensure that nothing is changed in the config before checking that there are no roadblocks that would keep it from completing.
With that said, though, I think the config sync already has that sort of checking process in place, but the issue described above missed getting added to the initial audit process, but was already present in the code that actually enables modules. So, looking at it in that light, I would say it was just an issue back then, but probably no longer exists at this late date.
Feel free to close this issue as outdated.
Comment #5
cilefen commented