Skip to content
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

feat: warn about missing sourceMembers #511

Merged
merged 13 commits into from Nov 28, 2023

Conversation

mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Nov 21, 2023

requires #510
required by salesforcecli/plugin-deploy-retrieve#819

What does this PR do?

  1. move missing sourceMembers from log to warnings
  2. use the core lockfile stuff (similar to how ConfigFile does it) to prevent tracking file conflicts
  3. emit an event to help PDR tell people what's happening with tracking

What issues does this PR fix or reference?

@W-14535759@
it's part of the solution for forcedotcom/cli#2495

ReleaseNotes

After a deployment, the CLI waits for SourceMembers to be created--the time it spends waiting is based on the deploy size. This can make it look like a large deployment is "stuck" after it completes.

There are lots of files that don't create SourceMembers, or created SourceMembers with unexpected names, causing the CLI to continue waiting for something that's never going to come. This change will surface those missing elements in the warnings. If you see one happening consistently, please open a github issues so we can stop unnecessarily waiting for it.

QA:

  1. There's not a great way to cause these to happen. You could look in expectedSourceMembers and modify some of those, then change one of those types in the project and do a deploy.

  2. There's also not a great way to get file conflicts (orgs do deploy/retrieve sequentially). I would have told you it couldn't happen except for the bug PDT had with multiple event handlers getting left listening and trying to edit the file simultaneously. It's more of a safeguard against that kind of unplanned bug.

@cristiand391 cristiand391 merged commit 950d15c into main Nov 28, 2023
30 checks passed
@cristiand391 cristiand391 deleted the sm/sourceMember-polling-warnings branch November 28, 2023 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants