This is an automated email from the ASF dual-hosted git repository.

ottlinger pushed a commit to branch fix/RAT-555
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git

commit d6fab390ef7509392db9073d940e9e0a9efc4648
Author: P. Ottlinger <[email protected]>
AuthorDate: Tue May 19 14:39:55 2026 +0200

    RAT-555: Configure TempDir deletion strategy to ignore I/O failures
---
 .../src/test/java/org/apache/rat/anttasks/ReportOptionTest.java       | 4 +++-
 src/changes/changes.xml                                               | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/apache-rat-tasks/src/test/java/org/apache/rat/anttasks/ReportOptionTest.java 
b/apache-rat-tasks/src/test/java/org/apache/rat/anttasks/ReportOptionTest.java
index 9f66bc74..7addbc58 100644
--- 
a/apache-rat-tasks/src/test/java/org/apache/rat/anttasks/ReportOptionTest.java
+++ 
b/apache-rat-tasks/src/test/java/org/apache/rat/anttasks/ReportOptionTest.java
@@ -37,6 +37,7 @@ import org.apache.rat.utils.Log;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.io.CleanupMode;
 import org.junit.jupiter.api.io.TempDir;
+import org.junit.jupiter.api.io.TempDirDeletionStrategy;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.ArgumentsProvider;
 import org.junit.jupiter.params.provider.ArgumentsSource;
@@ -55,7 +56,8 @@ import static org.junit.jupiter.api.Assertions.fail;
  */
 public class ReportOptionTest  {
     // RAT-475: Do no cleanup in order to prevent random build failures on 
ASF-Linux/GitHub nodes
-    @TempDir(cleanup = CleanupMode.NEVER)
+    // RAT-555: Try out new deletionStrategie without failing the tests.
+    @TempDir(cleanup = CleanupMode.NEVER, deletionStrategy = 
TempDirDeletionStrategy.IgnoreFailures.class)
     static Path testPath;
 
     static ReportConfiguration reportConfiguration;
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index c3cfe025..8c93c409 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -68,6 +68,9 @@ in order to be properly linked in site reports.
     </release>
     -->
     <release version="1.0.0-SNAPSHOT" date="xxxx-yy-zz" description="Current 
SNAPSHOT - release to be done">
+      <action issue="RAT-555" type="fix" dev="pottlinger">
+        Explicitly configure TempDir's deletion strategy to ignore failures in 
order fix random test failures on GitHubAction runs (ReportOptionTest).
+      </action>
       <action issue="RAT-502" type="fix" dev="pottlinger">
         Add XSLT (application/xslt+xml) to the files that are scanned for 
licenses, was treated/ignored as binary before.
       </action>

Reply via email to