-
Notifications
You must be signed in to change notification settings - Fork 46
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
Delta check-deploy and deploy are inconsistent #932
Comments
Hi @smo17 I see you use ALWAYS_ENABLE_DELTA_DEPLOYMENT , forcing the delta between major orgs Meanwhile please can you try removing ALWAYS_ENABLE_DELTA_DEPLOYMENT and use delta only for feature branch to major branches ? Otherwise, you can also configure integration with the git platform you use, and it will allow to use QuickDeploy on the previously run deployment simulation |
Actually, I am looking for CICD solution for delta deployment across all branches, main reason being to reduce deployment times. In the deploying chapter, it says
I will do a few tests later to check if deploy workflow works better to calculate delta files changes if when merging PR, the option to squash commits is enabled. |
Squashing commit is great for the first level (feature branche to integration branche for example), but if you squash between major branches, it can generate git conflicts that will complicate your work ^^ What is the total deployment time on your project ? |
Oh thanks for the heads up about squash commits. |
I've seen projects with 1h30 for deployment + tests, it happens ... but it's the safest way to not break your production :) The main advantage of working with CI/CD is that you will know in advance that your deployment to production will pass :) To summarize:
You can also have a RUN cycle, that will be faster ( see details here -> https://sfdx-hardis.cloudity.com/salesforce-ci-cd-hotfixes/ ) When you know that you'll have to deploy in production on thursday, you can create a draft Pull Request from preprod to main branch on tuesday, and if there are issues (there shouldn't, as your sources must be clean from the first PR merge), you have 2 days to fix them :) |
A few issues found with delta deployment:
Here's the script output example generating the delta package xml from plugin in vscode :
Generated delta xml :
But when deploy workflow was executed, no changes were detected.
its strange because same commit diff was used as in local version.
compare commit diff sha from above and deploy logs from workflow in github:
Now, for inconsistency part is when check_deploy finds delta but deploy does not, this is what can be seen in the workflow logs:
Any idea what can be the cause of the issue?
Thanks
The text was updated successfully, but these errors were encountered: