Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RSDK-8294] Use Global Connection to App in Internal Cloud Service and Local Robot #4782

Merged
merged 37 commits into from
Feb 18, 2025

Conversation

bashar-515
Copy link
Member

@bashar-515 bashar-515 commented Feb 7, 2025

The function AcquireConnection(), is directly called in two places. This PR eliminates one of said calls by ensuring all code paths that lead to the call have their own global connection that propagates down to where the function executes to replace the call. All of these paths except for one stem from either a test or code in our examples subdirectory. In many of the tests, a nil connection is sufficient. For the few where this is not true (i.e., the ones that expect to use a connection to app--determined by the existence of a "Cloud" component within the config used to define the robot being tested), a catch-all call to AcquireConnection()is made, giving the local robot its own connection to manage. This call is marked with a comment in the code.

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 7, 2025
@bashar-515 bashar-515 closed this Feb 12, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 12, 2025
@bashar-515 bashar-515 reopened this Feb 12, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 12, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 13, 2025
@viambot viambot removed the safe to test This pull request is marked safe to test from a trusted zone label Feb 13, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 18, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 18, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 18, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 18, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 18, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 18, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 18, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 18, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Feb 18, 2025
@bashar-515 bashar-515 requested a review from cheukt February 18, 2025 20:50
Copy link
Member

@cheukt cheukt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bashar-515 bashar-515 merged commit 1c8c1a3 into viamrobotics:main Feb 18, 2025
17 checks passed
@bashar-515 bashar-515 deleted the RSDK-8294 branch February 18, 2025 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants