From f43e5b48955b96ee472010c44cc0977b0e59e326 Mon Sep 17 00:00:00 2001 From: Martin Yeo Date: Tue, 20 Feb 2024 17:49:17 +0000 Subject: [PATCH 1/2] Add an auto-labeller to always benchmark lock file changes. --- .github/labeler.yml | 6 ++++++ .github/workflows/labeler.yml | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..adee762bfc --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,6 @@ +# Make sure any dependency changes are benchmarked (only changes to the locks +# make a material difference - changes to the Conda YAML files are not +# benchmarked). +benchmark_this: +- changed-files: + - any-glob-to-any-file: 'requirements/locks/*.lock' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..7914ec2531 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +# Reference +# - https://github.com/actions/labeler + +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 \ No newline at end of file From 16d5909c3d8e7b8bd83cc327300f0d0eaa108e4f Mon Sep 17 00:00:00 2001 From: Martin Yeo Date: Wed, 21 Feb 2024 18:15:03 +0000 Subject: [PATCH 2/2] What's New entry. --- docs/src/whatsnew/latest.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/src/whatsnew/latest.rst b/docs/src/whatsnew/latest.rst index a174fd2cfb..ab5d18d3eb 100644 --- a/docs/src/whatsnew/latest.rst +++ b/docs/src/whatsnew/latest.rst @@ -72,7 +72,11 @@ This document explains the changes made to Iris for this release 💼 Internal =========== -#. N/A +#. `@trexfeathers`_ used the `Pull Request Labeler Github action`_ to add the + ``benchmark_this`` label (:ref:`more info `) to + pull requests that modify ``requirements/locks/*.lock`` files - ensuring + that we know whether dependency changes will affect performance. + (:pull:`5763`) .. comment @@ -84,3 +88,5 @@ This document explains the changes made to Iris for this release .. comment Whatsnew resources in alphabetical order: + +.. _Pull Request Labeler GitHub action: https://github.com/actions/labeler