I have test class that fails in production while executing it from the developer console, but when deploying other things it pass. Note, that it is not related to the user, same run/delpoyment is with the same user.
The test run code that create permission set, therefore it getting error of MIXED_DML_OPERATION. All the data that being created before the permission set are data for the test and it's before Test.StartTest(). I thougth using the StartTest() create new context, but appearntly not it's only resetting the limits.
Anywy, it working if I moved all the creation of data to @testsetup function.
But still trying to understand: why it is not failing during deployment?