From ea0aa12dc61e28e8d7103bfb19ee027cecfd037f Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Mon, 28 Jul 2025 17:32:35 -0400 Subject: [PATCH] fix: update run-name and add default inputs in workflow files --- .github/workflows/_integration_test.yml | 4 +++- .github/workflows/_release.yml | 7 ++++++- .github/workflows/api_doc_build.yml | 11 ++++++----- .github/workflows/people.yml | 3 ++- .github/workflows/run_notebooks.yml | 4 ++-- .github/workflows/scheduled_test.yml | 3 ++- 6 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/_integration_test.yml b/.github/workflows/_integration_test.yml index 48e277e936a..a1f7f988fa0 100644 --- a/.github/workflows/_integration_test.yml +++ b/.github/workflows/_integration_test.yml @@ -1,4 +1,5 @@ name: '๐Ÿš€ Integration Tests' +run-name: 'Test ${{ inputs.working-directory }} on Python ${{ inputs.python-version }}' on: workflow_dispatch: @@ -11,6 +12,7 @@ on: required: true type: string description: "Python version to use" + default: "3.11" permissions: contents: read @@ -24,7 +26,7 @@ jobs: run: working-directory: ${{ inputs.working-directory }} runs-on: ubuntu-latest - name: '๐Ÿš€ Integration Tests (Python ${{ inputs.python-version }})' + name: 'Python ${{ inputs.python-version }}' steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 22df65f04ae..93d1aea24f2 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -1,5 +1,5 @@ name: '๐Ÿš€ Package Release' -run-name: 'Release ${{ inputs.working-directory }} by @${{ github.actor }}' +run-name: 'Release ${{ inputs.working-directory }} ${{ inputs.release-version }}' on: workflow_call: inputs: @@ -14,6 +14,11 @@ on: type: string description: "From which folder this pipeline executes" default: 'libs/langchain' + release-version: + required: true + type: string + default: '0.1.0' + description: "New version of package being released" dangerous-nonmaster-release: required: false type: boolean diff --git a/.github/workflows/api_doc_build.yml b/.github/workflows/api_doc_build.yml index c97b4e5e19e..c6c4c90edda 100644 --- a/.github/workflows/api_doc_build.yml +++ b/.github/workflows/api_doc_build.yml @@ -1,4 +1,5 @@ -name: '๐Ÿ“š API Documentation Build' +name: '๐Ÿ“š API Docs' +run-name: 'Build & Deploy API Reference' # Runs daily or can be triggered manually for immediate updates on: @@ -51,7 +52,7 @@ jobs: run: | # Get unique repositories REPOS=$(echo "$REPOS_UNSORTED" | sort -u) - + # Checkout each unique repository for repo in $REPOS; do # Validate repository format (allow any org with proper format) @@ -59,15 +60,15 @@ jobs: echo "Error: Invalid repository format: $repo" exit 1 fi - + REPO_NAME=$(echo $repo | cut -d'/' -f2) - + # Additional validation for repo name if [[ ! "$REPO_NAME" =~ ^[a-zA-Z0-9_.-]+$ ]]; then echo "Error: Invalid repository name: $REPO_NAME" exit 1 fi - + echo "Checking out $repo to $REPO_NAME" git clone --depth 1 https://github.com/$repo.git $REPO_NAME done diff --git a/.github/workflows/people.yml b/.github/workflows/people.yml index fe6a56fc8f4..d47b4e73529 100644 --- a/.github/workflows/people.yml +++ b/.github/workflows/people.yml @@ -1,5 +1,6 @@ name: '๐Ÿ‘ฅ LangChain People' - +run-name: 'Update People Data' +# This workflow updates the LangChain People data by fetching the latest information from the LangChain Git on: schedule: - cron: "0 14 1 * *" diff --git a/.github/workflows/run_notebooks.yml b/.github/workflows/run_notebooks.yml index fc5b4fab91a..8f5c194762a 100644 --- a/.github/workflows/run_notebooks.yml +++ b/.github/workflows/run_notebooks.yml @@ -1,5 +1,5 @@ -name: '๐Ÿ“ Run Documentation Notebooks' - +name: '๐Ÿ““ Validate Documentation Notebooks' +run-name: 'Test notebooks in ${{ inputs.working-directory }}' on: workflow_dispatch: inputs: diff --git a/.github/workflows/scheduled_test.yml b/.github/workflows/scheduled_test.yml index 99662af8f0f..6048d8c6af0 100644 --- a/.github/workflows/scheduled_test.yml +++ b/.github/workflows/scheduled_test.yml @@ -1,4 +1,5 @@ name: 'โฐ Scheduled Integration Tests' +run-name: 'Run Integration Tests' on: workflow_dispatch: # Allows maintainers to trigger the workflow manually in GitHub UI @@ -161,7 +162,7 @@ jobs: - name: '๐Ÿงน Clean up External Libraries' # Clean up external libraries to avoid affecting git status check - run: | + run: | rm -rf \ langchain/libs/partners/google-genai \ langchain/libs/partners/google-vertexai \