aa0c4078de511730249c4dba2ceebba69b6c8a23

This commit introduces the CustomLogger class, which provides methods for updating, creating, and managing dut jobs and phases in a structured log in below json format. { "_timestamp": "2023-10-05T06:16:42.603921", "dut_job_type": "rpi3", "farm": "igalia", "dut_jobs": [ { "status": "pass", "submitter_start_time": "2023-10-05T06:16:42.745862", "dut_start_time": "2023-10-05T06:16:42.819964", "dut_submit_time": "2023-10-05T06:16:45.866096", "dut_end_time": "2023-10-05T06:24:13.533394", "dut_name": "igalia-ci01-rpi3-1gb", "dut_state": "finished", "dut_job_phases": [ { "name": "boot", "start_time": "2023-10-05T06:16:45.865863", "end_time": "2023-10-05T06:17:14.801002" }, { "name": "test", "start_time": "2023-10-05T06:17:14.801009", "end_time": "2023-10-05T06:24:13.610296" } ], "submitter_end_time": "2023-10-05T06:24:13.680729" } ], "job_combined_status": "pass", "dut_attempt_counter": 1 } This class uses the existing StructuredLogger module, which provides a robust and flexible logging utility supporting multiple formats. It also includes a command-line tool for updating, creating, and modifying dut jobs and phases through command-line arguments. This can be used in ci job scripts to update information in structured logs. Unit tests also have been added for the new class. Currently, only LAVA jobs create structured log files, and this will be extended for other jobs using this tool. Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25179>
`Mesa <https://mesa3d.org>`_ - The 3D Graphics Library ====================================================== Source ------ This repository lives at https://gitlab.freedesktop.org/mesa/mesa. Other repositories are likely forks, and code found there is not supported. Build & install --------------- You can find more information in our documentation (`docs/install.rst <https://mesa3d.org/install.html>`_), but the recommended way is to use Meson (`docs/meson.rst <https://mesa3d.org/meson.html>`_): .. code-block:: sh $ mkdir build $ cd build $ meson .. $ sudo ninja install Support ------- Many Mesa devs hang on IRC; if you're not sure which channel is appropriate, you should ask your question on `OFTC's #dri-devel <irc://irc.oftc.net/dri-devel>`_, someone will redirect you if necessary. Remember that not everyone is in the same timezone as you, so it might take a while before someone qualified sees your question. To figure out who you're talking to, or which nick to ping for your question, check out `Who's Who on IRC <https://dri.freedesktop.org/wiki/WhosWho/>`_. The next best option is to ask your question in an email to the mailing lists: `mesa-dev\@lists.freedesktop.org <https://lists.freedesktop.org/mailman/listinfo/mesa-dev>`_ Bug reports ----------- If you think something isn't working properly, please file a bug report (`docs/bugs.rst <https://mesa3d.org/bugs.html>`_). Contributing ------------ Contributions are welcome, and step-by-step instructions can be found in our documentation (`docs/submittingpatches.rst <https://mesa3d.org/submittingpatches.html>`_). Note that Mesa uses gitlab for patches submission, review and discussions.
Description
Languages
C
75.3%
C++
18.2%
Python
2.7%
Assembly
1.5%
Rust
1.2%
Other
0.9%