Skip to content

feat: read the resource overwrites a debug job carries before asking Studio Web [SW-34914] - #2028

Open
ciprian-paraschivescu wants to merge 6 commits into
mainfrom
feat/debug-job-resource-overwrites
Open

ciprian-paraschivescu wants to merge 6 commits into
mainfrom
feat/debug-job-resource-overwrites

Conversation

@ciprian-paraschivescu

@ciprian-paraschivescu ciprian-paraschivescu commented Nov 25, 2026 •

Copy link
Copy Markdown

Summary

On a debug, StudioClient.get_resource_overwrites() posts the project's bindings file to Studio Web and gets the resource overwrites back. Studio Web can now put the same list in the debug job (https://github.com/UiPath/StudioWeb/pull/24164, behind a flag that is empty by default). With this change the list in the job is used when it is there, and Studio Web is asked only when it is not.

  • UiPathConfig.debug_resource_overwrites reads fpsProperties from the config file: resourceOverwrites of debug.executor, or else of this project's entry (UIPATH_PROJECT_ID) in debug.master.processes[].executorInfo.
  • get_resource_overwrites() returns that list when it holds anything, with no request. The parsing is shared with the response of the request.
  • The list in the job is used only for the project's own bindings. For every binding of the project's bindings.json that Studio Web resolves (a solution binding with a key and a value that is not an expression; Property, TimeTrigger, AppsTrigger and IXP bindings get no overwrite), the list must hold a complete entry <resource>.<key>: a name and a folder path, or a connection id for a connection. Those entries, and only those, are used. The rule mirrors the Solutions SDK. Studio Web resolves each project's own bindings file for the list in https://github.com/UiPath/StudioWeb/pull/24589.
  • An entry for anything else, such as a resource the project does not bind, is left out, as the endpoint leaves it out. A list keyed any other way, for example by resource name, is not used. A project with no bindings.json gets no overwrites from the job, as it gets none today.
  • A job with no list, an empty one, data that is not a JSON object, or a list that does not cover the project behaves as before: the request to Studio Web is sent.
  • The kinds in the job's list are matched whatever their case: Studio Web resolves one list for every runtime of the solution and writes a connection as Connection.<key>, where this SDK looks up connection.<key>. An entry already in this SDK's spelling wins. The response of the request is not respelled.
  • Versions: uipath-platform 0.3.24, uipath 2.15.16, with the lower bound on uipath-platform raised.

Checked on alpha

Debugged from Studio Web on alpha's cloud runtime on 2026-12-03, with the dev build of commit f82dff9 (uipath 2.15.16.dev1020288266, uipath-platform 0.3.24.dev1020288266). Two projects, each with one queue binding in bindings.json and a call to queues.create_item_async: a coded agent (LangGraph) and a coded function. The source of the overwrites was read from each job's Orchestrator logs.

Run Studio Web Flag Overwrites come from binding-overwrites request Binding resolves
1 alpha empty Studio Web, as today sent yes
2 alpha project type listed Studio Web, after the job's list is refused sent yes
3 local build of UiPath/StudioWeb#24589 on alpha's backend project type listed the debug job not sent yes

The agent and the function gave the same three results.

  • Run 2 logs The resource overwrites the debug job carries do not cover the project's bindings; asking Studio for them. Alpha's Studio Web still keys the job's list by resource name (queue.<name>), while the binding's key in a Python project is <name>.<folder>, so the list is refused and Studio Web is asked. This also shows the SDK finds the list where a real agent job and a real function job carry it.
  • Run 3 logs Resource overwrites carried by the debug job (1 entries) under the binding's own key, and the job's log has no request to Studio Web. For the function, alpha's telemetry also shows no GetBindingOverwrites request for the solution during the run.
  • The overwrite is the same in all three runs: same key, name and folder.

Not verified

  • A connection binding on a real debug job. Only queue bindings were run. Studio Web builds a connection entry with the Solutions SDK, which always writes ConnectionId and folderKey (an empty string when the resource has none), so it parses. Checked in the SDK source and in the tests only.
  • The commit after the alpha runs. 14a30e8 (the review fixes: the first of two respelled entries wins and the dropped one is logged; the test fixture ignores UIPATH_CONFIG_PATH) was not run on alpha. Its tests pass.

