Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: UiPath/uipath-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: UiPath/uipath-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/cli-server-env-isolation
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Mar 24, 2026

  1. fix: capture baseline env before load_dotenv in cli_server

    The server baseline was captured AFTER load_dotenv polluted os.environ,
    causing .env values from the server's startup directory to leak into
    every job's environment. Now captures a pre-dotenv snapshot in __init__.py
    and uses it as the server baseline.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    cotovanu-cristian and claude committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    48d41bc View commit details
    Browse the repository at this point in the history
  2. fix: build job env dict before swapping os.environ in cli_server

    Replace the non-atomic clear()+update(baseline)+update(job_vars) pattern
    with building the complete job env dict first, then doing a single
    clear()+update(job_env). This minimizes the window where os.environ
    is empty and visible to thread pool threads.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    cotovanu-cristian and claude committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    db91c8f View commit details
    Browse the repository at this point in the history
  3. fix: guard _ServerState.init() with threading lock

    Prevent race condition where concurrent coroutines calling init() could
    create separate asyncio.Lock instances, breaking job serialization.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    cotovanu-cristian and claude committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    fb29053 View commit details
    Browse the repository at this point in the history
Loading