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-723 Do not sort components when ensuring config #1443

Conversation

maximpertsov
Copy link
Contributor

JIRA: RSDK-723

@github-actions

This comment was marked as resolved.

@@ -735,9 +735,6 @@ func TestManagerNewComponent(t *testing.T) {
return resource.Name{}, false
}), test.ShouldBeNil)
robotForRemote.config.Components[8].DependsOn = append(robotForRemote.config.Components[8].DependsOn, "arm3")
_, err = config.SortComponents(robotForRemote.config.Components)
test.That(t, err, test.ShouldNotBeNil)
test.That(t, err.Error(), test.ShouldEqual, "circular dependency detected in component list between arm3, board3")
Copy link
Contributor Author

@maximpertsov maximpertsov Oct 5, 2022

Choose a reason for hiding this comment

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

we will still return a circular dependency error when we try to update the robot with this config, and this behavior is tested at the end of this test function.

@maximpertsov maximpertsov marked this pull request as ready for review October 5, 2022 23:17
@github-actions

This comment was marked as resolved.

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 if you've tested on some hardware to make sure the sorting is still actually happening

@maximpertsov maximpertsov merged commit 528ca4b into viamrobotics:main Oct 6, 2022
@maximpertsov maximpertsov deleted the RSDK-723-false-warning-when-adding-dependencies-from-components-on-a-remote-part branch October 6, 2022 15:01
@maximpertsov
Copy link
Contributor Author

lgtm if you've tested on some hardware to make sure the sorting is still actually happening

checked on a live robot and got the correct error:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants