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

Automatically apply fixes to hosts file #8173

Merged
merged 8 commits into from
Oct 26, 2023
Merged

Automatically apply fixes to hosts file #8173

merged 8 commits into from
Oct 26, 2023

Conversation

yashgorana
Copy link
Contributor

@yashgorana yashgorana commented Oct 17, 2023

Description

Relates to https://github.com/OpenMined/Heartbeat/issues/780

Affected Dependencies

List any dependencies that are required for this change.

How has this been tested?

  • Describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • List any relevant details for your test configuration.

Checklist

tox.ini Show resolved Hide resolved
@yashgorana yashgorana enabled auto-merge October 26, 2023 06:26
scripts/patch_hosts.py Outdated Show resolved Hide resolved
return ctypes.windll.shell32.IsUserAnAdmin() == 1


def wsl2_disable_auto_hosts() -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q: Yash , could you remind me again, on why we remove this?

changedir = {toxinidir}/packages/grid
description = Start local Kubernetes registry & cluster with k3d
changedir = {toxinidir}
passenv=*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q: Why do we pass in all the environment variables?

[testenv:dev.k8s.info]
description = Gather info about the localKubernetes cluster
passenv=HOME, USER
ignore_errors = True
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q: Why do we ignore errors at this place?

description = Destroy both local Kubernetes cluster and registry
changedir = {toxinidir}
passenv=HOME, USER
ignore_errors=True
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q: Why do we ignore error at this place?

Copy link
Collaborator

@rasswanth-s rasswanth-s left a comment

Choose a reason for hiding this comment

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

Great work @yashgorana , left only some questions

@yashgorana yashgorana merged commit df1a184 into dev Oct 26, 2023
27 checks passed
@yashgorana yashgorana deleted the yash/hosts-patch branch October 26, 2023 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants