Skip to content

The agent engineering platform.

fix(infra): pr-title-labeler (#33313)

Mason Daugherty6eb1c34ba193
diff --git a/.github/workflows/_compile_integration_test.yml b/.github/workflows/_compile_integration_test.yml
index dc49c03da7..60070df16a 100644
--- a/.github/workflows/_compile_integration_test.yml
+++ b/.github/workflows/_compile_integration_test.yml
@@ -6,7 +6,7 @@
#
# Runs pytest with compile marker to check syntax/imports.
-name: 'πŸ”— Compile Integration Tests'
+name: "πŸ”— Compile Integration Tests"
on:
workflow_call:
@@ -33,26 +33,26 @@ jobs:
working-directory: ${{ inputs.working-directory }}
runs-on: ubuntu-latest
timeout-minutes: 20
- name: 'Python ${{ inputs.python-version }}'
+ name: "Python ${{ inputs.python-version }}"
steps:
- uses: actions/checkout@v5
- - name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
+ - name: "🐍 Set up Python ${{ inputs.python-version }} + UV"
uses: "./.github/actions/uv_setup"
with:
python-version: ${{ inputs.python-version }}
cache-suffix: compile-integration-tests-${{ inputs.working-directory }}
working-directory: ${{ inputs.working-directory }}
- - name: 'πŸ“¦ Install Integration Dependencies'
+ - name: "πŸ“¦ Install Integration Dependencies"
shell: bash
run: uv sync --group test --group test_integration
- - name: 'πŸ”— Check Integration Tests Compile'
+ - name: "πŸ”— Check Integration Tests Compile"
shell: bash
run: uv run pytest -m compile tests/integration_tests
- - name: '🧹 Verify Clean Working Directory'
+ - name: "🧹 Verify Clean Working Directory"
shell: bash
run: |
set -eu
diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.yml
index 04af83f802..9ea8cc59d5 100644
--- a/.github/workflows/_lint.yml
+++ b/.github/workflows/_lint.yml
@@ -5,7 +5,7 @@
#
# Called as part of check_diffs.yml workflow.
-name: '🧹 Linting'
+name: "🧹 Linting"
on:
workflow_call:
@@ -33,43 +33,43 @@ env:
jobs:
# Linting job - runs quality checks on package and test code
build:
- name: 'Python ${{ inputs.python-version }}'
+ name: "Python ${{ inputs.python-version }}"
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- - name: 'πŸ“‹ Checkout Code'
+ - name: "πŸ“‹ Checkout Code"
uses: actions/checkout@v5
- - name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
+ - name: "🐍 Set up Python ${{ inputs.python-version }} + UV"
uses: "./.github/actions/uv_setup"
with:
python-version: ${{ inputs.python-version }}
cache-suffix: lint-${{ inputs.working-directory }}
working-directory: ${{ inputs.working-directory }}
- - name: 'πŸ“¦ Install Lint & Typing Dependencies'
+ - name: "πŸ“¦ Install Lint & Typing Dependencies"
working-directory: ${{ inputs.working-directory }}
run: |
uv sync --group lint --group typing
- - name: 'πŸ” Analyze Package Code with Linters'
+ - name: "πŸ” Analyze Package Code with Linters"
working-directory: ${{ inputs.working-directory }}
run: |
make lint_package
- - name: 'πŸ“¦ Install Test Dependencies (non-partners)'
+ - name: "πŸ“¦ Install Test Dependencies (non-partners)"
# (For directories NOT starting with libs/partners/)
if: ${{ ! startsWith(inputs.working-directory, 'libs/partners/') }}
working-directory: ${{ inputs.working-directory }}
run: |
uv sync --inexact --group test
- - name: 'πŸ“¦ Install Test Dependencies'
+ - name: "πŸ“¦ Install Test Dependencies"
if: ${{ startsWith(inputs.working-directory, 'libs/partners/') }}
working-directory: ${{ inputs.working-directory }}
run: |
uv sync --inexact --group test --group test_integration
- - name: 'πŸ” Analyze Test Code with Linters'
+ - name: "πŸ” Analyze Test Code with Linters"
working-directory: ${{ inputs.working-directory }}
run: |
make lint_tests
diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml
index 488b0d65b2..b3ea86a17d 100644
--- a/.github/workflows/_test.yml
+++ b/.github/workflows/_test.yml
@@ -1,7 +1,7 @@
# Runs unit tests with both current and minimum supported dependency versions
# to ensure compatibility across the supported range.
-name: 'πŸ§ͺ Unit Testing'
+name: "πŸ§ͺ Unit Testing"
on:
workflow_call:
@@ -30,12 +30,12 @@ jobs:
working-directory: ${{ inputs.working-directory }}
runs-on: ubuntu-latest
timeout-minutes: 20
- name: 'Python ${{ inputs.python-version }}'
+ name: "Python ${{ inputs.python-version }}"
steps:
- - name: 'πŸ“‹ Checkout Code'
+ - name: "πŸ“‹ Checkout Code"
uses: actions/checkout@v5
- - name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
+ - name: "🐍 Set up Python ${{ inputs.python-version }} + UV"
uses: "./.github/actions/uv_setup"
id: setup-python
with:
@@ -43,16 +43,16 @@ jobs:
cache-suffix: test-${{ inputs.working-directory }}
working-directory: ${{ inputs.working-directory }}
- - name: 'πŸ“¦ Install Test Dependencies'
+ - name: "πŸ“¦ Install Test Dependencies"
shell: bash
run: uv sync --group test --dev
- - name: 'πŸ§ͺ Run Core Unit Tests'
+ - name: "πŸ§ͺ Run Core Unit Tests"
shell: bash
run: |
make test
- - name: 'πŸ” Calculate Minimum Dependency Versions'
+ - name: "πŸ” Calculate Minimum Dependency Versions"
working-directory: ${{ inputs.working-directory }}
id: min-version
shell: bash
@@ -63,7 +63,7 @@ jobs:
echo "min-versions=$min_versions" >> "$GITHUB_OUTPUT"
echo "min-versions=$min_versions"
- - name: 'πŸ§ͺ Run Tests with Minimum Dependencies'
+ - name: "πŸ§ͺ Run Tests with Minimum Dependencies"
if: ${{ steps.min-version.outputs.min-versions != '' }}
env:
MIN_VERSIONS: ${{ steps.min-version.outputs.min-versions }}
@@ -72,7 +72,7 @@ jobs:
make tests
working-directory: ${{ inputs.working-directory }}
- - name: '🧹 Verify Clean Working Directory'
+ - name: "🧹 Verify Clean Working Directory"
shell: bash
run: |
set -eu
@@ -83,4 +83,3 @@ jobs:
# grep will exit non-zero if the target message isn't found,
# and `set -e` above will cause the step to fail.
echo "$STATUS" | grep 'nothing to commit, working tree clean'
-
diff --git a/.github/workflows/_test_pydantic.yml b/.github/workflows/_test_pydantic.yml
index 7363231fd6..5c9211ded5 100644
--- a/.github/workflows/_test_pydantic.yml
+++ b/.github/workflows/_test_pydantic.yml
@@ -1,6 +1,6 @@
# Facilitate unit testing against different Pydantic versions for a provided package.
-name: '🐍 Pydantic Version Testing'
+name: "🐍 Pydantic Version Testing"
on:
workflow_call:
@@ -33,32 +33,32 @@ jobs:
working-directory: ${{ inputs.working-directory }}
runs-on: ubuntu-latest
timeout-minutes: 20
- name: 'Pydantic ~=${{ inputs.pydantic-version }}'
+ name: "Pydantic ~=${{ inputs.pydantic-version }}"
steps:
- - name: 'πŸ“‹ Checkout Code'
+ - name: "πŸ“‹ Checkout Code"
uses: actions/checkout@v5
- - name: '🐍 Set up Python ${{ inputs.python-version }} + UV'
+ - name: "🐍 Set up Python ${{ inputs.python-version }} + UV"
uses: "./.github/actions/uv_setup"
with:
python-version: ${{ inputs.python-version }}
cache-suffix: test-pydantic-${{ inputs.working-directory }}
working-directory: ${{ inputs.working-directory }}
- - name: 'πŸ“¦ Install Test Dependencies'
+ - name: "πŸ“¦ Install Test Dependencies"
shell: bash
run: uv sync --group test
- - name: 'πŸ”„ Install Specific Pydantic Version'
+ - name: "πŸ”„ Install Specific Pydantic Version"
shell: bash
run: VIRTUAL_ENV=.venv uv pip install pydantic~=${{ inputs.pydantic-version }}
- - name: 'πŸ§ͺ Run Core Tests'
+ - name: "πŸ§ͺ Run Core Tests"
shell: bash
run: |
make test
- - name: '🧹 Verify Clean Working Directory'
+ - name: "🧹 Verify Clean Working Directory"
shell: bash
run: |
set -eu
diff --git a/.github/workflows/check_core_versions.yml b/.github/workflows/check_core_versions.yml
index c2b7ccb5e0..fb8af516a2 100644
--- a/.github/workflows/check_core_versions.yml
+++ b/.github/workflows/check_core_versions.yml
@@ -2,13 +2,13 @@
#
# (Prevents releases with mismatched version numbers)
-name: 'πŸ” Check Version Equality'
+name: "πŸ” Check Version Equality"
on:
pull_request:
paths:
- - 'libs/core/pyproject.toml'
- - 'libs/core/langchain_core/version.py'
+ - "libs/core/pyproject.toml"
+ - "libs/core/langchain_core/version.py"
permissions:
contents: read
@@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v5
- - name: 'βœ… Verify pyproject.toml & version.py Match'
+ - name: "βœ… Verify pyproject.toml & version.py Match"
run: |
# Check core versions
CORE_PYPROJECT_VERSION=$(grep -Po '(?<=^version = ")[^"]*' libs/core/pyproject.toml)
diff --git a/.github/workflows/pr_labeler_file.yml b/.github/workflows/pr_labeler_file.yml
index 1475606fa5..77de91543d 100644
--- a/.github/workflows/pr_labeler_file.yml
+++ b/.github/workflows/pr_labeler_file.yml
@@ -12,7 +12,7 @@ on:
jobs:
labeler:
- name: 'label'
+ name: "label"
permissions:
contents: read
pull-requests: write
@@ -20,9 +20,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- - name: Label Pull Request
- uses: actions/labeler@v6
- with:
- repo-token: "${{ secrets.GITHUB_TOKEN }}"
- configuration-path: .github/pr-file-labeler.yml
- sync-labels: false
+ - name: Label Pull Request
+ uses: actions/labeler@v6
+ with:
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
+ configuration-path: .github/pr-file-labeler.yml
+ sync-labels: false
diff --git a/.github/workflows/pr_labeler_title.yml b/.github/workflows/pr_labeler_title.yml
index 04d770c57f..655440adb7 100644
--- a/.github/workflows/pr_labeler_title.yml
+++ b/.github/workflows/pr_labeler_title.yml
@@ -12,7 +12,7 @@ on:
jobs:
pr-title-labeler:
- name: 'label'
+ name: "label"
permissions:
contents: read
pull-requests: write
@@ -20,9 +20,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- - name: Label PR based on title
- # Archived repo; latest commit (v0.1.0)
- uses: grafana/pr-labeler-action@f19222d3ef883d2ca5f04420fdfe8148003763f0
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- configuration-path: .github/pr-title-labeler.yml
+ - name: Checkout repository
+ uses: actions/checkout@v5
+ with:
+ ref: ${{ github.event.pull_request.base.ref }}
+
+ - name: Label PR based on title
+ # Archived repo; latest commit (v0.1.0)
+ uses: grafana/pr-labeler-action@f19222d3ef883d2ca5f04420fdfe8148003763f0
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ configuration-path: .github/pr-title-labeler.yml