kou commented on code in PR #44060:
URL: https://github.com/apache/arrow/pull/44060#discussion_r1753548816


##########
dev/archery/archery/utils/logger.py:
##########
@@ -27,3 +29,21 @@ def __init__(self, quiet=False):
 
 
 ctx = LoggingContext()
+
+in_github_actions = (os.environ.get("GITHUB_ACTIONS") == "true")
+
+
+@contextmanager
+def group(name):
+    """
+    Group outputs in the given with block.
+
+    This does nothing in non GitHub Actions environment for now.
+    """
+    if in_github_actions:
+        print(f"::group::{name}")

Review Comment:
   Hmm. This isn't outputted immediately...
   Do we need to `flush` or something...?



-- 
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]

Reply via email to