You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by da...@apache.org on 2024/09/04 22:56:28 UTC

(kafka) branch gh-KAFKA-17479-relocate-xml-files created (now 0b308b2f48b)

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

davidarthur pushed a change to branch gh-KAFKA-17479-relocate-xml-files
in repository https://gitbox.apache.org/repos/asf/kafka.git


      at 0b308b2f48b relocate junit XML files

This branch includes the following new commits:

     new 0b308b2f48b relocate junit XML files

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.



(kafka) 01/01: relocate junit XML files

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davidarthur pushed a commit to branch gh-KAFKA-17479-relocate-xml-files
in repository https://gitbox.apache.org/repos/asf/kafka.git

commit 0b308b2f48bd8a2999bd3cf5407c9e81c203c736
Author: David Arthur <mu...@gmail.com>
AuthorDate: Wed Sep 4 18:55:58 2024 -0400

    relocate junit XML files
---
 .github/scripts/junit.py | 2 +-
 build.gradle             | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/.github/scripts/junit.py b/.github/scripts/junit.py
index 96617dd5fd0..1850c0c2e8a 100644
--- a/.github/scripts/junit.py
+++ b/.github/scripts/junit.py
@@ -142,7 +142,7 @@ if __name__ == "__main__":
     parser = argparse.ArgumentParser(description="Parse JUnit XML results.")
     parser.add_argument("--path",
                         required=False,
-                        default="**/test-results/**/*.xml",
+                        default="build/junit-xml/**/*.xml",
                         help="Path to XML files. Glob patterns are supported.")
 
     if not os.getenv("GITHUB_WORKSPACE"):
diff --git a/build.gradle b/build.gradle
index b498f77f92c..8305711ef05 100644
--- a/build.gradle
+++ b/build.gradle
@@ -569,6 +569,14 @@ subprojects {
       delete t.reports.junitXml.outputLocation
       delete t.reports.html.outputLocation
     }
+
+    doLast {
+      def dest = rootProject.layout.buildDirectory.dir("junit-xml/${project.name}").get().asFile
+      println "Copy JUnit XML for ${project.name} to $dest"
+      ant.copy(todir: "$dest") {
+        ant.fileset(dir: "${test.reports.junitXml.entryPoint}")
+      }
+    }
   }
 
   jar {