Skip to contentSkip to conversation

drm/ci: Default to UART for logging

PATCH In review Rob Clark 3 participants 4 messages Oct 6, 2023 – Oct 13, 2023

Subsystems (3)
lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 drm/ci: Default to UART for logging

From: Rob Clark <[email protected]>

ssh logging is the default for mesa, as it is generally more reliable. But if there are kernel issues, especially at boot, UART logging is infinitely more useful.

---
 drivers/gpu/drm/ci/gitlab-ci.yml | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/ci/gitlab-ci.yml +6 -0
index 2c4df53f5dfe..7c55f02f7313 100644
@@ -27,6 +27,12 @@ variables:
 
   LAVA_JOB_PRIORITY: 30
 
+  # Default to UART logging.  Mesa uses ssh by default, as that is more
+  # reliable if you have a stable kernel.  But kernel CI is more likely
+  # to encounter unstable kernels (and has lower volume of CI jobs so is
+  # less likely to be troubled by occasional UART flakes)
+  LAVA_FORCE_UART: 1
+
 default:
   before_script:
     - export SCRIPTS_DIR=$(mktemp -d)
Signature · 1 line
2.41.0
#1 lore raw

cc +guilherme

Quoted 28 lines · Rob Clark

From: Rob Clark <[email protected]>

ssh logging is the default for mesa, as it is generally more reliable. But if there are kernel issues, especially at boot, UART logging is infinitely more useful.

---
  drivers/gpu/drm/ci/gitlab-ci.yml | 6 ++++++
  1 file changed, 6 insertions(+)
drivers/gpu/drm/ci/gitlab-ci.yml +6 -0
index 2c4df53f5dfe..7c55f02f7313 100644
@@ -27,6 +27,12 @@ variables:
 
    LAVA_JOB_PRIORITY: 30
 
+  # Default to UART logging.  Mesa uses ssh by default, as that is more
+  # reliable if you have a stable kernel.  But kernel CI is more likely
+  # to encounter unstable kernels (and has lower volume of CI jobs so is
+  # less likely to be troubled by occasional UART flakes)
+  LAVA_FORCE_UART: 1
+
  default:
    before_script:
      - export SCRIPTS_DIR=$(mktemp -d)
#2 lore raw
In reply to Rob Clark
Quoted 3 lines · Rob Clark

ssh logging is the default for mesa, as it is generally more reliable. But if there are kernel issues, especially at boot, UART logging is infinitely more useful.

Hmm, we should still be capturing the UART boot logs regardless. Those go into a collapsed 'LAVA boot' section but they don't just disappear ... ?

author
#3 lore raw
Quoted 9 lines · Daniel Stone
Quoted 3 lines · Rob Clark

ssh logging is the default for mesa, as it is generally more reliable. But if there are kernel issues, especially at boot, UART logging is infinitely more useful.

Hmm, we should still be capturing the UART boot logs regardless. Those go into a collapsed 'LAVA boot' section but they don't just disappear ... ?

Hmm, I wasn't seeing anything in the raw log, which doesn't collapse sections..

That said, I still think uart is preferable to ssh for kernel CI.. we aren't running jobs at the scale of mesa CI jobs so even if we get UART flakes 1/1000 (or even 1/100) times, that is an acceptable trade-off for the fact that uart can still work when things are too fubar for ssh.

BR,
-R