mesa/bin
Guilherme Gallo eb1945c3d9 bin/ci: Add StructuredLogger to improve log handling
This commit introduces the StructuredLogger module, which provides a
robust and flexible logging utility supporting multiple data formats
(CSV, JSON, and YAML). By incorporating this module into our CI system,
we enhance our log management capabilities, making it easier to:

1. Monitor and analyze logs: The StructuredLogger is a dict-like data
   abstraction which autosaves into a structured data file, whenever it
   is updated. With this file, one can easily know specifics of the job
   execution without having to grep it in the traces logs or exploring
   the job artifacts. The autosave feature makes it useful even when the
   CI job fails unexpectedly, since the partial dict is always written
   back to the disk.
2. Maintain data integrity: The module includes context managers for
   file locking and editing log data, ensuring data integrity and
   preventing race conditions.
3. Support multiple formats: With built-in support for CSV, JSON, and
   YAML formats, this module caters to a wide range of use cases and
   user preferences.
4. Increase maintainability: The modular design of the StructuredLogger
   and its corresponding strategies simplifies maintenance and allows
   for seamless integration of additional formats in the future.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22500>
2023-04-19 14:36:37 +00:00
..
ci bin/ci: Add StructuredLogger to improve log handling 2023-04-19 14:36:37 +00:00
pick bin: Fix typos 2023-03-30 21:37:00 +00:00
.editorconfig bin: use tabs for coding style on *.sh files 2017-05-09 14:05:00 +03:00
__init__.py scripts: Add a gen_release_notes.py script 2019-10-03 20:15:19 +00:00
commit_in_branch.py commit_in_branch.py: variables cleanup 2022-11-30 17:08:48 +00:00
commit_in_branch_test.py commit_in_branch.py: variables cleanup 2022-11-30 17:08:48 +00:00
gen_calendar_entries.py bin: Fix typos 2023-03-30 21:37:00 +00:00
gen_calendar_entries_test.py bin: Fix typos 2023-03-30 21:37:00 +00:00
gen_release_notes.py bin: Fix typos 2023-03-30 21:37:00 +00:00
gen_release_notes_test.py bin: Fix typos 2023-03-30 21:37:00 +00:00
gen_vs_module_defs.py bin: Fix typos 2023-03-30 21:37:00 +00:00
git_sha1_gen.py git_sha1_gen.py: fix whitespace 2020-05-20 22:05:41 +00:00
install_megadrivers.py python: drop python2 support 2021-08-14 21:44:32 +00:00
khronos-update.py scripts: Fix khronos-update.py to use main for OpenCL headers 2022-11-18 22:22:58 +00:00
meson-cmd-extract.py bin/meson-cmd-extract: Also handle cross and native files 2019-01-18 09:37:01 -08:00
meson.build meson: fixes mingw-clang32 building 2022-11-11 05:38:19 +00:00
perf-annotate-jit.py bin: Fix typos 2023-03-30 21:37:00 +00:00
pick-ui.py pick-ui: don't handle the mouse 2021-01-06 09:56:52 -08:00
post_version.py gen_release_notes: include links in relnotes.rst when generating the new release note 2023-01-12 14:34:59 +00:00
post_version_test.py docs: store the release-calendar information in csv (and fix tests) 2021-01-07 00:07:56 +00:00
refcnt-log-helper.py bin: Add a script for filtering/sorting refcount logs 2022-05-02 16:58:20 +00:00
symbols-check.py bin: Fix typos 2023-03-30 21:37:00 +00:00
update-android-headers.sh android_stub: update platform headers to include atrace 2021-10-09 00:42:32 +00:00