• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1from os import getenv
2
3# How many attempts should be made when a timeout happen during LAVA device boot.
4NUMBER_OF_ATTEMPTS_LAVA_BOOT = int(getenv("LAVA_NUMBER_OF_ATTEMPTS_LAVA_BOOT", 3))
5
6
7# Supports any integers in [0, 100].
8# The scheduler considers the job priority when ordering the queue
9# to consider which job should run next.
10JOB_PRIORITY = int(getenv("JOB_PRIORITY", 75))
11
12# Use UART over the default SSH mechanism to follow logs.
13# Caution: this can lead to device silence in some devices in Mesa CI.
14FORCE_UART = bool(getenv("LAVA_FORCE_UART", False))
15
16# How many times the r8152 error may happen to consider it a known issue.
17KNOWN_ISSUE_R8152_MAX_CONSECUTIVE_COUNTER: int = 10
18KNOWN_ISSUE_R8152_PATTERNS: tuple[str, ...] = (
19    r"r8152 \S+ eth0: Tx status -71",
20    r"nfs: server \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} not responding, still trying",
21)
22
23# This is considered noise, since LAVA produces this log after receiving a package of feedback
24# messages.
25LOG_DEBUG_FEEDBACK_NOISE = "Listened to connection for namespace 'dut' done"
26
27A6XX_GPU_RECOVERY_WATCH_PERIOD_MIN = 3
28A6XX_GPU_RECOVERY_FAILURE_MAX_COUNT = 30
29A6XX_GPU_RECOVERY_FAILURE_MESSAGE = (
30    "cx gdsc didn't collapse",
31    "Timeout waiting for GMU OOB",
32)
33