Skip to content

ci: pass GATEWAY_FOLDER_KEY to the gateway-and-direct-models testcase - #1998

Merged
daniel-joica merged 1 commit into
mainfrom
ci/langchain-gateway-folder-key
Nov 17, 2026
Merged

daniel-joica merged 1 commit into
mainfrom
ci/langchain-gateway-folder-key

Conversation

@daniel-joica

Copy link
Copy Markdown
Contributor

What changed?

test-uipath-langchain.yml runs every uipath-langchain testcase against this repo's build. One of them, gateway-and-direct-models, was added in UiPath/uipath-langchain-python#1208. It checks the LLM Gateway's Model run spans in LLMOps, and it needs GATEWAY_FOLDER_KEY: the key of the folder the Gateway publishes those spans to.

This workflow didn't pass that key, so the testcase stopped at setup ("LLM Gateway span check setup failed") on every PR with the test:uipath-langchain label. Example: #1997, run 44051057273.

Changes:

  • The "Run testcase" step sets GATEWAY_FOLDER_KEY from ALPHA_GATEWAY_FOLDER_KEY, STAGING_GATEWAY_FOLDER_KEY or CLOUD_GATEWAY_FOLDER_KEY, matching the environment.
  • Only gateway-and-direct-models gets the key. Every other testcase gets an empty value, as in uipath-langchain's own workflow.
  • The key never appears in logs:
    • GitHub masks secret values in logs;
    • the testcase's setup script also masks it (::add-mask::) and never prints it.

The three secrets are already set on this repo.

How has this been tested?

This PR has the test:uipath-langchain label, so its own run includes gateway-and-direct-models on alpha, staging and cloud.

🤖 Generated with Claude Code

The uipath-langchain testcase gateway-and-direct-models (UiPath/uipath-langchain-python#1208)
needs the key of the folder the LLM Gateway publishes its spans to. Pass it from
the <ENV>_GATEWAY_FOLDER_KEY secrets, only to that testcase, as uipath-langchain's
own workflow does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@daniel-joica daniel-joica added the test:uipath-langchain Triggers tests in the uipath-langchain-python repository label Nov 17, 2026
Copilot AI balanced review requested due to automatic review settings November 17, 2026 09:16
@github-actions github-actions Bot removed the test:uipath-langchain Triggers tests in the uipath-langchain-python repository label Nov 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the gateway folder-key workflow update.

No open issues 🎉

What changed in this PR

Updates the SDK’s downstream LangChain integration-test workflow to supply the folder key required for LLM Gateway span validation.

Changes:

  • Selects GATEWAY_FOLDER_KEY from the environment-specific repository secret.
  • Passes the key only to gateway-and-direct-models; other testcases receive an empty value.
File Description
.github/​workflows/​test-uipath-langchain.yml Adds conditional gateway folder-key configuration to the testcase execution step.

Review effort: Balanced

@sonarqubecloud

Copy link
Copy Markdown

@daniel-joica
daniel-joica merged commit a08a20b into main Nov 17, 2026
171 checks passed
@daniel-joica
daniel-joica deleted the ci/langchain-gateway-folder-key branch November 17, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants