• 
      

    Fix issues when running rbt commands outside of a repository with TREES.

    Review Request #14396 — Created April 4, 2025 and submitted

    Information

    RBTools
    release-5.x

    Reviewers

    When running some rbt commands outside of a repository (such as
    rbt api-get or rbt patch --print) and using the TREES
    configuration to define the server URL, rbtools would exit with a
    message about being unable to find a repository. This was a regression
    caused by the previous fix in 5.2 to allow these commands to use TREES.

    This fix plumbs through the tool_required flag to
    scan_usable_client, making it so we don't exit if we don't find a tool
    at all.

    • Ran unit tests.
    • Was able to successfully use rbt patch --print, rbt patch --write,
      and rbt api-get outside of any source tree when using TREES to
      define the server URL.
    • Verified that TREES still worked as expected.
    Summary ID
    Fix issues when running rbt commands outside of a repository with TREES.
    When running some rbt commands outside of a repository (such as `rbt api-get` or `rbt patch --print`) and using the `TREES` configuration to define the server URL, rbtools would exit with a message about being unable to find a repository. This was a regression caused by the previous fix in 5.2 to allow these commands to use TREES. This fix plumbs through the `tool_required` flag to `scan_usable_client`, making it so we don't exit if we don't find a tool at all. Testing Done: - Ran unit tests. - Was able to successfully use `rbt patch --print`, `rbt patch --write`, and `rbt api-get` outside of any source tree when using `TREES` to define the server URL. - Verified that `TREES` still worked as expected.
    d9e58384a399fab76e63108e1f971d336ac0065f
    Description From Last Updated

    Can you verify in testing that TREES otherwise is working as expected for other uses?

    chipx86chipx86

    This should be :rbtconfig:

    chipx86chipx86

    We can probably skip the last sentence. The summary states we fix it already.

    chipx86chipx86
    maubin
    1. Ship It!
    2. 
        
    chipx86
    1. 
        
    2. Show all issues

      Can you verify in testing that TREES otherwise is working as expected for other uses?

    3. docs/releasenotes/5.2.1.rst (Diff revision 1)
       
       
      Show all issues

      This should be :rbtconfig:

    4. docs/releasenotes/5.2.1.rst (Diff revision 1)
       
       
      Show all issues

      We can probably skip the last sentence. The summary states we fix it already.

    5. 
        
    david
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-5.x (8ff4f39)