Test plan

  • pytest tests/common/test_config_env_vars.py in uipath-platform and pytest tests/cli/test_studio_project_overwrites.py in uipath: pass
  • ruff check, ruff format --check and mypy on the changed files: clean
  • Debug an agent from Studio Web with the flag set: no binding-overwrites request, and the resources resolve (run 3 above; needs UiPath/StudioWeb#24589 in Studio Web)
  • The same with the flag empty: the request is sent, as today (run 1 above)

Ticket: SW-34914

🤖 Generated with Claude Code

Development Packages

uipath

[project]
dependencies = [
  # Exact version (copy-paste ready):
  "uipath==2.15.16.dev1020288267",

  # Any version from this PR (uncomment to use a range instead):
  # "uipath>=2.15.16.dev1020280000,<2.15.16.dev1020290000",
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }
uipath-platform = { index = "testpypi" }

[tool.uv]
override-dependencies = ["uipath-platform==0.3.24.dev1020288267"]

uipath-platform

[project]
dependencies = [
  # Exact version (copy-paste ready):
  "uipath-platform==0.3.24.dev1020288267",

  # Any version from this PR (uncomment to use a range instead):
  # "uipath-platform>=0.3.24.dev1020280000,<0.3.24.dev1020290000",
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-platform = { index = "testpypi" }

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime test:uipath-integrations labels Nov 25, 2026
@ciprian-paraschivescu
ciprian-paraschivescu force-pushed the feat/debug-job-resource-overwrites branch from 0661b7d to 62da544 Compare December 2, 2026 12:09
@ciprian-paraschivescu ciprian-paraschivescu changed the title feat: read the resource overwrites a debug job carries before asking Studio Web feat: read the resource overwrites a debug job carries before asking Studio Web [SW-34914] Dec 2, 2026
@ciprian-paraschivescu
ciprian-paraschivescu marked this pull request as ready for review December 2, 2026 14:31
Copilot AI balanced review requested due to automatic review settings December 2, 2026 14:31

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.

🔵 Needs a closer look

The fast path relies on unverified cross-service payload contracts, requiring real Studio Web agent-debug validation of flag-on resource resolution without binding-overwrites requests and flag-off fallback.

No open issues 🎉

What changed in this PR

Uses resource overwrites carried by debug jobs to avoid unnecessary Studio Web requests, while preserving the existing fallback.

Changes:

  • Reads overwrites from debug executor or project-specific master configuration.
  • Normalizes job-provided resource kinds and shares parsing with Studio responses.
  • Adds regression tests and bumps uipath to 2.15.16 and uipath-platform to 0.3.23.
File Description
packages/​uipath/​uv.lock Updates local package versions.
packages/​uipath/​tests/​cli/​test_studio_project_overwrites.py Tests job overwrites, normalization, and fallback.
packages/​uipath/​src/​uipath/​_cli/​_utils/​_studio_project.py Prefers job overwrites and shares parsing.
packages/​uipath/​pyproject.toml Bumps SDK version and platform dependency minimum.
packages/​uipath-platform/​uv.lock Updates platform package version.
packages/​uipath-platform/​tests/​common/​test_resource_override.py Tests resource-kind normalization.
packages/​uipath-platform/​tests/​common/​test_config_env_vars.py Tests configuration extraction and invalid-data handling.
packages/​uipath-platform/​src/​uipath/​platform/​common/​_config.py Extracts overwrites from debug configuration.
packages/​uipath-platform/​src/​uipath/​platform/​common/​_bindings.py Adds resource-kind case normalization.
packages/​uipath-platform/​pyproject.toml Bumps platform version.

Review effort: Balanced

ciprian-paraschivescu and others added 2 commits December 3, 2026 13:30
…he project's own bindings

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@radu-mocanu radu-mocanu added the build:dev Create a dev build from the pr label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

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

Your changes may break one or more integrations in uipath-integrations-python:

  • uipath-openai-agents
  • uipath-google-adk
  • uipath-agent-framework
  • uipath-llamaindex
  • uipath-pydantic-ai

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

🔍 Inspect the failed run →

@github-actions

github-actions Bot commented Dec 3, 2026

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 →

…PATH_CONFIG_PATH in the debug job tests

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr 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