Closed vsbharath closed 1 month ago
Thanks @vsbharath! This will be a nice tool for pre-deployment checks. However, testing against EDA revealed some issues.
When running
cci task run check_components --plan_name install --org dev
, the task fails to detect deploy paths, even though they exist in thecustomer_org
flow (e.g.,unpackaged/pre
andunpackaged/post
). It incorrectly reports "No deploy paths found," indicating a problem with detecting paths in nested flows.The main issue seems to be with the conditional block—it's hard to follow and doesn't correctly decompose plans and tasks. I recommend reviewing the _freeze_steps method from the metadeploy task. Lantz has already started extracting this functionality in his PR.
For example, both
deploy_pre
anddeploy_post
handle groups of paths and should be decomposed into individual deploy calls. If you're using theList[dict]
returned by_freeze_steps
, make sure to detect thetask_class
class path to handle this properly.Another suggestion is to merge all package.xml files into one. For projects like NPSP with many deploy calls, this would be much faster. I'm not sure if we've discussed this before as a v2.
I will take a look at it. It still not resolving the steps from the source. Will address these and get back
Thanks @jstvz for taking the time to review. I have addressed all the comments. Please review and let me know if any changes are required.
Thanks @jstvz for taking the time to review. I have addressed all the comments. Please review and let me know if any changes are required.
Apologies for more changes. Added few more tests to utils and pushed the changes for review
@jstvz Addressed all the suggestions. Need your approval one more time.
Summuray
CheckComponents task is designed to check for existing metadata components in a Salesforce org before deployment, helping to prevent deployment failures due to conflicts with existing components.
Whats Included
Sample Plan and Flow Integration: