ci(infra): trace scheduled integration tests (#37615)

Wire LangSmith tracing into the scheduled integration test workflow so
partner test runs emit traces to a shared project with GitHub Actions
metadata attached. Makes failures traceable back to the originating
workflow run, sha, and matrix shard without hunting through CI logs.

## Usage
- Filter the `oss-python-integration-tests` project by the
`github-actions` tag to see only CI runs; add a `sha-<sha>` or
`working_directory=<partner>` filter to narrow to a specific commit or
partner shard.
- From a failing trace, open the `github_run_url` metadata field to jump
directly to the originating workflow run; `github_run_attempt`
disambiguates reruns.
- Tags are flat strings (good for facets); structured fields like
`python_version` and `working_directory` live in metadata for richer
querying.
This commit is contained in:
Mason Daugherty
2026-05-22 22:18:03 -05:00
committed by GitHub
parent 11cdce91dc
commit bdd7f71a1b
2 changed files with 42 additions and 1 deletions

View File

@@ -116,7 +116,7 @@ jobs:
build:
name: 📦 Build distribution
if: github.ref == 'refs/heads/master' || inputs.dangerous-nonmaster-release
environment: Scheduled testing
environment: Release
runs-on: ubuntu-latest
permissions:
contents: read
@@ -274,6 +274,7 @@ jobs:
needs:
- build
- release-notes
environment: Release
runs-on: ubuntu-latest
permissions:
contents: read
@@ -433,6 +434,7 @@ jobs:
- build
- release-notes
- pre-release-checks
environment: Release
runs-on: ubuntu-latest
permissions:
# This permission is used for trusted publishing:
@@ -475,6 +477,7 @@ jobs:
- release-notes
- test-pypi-publish
- pre-release-checks
environment: Release
runs-on: ubuntu-latest
permissions:
contents: read
@@ -638,6 +641,7 @@ jobs:
# - test-prior-published-packages-against-new-core
# Run if all needed jobs succeeded or were skipped (test-dependents only runs for core/langchain_v1)
if: ${{ !cancelled() && !failure() }}
environment: Release
runs-on: ubuntu-latest
permissions:
# This permission is used for trusted publishing:
@@ -685,6 +689,7 @@ jobs:
- publish
# Run if all needed jobs succeeded or were skipped
if: ${{ !cancelled() && !failure() }}
environment: Release
runs-on: ubuntu-latest
permissions:
# This permission is needed by `ncipollo/release-action` to