-
Notifications
You must be signed in to change notification settings - Fork 396
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
db-update.sh factory hook doesn't output an error code when drupal:update has failed #3325
Comments
@joachim-n can you share the version of BLT you are using please? |
I'm using 9.1.8. I'm not yet able to update to 9.2.x, as the README says that works with Drupal 8.6 and my project is still on 8.5. |
@joachim-n - try updating to BLT 9.1.9, as @grasmash backported fixes from BLT 9.2.x that other users have confirmed to address this issue for ACSF projects still on 8.5 |
10.0.x:
9.1.8:
The final line of the script doesn't appear to have changed substantially in terms of what the script might return as an exit code, so to my eye it doesn't look like this has been fixed. |
@lcatlett you and i discussed upping log levels on ACSF itself to help with issues like this. do you think that could be a solution here? unclear to me if this is truly BLT's issue to solve. |
On version 9.x, the message "BLT will NOT import configuration" is stopping db update from being executed: https://github.com/acquia/blt/blob/9.x/src/Robo/Commands/Setup/ConfigCommand.php#L47-L63 but the comment says it's not fatal. This was introduced 2 years ago #1696 This has changed only on the 10.0.x branch: https://github.com/acquia/blt/blob/10.0.x/src/Robo/Commands/Setup/ConfigCommand.php#L21-L38 and the change looks like it would run updates in your case. So "/mnt/www/html/endeavorsf101dev/docroot/../config/default/core.extension.yml was not found." needs to be fixed to get by this in 9.x if an upgrade to 10.0.x is not possible. |
@mikemadison13 should we backport 83a9fce in 9.x as well? I see you have a PR backporting it to 9.2.x. |
@alexxed yes, there are a couple of things that need to be back ported into 9.x and this is one. thank you! |
Ok then, the backport would fix it too. |
This was not necessarily a specific bug to fix but more about the user experience and better integration with other Acquia products. Because there was also a specific internal Acquia PF ticket advocating for this in addition to this one in BLT, I put in #3412 which will resolve the larger issue and the suggestions for how to more logically set individual status codes of BLT tasks are not necessarily required. I'll put in a PR to 9.x and 10.x if others agree. |
The db-update.sh factory hook is currently failing on my ACSF instance.
The log output is:
This message clearly shows there is a problem. However, the log level in the ACSF instance is 'INFO'. That's obviously wrong -- something has failed.
I filed a ticket with Acquia support (https://insight.acquia.com/support/tickets/760236), and the response was that this was correct behaviour for the ACSF platform:
So therefore the problem is that db-update.sh should be exiting with an error code when its command fails.
The text was updated successfully, but these errors were encountered: