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
post-code-deploy should not run on ACSF #2723
Comments
I was under the impression that ACSF customers should use only factory hooks. What is the BLT requirement for this issue? This seems like it's a question about ACSF best practices and features. |
Factory hooks alone are not sufficient. For instance, if you have a branch deployed and push a new commit to that branch, no factory hooks are executed that I'm aware of. Only the post-code-update cloud hook gets run. It sounds like we need to clearly define, document, and possibly modify the interaction between I would suggest:
|
From Acquia Docs:
@danepowell does the above note change anything in your comment? If not, should we work the docs team to indicate that cloud hooks are something that should be supported, or is that a separate discussion? |
I'm aware that Cloud Hooks are not officially supported on ACSF, but unfortunately they are the only solution to this particular use case of running updates when pushing a new commit to a deployed branch. I'll submit a feature request to ACSF. So my suggestion stands, until that feature is added to ACSF or unless you know of a better alternative. |
Cloud Hooks are disabled in BLT on ACSF post-code-deploy already under the assumption that a tag is deployed in production since this would execute deploy:update in the ACSF update environment during an ACSF code update. Running Cloud Hooks via post-code-update executes on each commit to a branch on ACE / ACSF so using them is more suited for a development or integration environment. ACSF does not currently have equivalent Factory Hooks so using post-code-update for this purpose is not supported, however the overhead of running updates in an alternative way may warrant accepting the risks of using an unsupported strategy for this purpose. Since this is not an Acquia supported feature, we have decided to add a validate task to BLT that will fail builds using unsupported Cloud Hooks on ACSF builds. This test can be optionally disabled and will include help text detailing the implied risk of doing so. Currently it is assumed that ACSF projects are not running |
I'm pretty sure in my test the other day post-code-deploy was not disabled on ACSF (the BLT implementation tried to fire and caused a problem), that's why I opened this issue. |
Makes sense to me! |
Sorry to ping this old issue, but there's very little documentation around best practices for deploying a branch to a lower environment (eg, dev), for testing of the latest code.
Without a post code deploy hook available, what is the recommended best-practice for continuous deployment to a lower environment? We have acquipa pipelines automatically building and committing the artifact, we just can't seem to find a documented way to trigger updates and config imports. |
Updating this in case others encounter it. The solution we came up with for the above, to continuously deploy to the ACSF
|
My system information:
Currently, it seems like best practice for ACSF customers is to set up both Cloud Hooks and ACSF Factory Hooks (
recipes:acsf:init:hooks
andrecipes:cloud-hooks:init
).The problem is that the post-code-deploy hook doesn't really make sense on ACSF, because we already have the db-update factory hook that should take effect whenever someone explicitly deploys new code via the ACSF UI.
It can cause problems because it runs whenever you stage environments, when you probably don't want hooks to be running.
On the other hand, post-code-update still makes sense to keep because I don't think there's any other way to automatically run updates when you push new code without explicitly starting a deploy via the ACSF UI.
The text was updated successfully, but these errors were encountered: