Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an auto-labeller to always benchmark lock file changes #5763

Merged
merged 3 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading