-
Notifications
You must be signed in to change notification settings - Fork 78
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
Warnings of Resources Not Found in Local Project During Deployment Report #2862
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
@Alfystar Take a look at the 2.38.7 release notes. Those warnings were added to solve an issue with |
Thank you, I understand now, but I think this output is not correct, all the deployed resources were present on the project on which the report was run, more over, the deleted resources are correctly missing in project |
I don't think it's the correct result because the report is called on the same machine that performed the deployment, just 1 cmd before Furthermore, the logs generated with version 2.38.7, which as you rightly pointed out solved the problem, did not show these warnings, in the same configuration and on the same machine Same situation for logs generated with 2.39.6 The first time they appeared was today with version 2.40.7 The code automatically updates to the latest stable version of sf-cli |
@Alfystar Are you able to provide a repository that replicates the issue you're seeing? The steps you provided don't replicate the issue using dreamhouse-lwc |
I try to recreate the problem and then share the repository with you. However, I realized that I didn't specify that our workflow is to generate a package in metadata format, from the source of the repository using sf-cli and then deploy that package, it's an important detail I think. We inherited this flow from the structure we had with ANT, and too much was developed on that basis to abandon it completely, moreover reading the documentation I seemed to understand that internally sf-cli still creates a package in metadata format |
I recreated a scratch org as described in your readme in the repository: I used the tools we developed to exactly recreate the problem with a deploy/delete validator of the apex classes. I used our company tools to create the packages, but as you can easily see, the program logs clearly show which sf-cli commands are executed. The part with the unexpected warnings is at the end of the log. I hope that this evidence is sufficient and allows you to understand and solve this little problem introduced in this release.
|
Ah I didn't realize that you were running |
This issue has been linked to a new work item: W-15735078 |
Don't worry, I didn't actually say it for granted, my mistake |
This issue is fixed in the 2.42.6 (May 22, 2024) release. |
Sorry @jshackell-sfdc
Same plan, same logic |
@Alfystar, could you try with sf v2.44.8 (current latest-rc)? I've installed sf v2.42.6 and see it's using:
when the fix for this landed in v11.4.4: The fix didn't get into nightly in time to be included in the sf v.2.42.6 as planned, sorry about that. We'll update the release notes for this. |
Received, no particular problem, it was just to show evidence. We await the next stable release 😄 |
Oops, sorry about that -- RNs fixed, will publish when today's RC goes out. Thanks for letting us know! |
This issue is addressed in version 2.44.8 (Jun 5, 2024). (hopefully this time for realsies!) |
Yes, I'm happy to confirm it 😄 |
I'm wondering because I have not encountered this error for a while but I am now encountering it again @jshackell-sfdc, could we have had a regression in the latest cli version again? I am seeing this warning come up again in my pipelines that prepare scratch orgs with metadata from our repo. The Global Value Sets are throwing the same warnings as they did before the fix. |
Issue Description
After updating to version 2.40.7 of the Salesforce CLI, we started receiving warnings in our pipeline log. These warnings indicate that there are custom fields and Apex classes present in the Salesforce org but not found in the local project, despite the deployment operation completing successfully.
Steps to Reproduce
sf project deploy report --target-org <orgName> --job-id <jobID> --json
.Expected Result
There should be no warnings about resources not found in the local project if they have been correctly handled in the package.xml and in the repository.
Actual Result
We receive warnings for resources not found in the local project, even though the deployment operations have been executed successfully and the resources are present in the package.xml and in the repository.
System Information
The text was updated successfully, but these errors were encountered: