The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
fix(infra): pr-title-labeler (#33313)
Mason Daugherty6eb1c34ba193
diff --git a/.github/workflows/_compile_integration_test.yml b/.github/workflows/_compile_integration_test.ymlindex 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-latesttimeout-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: bashrun: uv sync --group test --group test_integration- - name: 'π Check Integration Tests Compile'+ - name: "π Check Integration Tests Compile"shell: bashrun: uv run pytest -m compile tests/integration_tests- - name: 'π§Ή Verify Clean Working Directory'+ - name: "π§Ή Verify Clean Working Directory"shell: bashrun: |set -eudiff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.ymlindex 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 codebuild:- name: 'Python ${{ inputs.python-version }}'+ name: "Python ${{ inputs.python-version }}"runs-on: ubuntu-latesttimeout-minutes: 20steps:- - 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_testsdiff --git a/.github/workflows/_test.yml b/.github/workflows/_test.ymlindex 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-latesttimeout-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-pythonwith:@@ -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: bashrun: uv sync --group test --dev- - name: 'π§ͺ Run Core Unit Tests'+ - name: "π§ͺ Run Core Unit Tests"shell: bashrun: |make test- - name: 'π Calculate Minimum Dependency Versions'+ - name: "π Calculate Minimum Dependency Versions"working-directory: ${{ inputs.working-directory }}id: min-versionshell: 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 testsworking-directory: ${{ inputs.working-directory }}- - name: 'π§Ή Verify Clean Working Directory'+ - name: "π§Ή Verify Clean Working Directory"shell: bashrun: |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.ymlindex 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-latesttimeout-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: bashrun: uv sync --group test- - name: 'π Install Specific Pydantic Version'+ - name: "π Install Specific Pydantic Version"shell: bashrun: VIRTUAL_ENV=.venv uv pip install pydantic~=${{ inputs.pydantic-version }}- - name: 'π§ͺ Run Core Tests'+ - name: "π§ͺ Run Core Tests"shell: bashrun: |make test- - name: 'π§Ή Verify Clean Working Directory'+ - name: "π§Ή Verify Clean Working Directory"shell: bashrun: |set -eudiff --git a/.github/workflows/check_core_versions.yml b/.github/workflows/check_core_versions.ymlindex 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 versionsCORE_PYPROJECT_VERSION=$(grep -Po '(?<=^version = ")[^"]*' libs/core/pyproject.toml)diff --git a/.github/workflows/pr_labeler_file.yml b/.github/workflows/pr_labeler_file.ymlindex 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: readpull-requests: write@@ -20,9 +20,9 @@ jobs:runs-on: ubuntu-lateststeps:- - 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: falsediff --git a/.github/workflows/pr_labeler_title.yml b/.github/workflows/pr_labeler_title.ymlindex 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: readpull-requests: write@@ -20,9 +20,14 @@ jobs:runs-on: ubuntu-lateststeps:- - 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