TestStrategy: Truncate the tmp dir name to 32 character to avoid exceeding path length limit on Windows and macOS
Fixes
RELNOTES: None
@@ -312,7 +312,8 @@ public abstract class TestStrategy implements TestActionContext {
digest.addPath(action.getExecutionSettings().getExecutable().getExecPath());
digest.addInt(action.getShardNum());
digest.addInt(action.getRunNumber());
- return digest.hexDigestAndReset();
+ // Truncate the string to 32 character to avoid exceeding path length limit on Windows and macOS
+ return digest.hexDigestAndReset().substring(0, 32);
}
/** Parse a test result XML file into a {@link TestCase}. */
