nchammas commented on code in PR #60305:
URL: https://github.com/apache/spark/pull/60305#discussion_r4555097995


##########
.github/workflows/update_build_status.js:
##########
@@ -193,14 +193,28 @@ module.exports = async ({github, context, core, env = 
process.env, log = console
     }
   }
 
-  // The fork run ID a Build check points at, stored as JSON in its output 
text, or
-  // undefined if the text is not that JSON (e.g. a check from an older 
version or a
-  // manual run).
-  const runIdOf = (cr) => {
-    try {
-      return JSON.parse(cr.text).run_id
-    } catch {
-      return undefined
+  // The fork run ID a Build check points at, stored in its external ID, or 
undefined if
+  // the check is not linked to a run (e.g. action_required guidance, or a 
check from an
+  // older version of this script).
+  const runIdOf = (cr) => cr.externalId || undefined

Review Comment:
   Reconsidered. See latest changes + PR description.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to