You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by po...@apache.org on 2026/05/19 12:40:06 UTC

(creadur-rat) branch fix/RAT-555 created (now d6fab390)

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

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


      at d6fab390 RAT-555: Configure TempDir deletion strategy to ignore I/O failures

This branch includes the following new commits:

     new d6fab390 RAT-555: Configure TempDir deletion strategy to ignore I/O failures

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(creadur-rat) 01/01: RAT-555: Configure TempDir deletion strategy to ignore I/O failures

Posted by po...@apache.org.
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 <po...@apache.org>
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>