aboutsummaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* bin/gen_release_notes.py: drop new_features.txt when we release XX.Y.0Eric Engestrom2020-07-101-0/+1
| | | | | | | | Otherwise, we (rightfully) get a warning about having new features in a bugfix release. Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5416>
* introduce `commit_in_branch.py` script to help devs figure this outEric Engestrom2020-07-102-0/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's been pointed out to me that determining whether a commit is present in a stable branch is non-trivial (cherry-picks are a pain to search for) and the commands are hard to remember, making it too much to ask. This script aims to solve that problem; at its simplest form, it only takes a commit and a branch and tells the user whether that commit predates the branch, was cherry-picked to it, or is not present in any form in the branch. $ bin/commit_in_branch.py e58a10af640ba58b6001f5c5ad750b782547da76 fdo/20.1 Commit e58a10af640ba58b6001f5c5ad750b782547da76 is in branch 20.1 $ echo $? 0 $ bin/commit_in_branch.py dd2bd68fa69124c86cd008b256d06f44fab8e6cd fdo/20.1 Commit dd2bd68fa69124c86cd008b256d06f44fab8e6cd was backported to branch 20.1 as commit d043d24654c851f0be57dbbf48274b5373dea42b $ echo $? 0 $ bin/commit_in_branch.py master fdo/20.1 Commit 2fbcfe170bf50fcbcd2fc70a564a4d69096d968c is NOT in branch 20.1 $ echo $? 1 Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5306>
* bin/symbols-check.py: add --ignore-symbol argumentPierre-Eric Pelloux-Prayer2020-07-101-0/+5
| | | | | | | | | | This will be used by radv to ignore 'the ac_init_llvm_once' symbol, which is not part of vulkan-icd-symbols.txt but is required to be exported to improve interop with radeonsi/vaapi. Reviewed-by: Marek Olšák <[email protected]> Acked-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5648>
* bin/symbols-check: explain C++ symbols workaroundEric Engestrom2020-06-231-2/+4
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5556>
* khronos-update.py: add script to simplify update of Khronos headers & xml filesEric Engestrom2020-06-181-0/+202
| | | | | | | | | | | | | The idea is to have the canonical source of each of those files available without having to remember anything, and to be able to update all the Vulkan files by simply running `bin/khronos-update.py vulkan`. The script also handles the fact all the EGL/GL/GLES* headers depend on the KHR header, and the former should not be updated without updating the latter. Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5177>
* post_version.py: update script to the new rST way of thingsEric Engestrom2020-06-131-83/+59
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4630>
* gen_release_notes.py: update script to the new rST way of thingsEric Engestrom2020-06-131-60/+45
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4630>
* bin/perf-annotate-jit.py: update internal referenceErik Faye-Lund2020-06-131-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4630>
* tree-wide: fix deprecated GitLab URLsEric Engestrom2020-05-231-10/+10
| | | | | | | | | | | | | They will stop working in the next GitLab release, so let's update them ASAP to make sure things are propagated to everyone by then. See: https://about.gitlab.com/releases/2020/05/06/gitlab-com-13-0-breaking-changes/#removal-of-deprecated-project-paths Cc: [email protected] Signed-off-by: Eric Engestrom <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5111>
* git_sha1_gen.py: fix whitespaceEric Engestrom2020-05-201-1/+2
| | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5112>
* git_sha1_gen.py: fix code styleEric Engestrom2020-05-201-1/+1
| | | | | | | | Bare `except` are bad form as per PEP8. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5112>
* git_sha1_gen.py: fix out-of-date commentEric Engestrom2020-05-201-1/+0
| | | | | | | | | This hasn't been true since 7088622e5fb506b64c90 ("buildsys: move file regeneration logic to the script itself") almost 3 years ago. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5112>
* post_version.py: stop adding release candidates to the index and relnotesEric Engestrom2020-05-131-4/+8
| | | | | | | Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2870 Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4929>
* post_version.py: invert `is_point` into `is_first_release` to make its ↵Eric Engestrom2020-05-131-9/+7
| | | | | | | | purpose clearer Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4929>
* post_version.py: fix branch name construction for release candidatesEric Engestrom2020-05-131-2/+13
| | | | | | | Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2870 Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4929>
* scripts: remove unittest.mock dependency when not usedAndres Gomez2020-05-011-2/+0
| | | | | | | | | Found upon inspection. Signed-off-by: Andres Gomez <[email protected] Reviewed-and-Tested-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4840>
* pick-ui: show commit sha in the pick listEric Engestrom2020-04-211-1/+1
| | | | | | | | Useful to get more context when a manual merge is needed, for instance. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4651>
* pick-ui: make .pick_status.json path relative to the git root instead of the ↵Eric Engestrom2020-04-211-1/+4
| | | | | | | | | | | script This allows the script to be called from another git worktree for instance, which I need for my workflow :) Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4649>
* pick-ui: compute .pick_status.json path only onceEric Engestrom2020-04-211-7/+6
| | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4649>
* pick-ui: auto-scroll the feedback windowEric Engestrom2020-04-201-0/+2
| | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4650>
* bin/pick-ui: Add a new maintainer script for picking patchesDylan Baker2020-04-205-0/+1142
| | | | | | | | | | | | In the long term the goal of this script is to nearly completely automate the process of picking stable nominations, in a well tested way. In the short term the goal is to provide a better, faster UI to interact with stable nominations. Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3608>
* bin/gen_release_notes.py: Fix version detection for .0 releaseDylan Baker2020-04-202-37/+15
| | | | | | | | | | | The previous version is being calculated incorrectly, resulting in 20.0.0 deciding it's version is 19.3.x+1. This fixes that. Fixes: 3226b12a09bbcbd25526fd6da6257057d26ddb31 ("release: Add an update_release_calendar.py script") Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4070>
* gen_release_notes: resolve ambiguity by renaming `version` to ↵Eric Engestrom2020-03-121-10/+10
| | | | | | | | | `previous_version` and `next_version` to `this_version` Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4113> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4113>
* gen_release_notes: fix version in "you should wait" messageEric Engestrom2020-03-121-1/+1
| | | | | | | Fixes: 86079447da1e00d49db0 ("scripts: Add a gen_release_notes.py script") Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4113>
* gen_release_notes: fix vulkan version reportedEric Engestrom2020-03-071-1/+1
| | | | | | | | | Fixes: 4ef3f7e3d37ece7b4339 ("anv: Enable Vulkan 1.2 support") Fixes: 7f5462e349a3f082e294 ("radv: enable Vulkan 1.2") Fixes: 75755e0eba17f8500367 ("turnip: Pretend to support Vulkan 1.2") Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4092>
* bin/gen_release_notes.py: fix commit list commandEric Engestrom2020-03-061-1/+1
| | | | | | | | Fixes: 86079447da1e00d49db0 ("scripts: Add a gen_release_notes.py script") Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4069> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4069>
* bin/post_version.py: Make the git commit as well.Dylan Baker2020-03-052-0/+10
| | | | | | Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2505>
* bin/post_version.py: Pretty print the htmlDylan Baker2020-03-051-3/+3
| | | | | | Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2505>
* bin/post_version.py: Update the release calendar as wellDylan Baker2020-03-052-0/+190
| | | | | | Acked-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2505>
* meson: simplify install_megadrivers.py invocationEric Engestrom2019-12-272-1/+3
| | | | | | | Note: `find_program()` needs a shebang on scripts. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]>
* meson: add windows support to symbols checksEric Engestrom2019-11-051-3/+41
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviwed-by: Dylan Baker <dylan@pnwbakers>
* bin/gen_release_notes.py: Add a warning if new features are introduced in a ↵Dylan Baker2019-10-251-2/+5
| | | | | | | | point release Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702 ("scripts: Add a gen_release_notes.py script") Reviewed-by: Juan A. Suarez <[email protected]>
* bin/gen_release_notes.py: html escape all external dataDylan Baker2019-10-251-4/+7
| | | | | | | | | | | All of these (bug titles, patch titles, features, and people's names) can contain characters that are not valid html. Just escape everything for safety. Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702 ("scripts: Add a gen_release_notes.py script") Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
* bin/post_release.py: Add .html to hrefsDylan Baker2019-10-251-2/+3
| | | | | | | | | oops. Fixes: 3226b12a09bbcbd25526fd6da6257057d26ddb31 ("release: Add an update_release_calendar.py script") Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
* bin/post_version.py: white space fixesDylan Baker2019-10-251-1/+1
| | | | | | | Fixes: 3226b12a09bbcbd25526fd6da6257057d26ddb31 ("release: Add an update_release_calendar.py script") Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
* bin/post_version.py: Pass version as an argumentDylan Baker2019-10-251-16/+10
| | | | | | | | | | | I made a bad assumption; I assumed this would be run in the release branch. But we don't do that, we run in the master branch. As a result we need to pass the version as an argument. Fixes: 3226b12a09bbcbd25526fd6da6257057d26ddb31 ("release: Add an update_release_calendar.py script") Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
* bin/gen_release_notes.py: Return "None" if there are no new featuresDylan Baker2019-10-251-0/+2
| | | | | | | | | Which is very likely .Z > 0 releases. Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702 ("scripts: Add a gen_release_notes.py script") Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
* bin/gen_release_notes.py: strip '#' from gitlab bugsDylan Baker2019-10-251-1/+1
| | | | | | | | | If they use the `Fixes: #1` form. Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702 ("scripts: Add a gen_release_notes.py script") Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
* bin/gen_release_notes.py: fix conditional of bugfixDylan Baker2019-10-251-1/+1
| | | | | | | | | | Previously this would result in the .0 warning be generated for .z > 0 and the .z == 0 would get the other message. Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702 ("scripts: Add a gen_release_notes.py script") Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
* symbols-check: ignore exported C++ symbolsEric Engestrom2019-10-131-0/+4
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* bin: delete unused releasing scriptsDylan Baker2019-10-032-64/+0
| | | | | Acked-by: Eric Engestrom <[email protected]> Acked-by: Juan A. Suarez <[email protected]>
* release: Add an update_release_calendar.py scriptDylan Baker2019-10-031-0/+122
| | | | | | | This script is for updating post version bump. Acked-by: Eric Engestrom <[email protected]> Acked-by: Juan A. Suarez <[email protected]>
* scripts: Add a gen_release_notes.py scriptDylan Baker2019-10-033-0/+326
| | | | | | | | | | This script is responsible for generating an entire page in the docs/relnotes/ directory. It includes a template for the page, and uses mako to fill in the necessary bits. It is designed to be purely fire and forget, calculating previous versions, shortlogs, bug fixes, and dates. Acked-by: Eric Engestrom <[email protected]> Acked-by: Juan A. Suarez <[email protected]>
* bin/get-pick-list: use --oneline=pretty instead of --onelineDylan Baker2019-09-251-1/+1
| | | | | | | | | --oneline shortens hashes, while --oneline=pretty doesn't, otherwise they are the same. Having full hashes is convenient as that is the format that the bin/.cherry-ignore script requires to work correctly. Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
* bin/get-pick-list.sh: sha1 commits can be smaller than 8 charsJuan A. Suarez Romero2019-09-241-1/+1
| | | | | | | | | | | | The script only handles commits with "Fixes: <sha1>" where <sha1> is equal or great than 8 chars. But <sha1> can be smaller, like 7 chars. This commit relax the restriction to handle <sha1> 4 or more chars. Fixes: 533fead4236 ("bin/get-pick-list.sh: tweak the commit sha matching pattern") Acked-by: Eric Engestrom <[email protected]> Signed-off-by: Juan A. Suarez Romero <[email protected]>
* symbols-check: fix `nm` invocation on MacOSEric Engestrom2019-08-041-4/+14
| | | | | | | | | | | | | | | | | | According to Mac OSX's man page [1], this is how we should get the list of exported symbols: nm -g -P foo.dylib -g to only show the exported symbols -P to show it in a "portable" format, ie. readable by a script Since this is supported by GNU nm as well, let's use that everywhere, although some care needs to be taken as there are some differences in the output. [1] https://www.unix.com/man-page/osx/1/nm/ Signed-off-by: Eric Engestrom <[email protected]> Tested-by: Vinson Lee <[email protected]>
* symbols-check: discard platform symbols earlyEric Engestrom2019-08-041-2/+2
| | | | | | | (as the comment there already claimed) Signed-off-by: Eric Engestrom <[email protected]> Tested-by: Vinson Lee <[email protected]>
* symbols-check: skip test if we can't get the symbols listEric Engestrom2019-08-041-1/+6
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Tested-by: Vinson Lee <[email protected]>
* symbols-check: introduce new python scriptEric Engestrom2019-07-102-0/+116
| | | | | | | | | | | | | | | | | | | | I've re-written this in bash a couple times over the years, and then I realised python is much more portable and already required by Mesa, so we might as well make use of it. I decided to still use the build system's NM instead of re-implementing symbols extraction, to offload the complexity of keeping it compatible with many systems (Linux, Unix, BSD, MacOS, etc.), especially when cross-building. This new script checks not only that nothing is exported when it shouldn't be, but also that everything that should be exported is. Sometimes, some symbols _can_ be exported but don't have to be, in which case they can be prefixed with `(optional)`. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by Dylan Baker <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
* delete autotools .gitignore filesEric Engestrom2019-04-291-9/+0
| | | | | | | | One special case, `src/util/xmlpool/.gitignore` is not entirely deleted, as `xmlpool.pot` still gets generated (eg. by `ninja xmlpool-pot`). Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]>