Jean Helou
12/12/2025, 4:15 PM-DrerunGoals did not fix the remote cache (but it did rerun all the cacheable tasks) reverting the flag from the projects Jenkinsfile triggered the same error again. I'm wondering if this is expected. Maybe because of the way I passed the -DrerunGoals through environment variables it was somehow included in the cache key and it didn't overwrite the corrupted remote cache entries
The documentation about DrerunGoals is pretty light and could probably benefit from a bit more precision on what to expect and possible pitfalls when used on CI envs ...Gabriel Feo
12/16/2025, 9:44 AM-DrerunGoals was applied but did not re-store in your remote cache? Other build scans of the points you mentioned would also be helpful (e.g. after you reverted the flag). That’ll let me understand the issue better. I'd be happy to propose a documentation change internally.Jean Helou
12/16/2025, 10:01 AMJean Helou
12/16/2025, 10:02 AM-DrerunGoals flag was added to https://github.com/apache/james-project/blob/master/Jenkinsfile#L38Clay Johnson
12/17/2025, 10:15 PM-DrerunGoals will not modify the cache keys
• Local cache entries take precedence for cache hits over remote entries
• Cache keys are independent of the local and remote caches, so the functional test you ran should not care which cache it is using
• Cache entries are mutable—if you store a cache entry with a certain key, but the cache entry is different, the newer entry will be stored
Given that, I wonder if it is possible that you:
1. Ran a build on jenkins host 1 which wrote a corrupt cache entry to both the local and remote caches
2. Ran a build on jenkins host 2 with -DrerunGoals that wrote the the "correct" cache entry to both the local and remote caches
3. Ran a build on jenkins host 1 which got a cache hit on the corrupt cache entry that was located in its local cacheJean Helou
12/18/2025, 7:55 AMJean Helou
12/18/2025, 7:57 AM-DrerunGoals should have overwritten the remote cache entries with correct values (this is what I expected at least.
I'll revisit this and capture better details if cache corruption reoccurs.