A couple weeks ago, in the nightly test runs some tests started failing randomly (I guess it is related to the Summer'17 release.) I was not able to reproduce this, in console or Setup test runs they won't fail. This it the test-runner we are using.
Sometimes no tests fail, sometimes it's 30 or something in between. What they have in common is they have the same Error Message:
Dependent class is invalid and needs recompilation: Class AnyClass: Variable does not exist: fields
The classes are different, but they are all doing something like this:
The classes are either from the same package or another package, doesn't matter.
Anyone else experienced this? Any hint? any configuration? Is "fields" kind of deprecated?
Today also the tests in the developer console failed due to this error. After rerunning, they completed. BTW 2 of three packaging Orgs are affected by this.