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-7562] Add enablewebprofile to robot config #3934

Merged
merged 5 commits into from
May 29, 2024

Conversation

ale7714
Copy link
Member

@ale7714 ale7714 commented May 9, 2024

Proto update here viamrobotics/api#497

@ale7714 ale7714 requested a review from a team May 9, 2024 21:21
@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label May 9, 2024
@cheukt
Copy link
Member

cheukt commented May 10, 2024

should we not just put the rest of the rdk changes in here too? so can test the flow end to end

@ale7714 ale7714 removed the request for review from a team May 23, 2024 20:56
@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 May 28, 2024
@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 May 28, 2024
@ale7714 ale7714 requested a review from a team May 28, 2024 20:04
@ale7714
Copy link
Member Author

ale7714 commented May 28, 2024

This is finally ready for review.

App side for the config change https://github.com/viamrobotics/app/pull/4845

@ale7714 ale7714 changed the title [RSDK-7561] Add enablewebprofile to robot config [RSDK-7562] Add enablewebprofile to robot config May 28, 2024
Copy link
Member

@benjirewis benjirewis left a comment

Choose a reason for hiding this comment

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

LGTM; just a question about -webprofile and JSON combinations.

@@ -195,7 +195,7 @@ func (s *robotServer) createWebOptions(cfg *config.Config) (weboptions.Options,
if err != nil {
return weboptions.Options{}, err
}
options.Pprof = s.args.WebProfile
options.Pprof = s.args.WebProfile || cfg.EnableWebProfile
Copy link
Member

Choose a reason for hiding this comment

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

[q] So if we run the RDK with -webprofile and put enable_webprofile: false in the JSON config, the web profile will still be enabled?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes that's how it currently behaves. I think that behavior makes sense as in if I add the flag explicitly I expected to just work. Happy to change it if we end up finding this to be confusing.

Copy link
Member

Choose a reason for hiding this comment

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

Cool; thanks! I think what you have now makes sense 👍🏻.

@ale7714 ale7714 merged commit b2716c1 into viamrobotics:main May 29, 2024
17 checks passed
@ale7714 ale7714 deleted the RSDK-7561 branch May 29, 2024 18:01
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