My searching for this only displayed a solution which wasn't relevant: Process Builder and Test Classes
We have a process that creates a chatter post on user record insert OR profile edit.
There is an apex test class that inserts a user (testuser) to run tests for totally separate reasons.
We ran into migration errors (changeset didn't validate) because the process wasn't able to effectively run. The error we received from the process was "failed to create record (FeedItem), source record (User) was deleted."
After some investigation, we found that the apex class was creating a user, "testuser" and the process was then running and aiming to create a chatter post, however user was already deleted (due to being an apex test), and the FeedItem couldn't be loaded.
We tried modifying the process to exclude any users named "testuser," which didn't work because the user record was already deleted (in retrospect, duh).
Understood that we can disable the process, migrate, re-enable process, as well as deploying via metadata API. However, we're looking for a fix instead of a bandaid.
Anyone come across this/have any solutions for the specific use case?