Tests fail on the CI server Jenkins, but works locally.
Configuration change doesn't seem to be taken in consideration.
It seems the old code is still executed.
I've switched to another Git branch, but I've the feeling the code executed is from the old branch.
Cache must be invalidated, generally opcache, sometimes application one.
You need to discard cached element.
Generally, OPCode and APCu are the usual suspects.
Sometimes, you need to look to memcached or redis, but they rarely contain the PHP code compile results.
Phabricator uses Opcache and APCu.
- Purge cache on /config/cache (for example for this instance https://devcentral.nasqueron.org/config/cache/).
- Restart php-fpm (sv restart php-fpm)
Generally, restart the web server (e.g. nginx) gives good results.
Laravel uses different caching strategies.
The bootstrap/ folder, and in a lesser extend, the storage/cache folder, could contains compiled code.
So, files to delete could be:
- bootstrap/cache/config.php if you edited the config (e.g. at D260, tests fail after D253 and D255 merge)
- bootstrap/cache/services.php if you edited the service container
Don't forget any modification to composer.json is useless if composer update is not called.