Skip to content

feat(eval): pass folderKey in simulate-component API payload - #1853

Merged
AAgnihotry merged 3 commits into
mainfrom
feat/add-folder-key-to-simulate-component
Aug 11, 2026
Merged

feat(eval): pass folderKey in simulate-component API payload#1853
AAgnihotry merged 3 commits into
mainfrom
feat/add-folder-key-to-simulate-component

Conversation

@AAgnihotry

Copy link
Copy Markdown
Contributor

Summary

  • Add folderKey to the simulate-component API payload in SimulateComponentMocker, sourced from UiPathConfig.folder_key (reads UIPATH_FOLDER_KEY env var)
  • Move the UiPathConfig import to the top of the file
  • Bump uipath package version to 2.13.23

Test plan

  • Added test verifying folderKey is included in payload when UIPATH_FOLDER_KEY env var is set
  • Added test verifying folderKey is None when env var is not set
  • All 24 existing + new tests pass

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings August 10, 2026 22:07

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.

Pull request overview

This PR updates the uipath package’s eval “simulate-component” mocking flow to include folderKey in the API payload, sourcing it from UiPathConfig.folder_key (which reads UIPATH_FOLDER_KEY), and bumps the uipath package version.

Changes:

  • Add "folderKey": UiPathConfig.folder_key to the simulate-component request payload in SimulateComponentMocker.
  • Add tests covering the presence/absence of folderKey based on UIPATH_FOLDER_KEY.
  • Bump uipath version to 2.13.23 (and reflect it in uv.lock).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/uipath/src/uipath/eval/mocks/_simulate_component_mocker.py Includes folderKey in the simulate-component payload (sourced from config).
packages/uipath/tests/cli/eval/mocks/test_simulate_component.py Adds tests validating folderKey behavior with/without UIPATH_FOLDER_KEY.
packages/uipath/pyproject.toml Bumps package version to 2.13.23.
packages/uipath/uv.lock Updates locked uipath version to 2.13.23.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/uipath/tests/cli/eval/mocks/test_simulate_component.py
Comment thread packages/uipath/src/uipath/eval/mocks/_simulate_component_mocker.py
@AAgnihotry
AAgnihotry force-pushed the feat/add-folder-key-to-simulate-component branch from 30e4c86 to 4df198c Compare August 10, 2026 22:23
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime test:uipath-integrations labels Aug 10, 2026

@Chibionos Chibionos 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.

rebase and push

AAgnihotry and others added 3 commits August 10, 2026 17:09
- Add test for _get_span_context with valid OTel span (lines 150-152)
- Add test verifying log output includes traceId, parentSpanId, folderKey
- Achieves 100% coverage on _simulate_component_mocker.py

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fix mypy error: Module "opentelemetry.trace" does not explicitly export
attribute "context_api". Import context_api from opentelemetry.context
directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@AAgnihotry
AAgnihotry force-pushed the feat/add-folder-key-to-simulate-component branch from 383296d to d852962 Compare August 11, 2026 00:09
@github-actions

Copy link
Copy Markdown

🚨 Heads up: uipath-langchain cross-tests are FAILING 🚨

Your changes may break the uipath-langchain-python integration.

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

@sonarqubecloud

Copy link
Copy Markdown

@AAgnihotry
AAgnihotry merged commit a54a382 into main Aug 11, 2026
270 of 274 checks passed
@AAgnihotry
AAgnihotry deleted the feat/add-folder-key-to-simulate-component branch August 11, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants