summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* ci: bump bin/ci/ deps to support python 3.11Eric Engestrom2023-05-101-2/+2
| | | | | Signed-off-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22943>
* bin/ci: Add StructuredLogger to improve log handlingGuilherme Gallo2023-04-192-0/+476
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* bin: Fix typosHarri Nieminen2023-03-309-13/+13
| | | | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22189>
* docs: use version-number as toctree-title for relnotesErik Faye-Lund2023-03-301-2/+3
| | | | | | | | | | | Using the full titles makes most of these take up two lines in the toctree. The version number is really the only thing we should care about, though. Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21956>
* symbols-check: support OSes based on GNU toolchainPino Toscano2023-03-101-1/+1
| | | | | | | | | | Some of the symbols listed in PLATFORM_SYMBOLS are not only specific to Linux, but rather specific to the GNU toolchain. Hence, use them when inspecting ELF binaries produced by a GNU toolchain: this means on Hurd ('GNU'), and on e.g. kFreeBSD ('GNU/kFreeBSD'). Signed-off-by: Pino Toscano <toscano.pino@tiscali.it> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21825>
* ci/ci_run_n_monitor: while we usually disable many jobs, print them inlineDavid Heidelberg2023-03-061-1/+2
| | | | | | | | Saving scrolling time... Reviewed-by: Guilherme Gallo <guilherme.gallo@collabora.com> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21713>
* docs: mention `meson configure` and drop broken workaround scriptEric Engestrom2023-02-231-63/+0
| | | | | | | | | | | | The script is broken, and nobody noticed so it wasn't used much. Meson has had support for printing the options by pointing to the source dir for a while (not sure the exact version though) so I think we can just recommend users do that. Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21469>
* android: Make libbacktrace optional againTomeu Vizoso2023-01-251-0/+28
| | | | | | | | | | | | | | | | For the same reason why we used to have USE_LIBBACKTRACE with the old Android makefiles, allow to build Mesa without linking to it. In recent VNDK versions, libbacktrace isn't available. When building without linking libbacktrace, for some reason some symbols related to C++ exception handling are exposed. Allow them in the symbols check script. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: Helen Koike <helen.koike@collabora.com> Reviewed-by: Sergi Blanch Torné <sergi.blanch.torne@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20019>
* meson: use builtin support for reading version from a fileDylan Baker2023-01-191-39/+0
| | | | | | | | In meson 0.57 support was added for reading a version from a file to meson natively, so we don't need this workaround anymore. Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20752>
* bin/ci: add gitlab_gql.py.cache to the .gitignoreEric Engestrom2023-01-161-1/+1
| | | | | | | | On my machine, the filecache doesn't have the extra `.db` suffix, just `.cache`. Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20722>
* gen_release_notes: include links in relnotes.rst when generating the new ↵Eric Engestrom2023-01-122-31/+29
| | | | | | | | | | release note This is required to allow the docs to build, which in turn is required if we want to allow merge requests against release (staging) branches. Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20460>
* gen_release_notes: allow using the script from another checkoutEric Engestrom2023-01-121-3/+3
| | | | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20459>
* gen_release_notes: avoid crashing when none of the commits mention closing ↵Eric Engestrom2023-01-121-1/+4
| | | | | | an issue Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20459>
* gen_release_notes: stop the script if we can't generate the release noteEric Engestrom2023-01-121-0/+1
| | | | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20459>
* ci_run_n_monitor.py: automatically retry on transient errorsEric Engestrom2023-01-061-1/+3
| | | | | | | | | | | | | This morning a GitLab update was deployed, leading to a few moments where the API returned an error. python-gitlab is actually able to handle a number of those and retry automatically, so let's enable that: https://python-gitlab.readthedocs.io/en/stable/api-usage-advanced.html#transient-errors Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20094>
* bin/gen_release_notes.py: read Closes/Fixes tags case-insensitivelyKonstantin Kharlamov2022-12-302-2/+13
| | | | | | | Cc: mesa-stable Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20241>
* bin/gen_release_notes.py: parse "Fixes" tags as well as "Closes"Konstantin Kharlamov2022-12-302-14/+31
| | | | | | | | | | | | | Some commits refer to bugs being fixed with "Fixes" tag. Example of one: e13d53e1fdb 'Revert "glx/dri: Fix DRI drawable release at MakeCurrent time"' Parse this tag as well. Cc: mesa-stable Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20241>
* bin/gen_release_notes.py: don't fail if "Closes" refers to an MRKonstantin Kharlamov2022-12-302-1/+21
| | | | | | | | | | | | | | | | Sometimes a tag "Closes:" in a commit may refer to a merge request instead of an issue. Examples of such commits: 34319c7d84 "ci/freedreno: disable antichambers trace" 998122d9c2 "mesa: fix GL_INVALID_OPERATION in glEGLImageTargetTexStorageEXT" Avoid failing on these by explicitly checking that the URL refers to an issue Cc: mesa-stable Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20241>
* bin/gen_release_notes.py: do not fail on confidential featuresKonstantin Kharlamov2022-12-301-1/+6
| | | | | | | | | | | | | | A commit may refer to an issue marked as confidential. That will look like a 404 page for outside users. One example of such commit is: 369c12e5be "anv: clear descriptorsets if AllocateDescriptorSets fails" Let's handle that case. Cc: mesa-stable Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20241>
* bin/gen_release_notes.py: do not end "features" with "None"Konstantin Kharlamov2022-12-301-3/+1
| | | | | | | | | | | | Currently, the "New features" list unconditionally ends with a "None" point, which makes no sense. The original author probably meant to check whether the file is empty, so remove the else clause, and add the check for emptiness. Cc: mesa-stable Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20241>
* gen_release_notes: strip second newline in new featuresEric Engestrom2022-12-291-1/+1
| | | | | Signed-off-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20132>
* ci: move the CI handling scripts into bin/ciDavid Heidelberg2022-12-199-0/+909
| | | | | | | | | | | | Any change in .gitlab-ci/ directory triggers an entire CI run, which is unnecessary for just changing the developers' scripts. Added symlink to `.gitlab-ci/bin` to keep original invocation compatibility. Reviewed-by: Martin Roukala <martin.roukala@mupuf.org> Reviewed-by: Guilherme Gallo <guilherme.gallo@collabora.com> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20371>
* commit_in_branch.py: variables cleanupEric Engestrom2022-11-302-32/+30
| | | | | Signed-off-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19988>
* commit_in_branch.py: add support for checking staging branchesEric Engestrom2022-11-302-3/+7
| | | | | | | | Or any branch that contains a `/` slash. Cc: mesa-stable Signed-off-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19988>
* commit_in_branch.py: fix testsEric Engestrom2022-11-301-2/+2
| | | | | | | Apparently these were backported since I wrote these tests ^^ Signed-off-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19988>
* meson: do not use source_root() when possibleDanylo Piliaiev2022-11-221-1/+6
| | | | | | | | | | | | | | | | source_root() function is deprecated in Meson version 0.56.0 because it returns the source root of the parent project if called from a subproject. Why would anyone need Mesa as a meson subproject? It would be used as subproject in a project generated by command buffer "decompiler" for Freedreno. Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Acked-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19901>
* scripts: Fix khronos-update.py to use main for OpenCL headersJason Ekstrand2022-11-181-18/+19
| | | | | | | | Also, cl.hpp no longer exists in OpenCL-Headers to fix it at the last commit where it did exist. Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19816>
* meson: fixes mingw-clang32 buildingYonggang Luo2022-11-112-14/+16
| | | | | | | | Cc: mesa-stable Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19610>
* meson: Refactoring shared gen_vs_module_defs_normal_command outYonggang Luo2022-11-111-0/+5
| | | | | | | | Cc: mesa-stable Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19610>
* bin/perf-annotate-jit.py: Update to Python 3.Vinson Lee2022-08-211-3/+3
| | | | | | Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12926>
* egl: Remove eglextchromium.h and import eglext_angle.hYonggang Luo2022-08-091-2/+1
| | | | | | | | | | | | | The upstream eglextchromium.h in https://chromium.googlesource.com/chromium/src/+/refs/heads/master/ui/gl/EGL/eglextchromium.h are broken, so remove it and using eglext_angle.h instead. By running "python bin/khronos-update.py egl" to update EGL files, then discard changes other than eglext_angle.h Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17815>
* bin/gen_release_notes.py: bump advertised vulkan version to 1.3Eric Engestrom2022-08-031-1/+1
| | | | | | | | Fixes: df8ac77af8093c87d5d5 ("anv: Advertise Vulkan 1.3") Fixes: 08c6f437cf63234f4a5d ("radv: advertise Vulkan 1.3") Signed-off-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17759>
* bin: Add a script for filtering/sorting refcount logsJesse Natalie2022-05-021-0/+78
| | | | | Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16182>
* win32: Fixes 32 bits visual studio module definition files by add script ↵Yonggang Luo2022-04-192-0/+99
| | | | | | | | | | | | | | | | | gen_vs_module_defs.py Getting opengl32*.def consistence with Windows SDK. Getting osmesa.mingw.def's gl* functions consistence with Windows SDK. stw_* functions are cdecl, not stdcall, so there is no need mangling the symbol. Fixes egl.def for x86 d3d10sw: Move the place of d3d10_sw.def to d3d10_sw.def.in Fixes vulkan_lvp.def for x86 Fixes #5552 Remove stdcall-fixup Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14041>
* bin/gen_calendar_entries: fix newlines on windowsErik Faye-Lund2022-01-161-3/+3
| | | | | | | | | | | | | The documentation[1] for the csv module specifies that we should specify newline='' when opening the output file. Without that, the module garbles the newlines, writing them as \r\r\n on Windows instead of \r\n. So let's do what the documentation says, and specify newline='' [1]: https://docs.python.org/3/library/csv.html#id3 Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12405>
* vulkan/include: import the video codec headers.Dave Airlie2021-11-091-0/+7
| | | | | | | | | | | I'd like to allow mesa builds with beta headers enabled, this requires importing these. v2: add video headers to khronos update Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13685>
* android_stub: update platform headers to include atraceYiwei Zhang2021-10-091-10/+13
| | | | | | | | | | | 1. Add tracing headers 2. Update to reflect relocated headers 3. Remove redundant apex/window.h Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Ryan Neph <ryanneph@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13255>
* bin/khronos-update.py: add upstream for vulkan_directfb.h & vulkan_screen.hEric Engestrom2021-09-191-0/+2
| | | | | | Signed-off-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12877>
* bin/khronos-update.py: update the branch name (s/master/main/)Eric Engestrom2021-09-191-40/+40
| | | | | | Signed-off-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12877>
* symbols-check: Fix symbol demangling for WindowsJesse Natalie2021-09-161-1/+1
| | | | | | | | | Only strip leading underscores if there's also a trailing @ Fixes shared-glapi symbol check for x64 Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12881>
* python: drop python2 supportEric Engestrom2021-08-142-2/+0
| | | | | | | | Signed-off-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3674>
* python: explicitly require python3Eric Engestrom2021-08-142-2/+2
| | | | | | | | | | | | | | | Ubuntu has dropped the `python` symlink to `python2` [1] instead of redirecting it to `python3` like other distros are doing, which means that if we want to build Mesa on Ubuntu we need the `python3` shebang. [1] https://lists.ubuntu.com/archives/ubuntu-devel/2020-January/040882.html Reported-by: Vinson Lee <vlee@freedesktop.org> Signed-off-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3674>
* pick-ui: show commit dateEric Engestrom2021-08-102-1/+9
| | | | | | | | | | With our ff-only merge setup, the commit date ends up being when the commit actually landed (as opposed to when it was first written). Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12289>
* pick-ui: show nomination type in the UIEric Engestrom2021-08-101-1/+2
| | | | | | | Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12289>
* pick-ui: drop assert that optional argument is passedEric Engestrom2021-08-101-2/+1
| | | | | | | | | Let's just make it not-optional instead. Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12289>
* bin/gen_release_notes: Fix commits with multiple Closes:Dylan Baker2021-08-042-10/+39
| | | | | | | | Currently we'd only handle the last one, not all of them. Which is clearely not correct. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12201>
* bin/gen_release_notes: Don't consider issues for other projectsDylan Baker2021-08-042-2/+25
| | | | | | | | | We have enough commits in mesa that have external dependencies that we need to be sure that a Closes: https://... is actually for mesa and not for another project. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12201>
* bin/gen_release_notes: Add basic tests for parsing issuesDylan Baker2021-08-042-4/+58
| | | | | | | Since test coverage here is pretty important for a heuristic like this. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12201>
* pass egl-symbols-check test on mips64elsuijingfeng2021-07-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | Without this patch the egl symbols check test fail on mips platform: 72/87 mesa:egl / egl-symbols-check FAIL 0.20s (exit status 1) src/egl/libEGL.so.1.0.0: unknown symbol exported: _fbss src/egl/libEGL.so.1.0.0: unknown symbol exported: _fdata src/egl/libEGL.so.1.0.0: unknown symbol exported: _ftext See Mips Run say thoes special symbols are automatically defined by the linker to allow programs to discover the start and end of their various section. They are descended from conventions that grew up in UNIX-like OSs, and are peculiar to the MIPS environment. _fbss : Start of uninitialized data segment _fdata : Start of initialized data segment _ftext : Start of text segment Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: suijingfeng <suijingfeng@loongson.cn> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11955>
* egl/android: add aosp_nougat system/window.h back for back compatYiwei Zhang2021-06-111-0/+4
| | | | | | | | | | | Also layer ANativeWindow_* APIs on top of legacy APIs for api level less than 26 in a new platform_android.h header. v2: persist frozen system/window.h header Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Rob Clark <robdclark@chromium.org> (v1) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11286>