Repository navigation
feat: read the resource overwrites a debug job carries before asking Studio Web [SW-34914] - #2028
ciprian-paraschivescu wants to merge 6 commits into
Conversation
0661b7d to
62da544
Compare
There was a problem hiding this comment.
🔵 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
uipathto 2.15.16 anduipath-platformto 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
…Studio Web Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
62da544 to
6aed218
Compare
… project's bindings Co-Authored-By: Claude Fable 5.2 <[email protected]>
…he project's own bindings Co-Authored-By: Claude Fable 5.2 <[email protected]>
🚨 Heads up:
|
🚨 Heads up:
|
…PATH_CONFIG_PATH in the debug job tests Co-Authored-By: Claude Fable 5.2 <[email protected]>
|



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_overwritesreadsfpsPropertiesfrom the config file:resourceOverwritesofdebug.executor, or else of this project's entry (UIPATH_PROJECT_ID) indebug.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.bindings.jsonthat Studio Web resolves (a solution binding with a key and a value that is not an expression;Property,TimeTrigger,AppsTriggerandIXPbindings 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.bindings.jsongets no overwrites from the job, as it gets none today.Connection.<key>, where this SDK looks upconnection.<key>. An entry already in this SDK's spelling wins. The response of the request is not respelled.uipath-platform0.3.24,uipath2.15.16, with the lower bound onuipath-platformraised.Checked on alpha
Debugged from Studio Web on alpha's cloud runtime on 2026-12-03, with the dev build of commit f82dff9 (
uipath2.15.16.dev1020288266,uipath-platform0.3.24.dev1020288266). Two projects, each with one queue binding inbindings.jsonand a call toqueues.create_item_async: a coded agent (LangGraph) and a coded function. The source of the overwrites was read from each job's Orchestrator logs.binding-overwritesrequestThe agent and the function gave the same three results.
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.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 noGetBindingOverwritesrequest for the solution during the run.Not verified
ConnectionIdandfolderKey(an empty string when the resource has none), so it parses. Checked in the SDK source and in the tests only.UIPATH_CONFIG_PATH) was not run on alpha. Its tests pass.Test plan
pytest tests/common/test_config_env_vars.pyinuipath-platformandpytest tests/cli/test_studio_project_overwrites.pyinuipath: passruff check,ruff format --checkandmypyon the changed files: cleanbinding-overwritesrequest, and the resources resolve (run 3 above; needs UiPath/StudioWeb#24589 in Studio Web)Ticket: SW-34914
🤖 Generated with Claude Code
Development Packages
uipath
uipath-platform