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

Allow disabling the guard dog #23316

Closed
wants to merge 2 commits into from
Closed

Allow disabling the guard dog #23316

wants to merge 2 commits into from

Conversation

jpsim
Copy link
Contributor

@jpsim jpsim commented Sep 29, 2022

Commit Message: Allow disabling the guard dog
Additional Description: Which Envoy Mobile should never enable, because terminating the Envoy process would mean terminating the host iOS or Android app. See envoyproxy/envoy-mobile#2581 for more details.
Risk Level: Low, compile-time flag, no-op by default.
Testing: Building Envoy Mobile locally.
Docs Changes: None.
Release Notes: None.
Platform Specific Features: Will be disabled when building Envoy Mobile.
Fixes: envoyproxy/envoy-mobile#2581

Signed-off-by: JP Simard [email protected]

Which Envoy Mobile should never enable, because terminating the Envoy
process would mean terminating the host iOS or Android app.

Signed-off-by: JP Simard <[email protected]>
@repokitteh-read-only
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #23316 was opened by jpsim.

see: more, trace.

@jpsim jpsim marked this pull request as ready for review September 29, 2022 19:56
@jpsim
Copy link
Contributor Author

jpsim commented Sep 29, 2022

As discussed in today's Envoy Mobile community call. /cc @alyssawilk @RyanTheOptimist

Thanks @Reflejo for flagging this.

@jpsim
Copy link
Contributor Author

jpsim commented Sep 29, 2022

Testing in Envoy Mobile:

# Before
$ ./bazelw build --config=ios //examples/swift/async_await:app
$ nm Payload/app.app/app | grep GuardDogImpl | wc -l
641
# After
$ ./bazelw build --config=ios //examples/swift/async_await:app
$ nm Payload/app.app/app | grep GuardDogImpl | wc -l
0

Signed-off-by: JP Simard <[email protected]>
@jpsim jpsim marked this pull request as draft September 29, 2022 20:32
@jpsim
Copy link
Contributor Author

jpsim commented Sep 29, 2022

Hmmm, I think the watch dog is currently responsible for actually running the main dispatch loop, so to disable it I'll actually need to run the main dispatch loop some other way.

I've marked this PR as being a draft until I can do that.

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Oct 30, 2022
@github-actions
Copy link

github-actions bot commented Nov 6, 2022

This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot closed this Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale stalebot believes this issue/PR has not been touched recently
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable GuardDogImpl
1 participant