feat(standard-tests): forward LangSmith CI env vars to traces (#37645)

Scheduled integration runs set `LANGSMITH_TAGS` and `LANGSMITH_METADATA`
in `$GITHUB_ENV` (per #37615), but the LangSmith SDK does not read those
env vars natively, so the tags/metadata were silently dropped. A new
pytest plugin in `langchain-tests` bridges that gap by entering
`langsmith.run_helpers.tracing_context` for the duration of each
session.
This commit is contained in:
Mason Daugherty
2026-05-22 23:17:47 -05:00
committed by GitHub
parent bdd7f71a1b
commit 2638f75e13
3 changed files with 244 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ Twitter = "https://x.com/langchain_oss"
Slack = "https://www.langchain.com/join-community"
Reddit = "https://www.reddit.com/r/LangChain/"
[project.entry-points.pytest11]
langsmith_ci = "langchain_tests._langsmith_plugin"
[dependency-groups]
test = ["langchain-core>=1.4.0,<2.0.0"]
test_integration = []