pitrou commented on code in PR #44060:
URL: https://github.com/apache/arrow/pull/44060#discussion_r1753577564
##########
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:
Shouldn't you use `log` from `archery.integration.util`? Otherwise this
might not be ordered properly when running multiple threads.
--
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]