Mesa (main): ci/lava: Disable stdout/stderr buffering
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 11 12:47:33 UTC 2021
Module: Mesa
Branch: main
Commit: bbf5f412ab416408f21bb030108b2df08fae0361
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bbf5f412ab416408f21bb030108b2df08fae0361
Author: Daniel Stone <daniels at collabora.com>
Date: Thu Jun 10 23:59:56 2021 +0100
ci/lava: Disable stdout/stderr buffering
Frequency of writes is unlikely to be a performance bottleneck, and
given the number of steps in between execution and the user, less
buffering is gooder.
Signed-off-by: Daniel Stone <daniels at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11309>
---
.gitlab-ci/lava/lava_job_submitter.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.gitlab-ci/lava/lava_job_submitter.py b/.gitlab-ci/lava/lava_job_submitter.py
index 81c0b8f1f92..00b41146e72 100755
--- a/.gitlab-ci/lava/lava_job_submitter.py
+++ b/.gitlab-ci/lava/lava_job_submitter.py
@@ -192,6 +192,11 @@ def main(args):
if __name__ == '__main__':
+ # given that we proxy from DUT -> LAVA dispatcher -> LAVA primary -> us ->
+ # GitLab runner -> GitLab primary -> user, safe to say we don't need any
+ # more buffering
+ sys.stdout.reconfigure(line_buffering=True)
+ sys.stderr.reconfigure(line_buffering=True)
parser = argparse.ArgumentParser("LAVA job submitter")
parser.add_argument("--template")
More information about the mesa-commit
mailing list