Skip to content

Commit

Permalink
Add an auto-labeller to always benchmark lock file changes (#5763)
Browse files Browse the repository at this point in the history
* Add an auto-labeller to always benchmark lock file changes.

* What's New entry.
  • Loading branch information
trexfeathers authored Feb 22, 2024
1 parent 2b1ca72 commit 9397c1d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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'
15 changes: 15 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 7 additions & 1 deletion docs/src/whatsnew/latest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <on_demand_pr_benchmark>`) to
pull requests that modify ``requirements/locks/*.lock`` files - ensuring
that we know whether dependency changes will affect performance.
(:pull:`5763`)


.. comment
Expand All @@ -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

0 comments on commit 9397c1d

Please sign in to comment.