mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-26 14:38:13 +02:00
Let's make lava_job_submitter.py cleaner with only parsing and retry
mechanism capabilities.
Moved out from the submitter script:
1. proxy functions
- moved to lava.utils.lava_proxy.py
2. LAVAJob class definition
- moved to lava.utils.lava_job.py
- added structural logging capabilities into LAVAJob
- Implemented properties for job_id, is_finished, and status, with
corresponding setter methods that update the log dictionary.
- Added new methods show, get_lava_time, and refresh_log for improved
log handling and data retrieval.
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22500>
18 lines
499 B
Python
18 lines
499 B
Python
from .console_format import CONSOLE_LOG
|
|
from .gitlab_section import GitlabSection
|
|
from .lava_job import LAVAJob
|
|
from .lava_job_definition import generate_lava_yaml_payload
|
|
from .lava_proxy import call_proxy, setup_lava_proxy
|
|
from .log_follower import (
|
|
LogFollower,
|
|
fatal_err,
|
|
fix_lava_gitlab_section_log,
|
|
hide_sensitive_data,
|
|
print_log,
|
|
)
|
|
from .log_section import (
|
|
DEFAULT_GITLAB_SECTION_TIMEOUTS,
|
|
FALLBACK_GITLAB_SECTION_TIMEOUT,
|
|
LogSection,
|
|
LogSectionType,
|
|
)
|