This is an automated email from the ASF dual-hosted git repository.
hongze pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new 08316c959b [CORE] Following #8192, amend a quick fix for build info
message (#8205)
08316c959b is described below
commit 08316c959bf714a040bfd296652e166a222e01a7
Author: Hongze Zhang <[email protected]>
AuthorDate: Wed Dec 11 12:45:55 2024 +0800
[CORE] Following #8192, amend a quick fix for build info message (#8205)
---
.../scala/org/apache/gluten/GlutenPlugin.scala | 28 +++++++++++-----------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/gluten-core/src/main/scala/org/apache/gluten/GlutenPlugin.scala
b/gluten-core/src/main/scala/org/apache/gluten/GlutenPlugin.scala
index 2262c4cc17..8eee6629c6 100644
--- a/gluten-core/src/main/scala/org/apache/gluten/GlutenPlugin.scala
+++ b/gluten-core/src/main/scala/org/apache/gluten/GlutenPlugin.scala
@@ -91,7 +91,18 @@ private[gluten] class GlutenDriverPlugin extends
DriverPlugin with Logging {
// export gluten version to property to spark
System.setProperty("gluten.version", VERSION)
- val glutenBuildInfo = new mutable.HashMap[String, String]()
+ val glutenBuildInfo = new mutable.LinkedHashMap[String, String]()
+
+ val components = Component.sorted()
+ glutenBuildInfo.put("Components",
components.map(_.buildInfo().name).mkString(","))
+ components.foreach {
+ comp =>
+ val buildInfo = comp.buildInfo()
+ glutenBuildInfo.put(s"Component ${buildInfo.name} Branch",
buildInfo.branch)
+ glutenBuildInfo.put(s"Component ${buildInfo.name} Revision",
buildInfo.revision)
+ glutenBuildInfo.put(s"Component ${buildInfo.name} Revision Time",
buildInfo.revisionTime)
+ }
+
glutenBuildInfo.put("Gluten Version", VERSION)
glutenBuildInfo.put("GCC Version", GCC_VERSION)
glutenBuildInfo.put("Java Version", JAVA_COMPILE_VERSION)
@@ -104,18 +115,7 @@ private[gluten] class GlutenDriverPlugin extends
DriverPlugin with Logging {
glutenBuildInfo.put("Gluten Build Time", BUILD_DATE)
glutenBuildInfo.put("Gluten Repo URL", REPO_URL)
- Component.sorted().foreach {
- comp =>
- val buildInfo = comp.buildInfo()
- glutenBuildInfo.put("Component", buildInfo.name)
- glutenBuildInfo.put("Component Branch", buildInfo.branch)
- glutenBuildInfo.put("Component Revision", buildInfo.revision)
- glutenBuildInfo.put("Component Revision Time", buildInfo.revisionTime)
- }
-
- val infoMap = glutenBuildInfo.toMap
- val loggingInfo = infoMap.toSeq
- .sortBy(_._1)
+ val loggingInfo = glutenBuildInfo
.map { case (name, value) => s"$name: $value" }
.mkString(
"Gluten build
info:\n==============================================================\n",
@@ -123,7 +123,7 @@ private[gluten] class GlutenDriverPlugin extends
DriverPlugin with Logging {
"\n=============================================================="
)
logInfo(loggingInfo)
- val event = GlutenBuildInfoEvent(infoMap)
+ val event = GlutenBuildInfoEvent(glutenBuildInfo.toMap)
GlutenEventUtils.post(sc, event)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]