10000 [Environment Variable][3/N] Use thread-safe getenv wrapper by cyyever · Pull Request #137328 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[Environment Variable][3/N] Use thread-safe getenv wrapper #137328

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

Closed
wants to merge 2 commits into from

Conversation

cyyever
Copy link
Collaborator
@cyyever cyyever commented Oct 4, 2024

@cyyever cyyever requested review from eqy and syed-ahmed as code owners October 4, 2024 01:35
Copy link
pytorch-bot bot commented Oct 4, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/137328

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 96d5575 with merge base 8486d3d (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category labels Oct 4, 2024
@cyyever cyyever marked this pull request as draft October 4, 2024 01:35
@cyyever cyyever force-pushed the env_5 branch 3 times, most recently from 621e02d to 9f65055 Compare October 4, 2024 08:32
@cyyever cyyever changed the title Env 5 [Environment Variable][3/N] Use thread-safe getenv wrapper Oct 4, 2024
@cyyever cyyever marked this pull request as ready for review October 4, 2024 10:20
@colesbury colesbury requested a review from albanD October 7, 2024 16:03
@colesbury colesbury added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Oct 7, 2024
@colesbury
Copy link
Member

These things are only thread-safe if all the calls are under the same lock and that's not likely to be the case. For example, uses of the getenv from Python or in our third-party libraries won't use this.

@cyyever
Copy link
Collaborator Author
cyyever commented Oct 7, 2024

Of course, these functions should be applied consistently across the whole code base to achieve the effects.

@cyyever
Copy link
Collaborator Author
cyyever commented Oct 9, 2024

@eqy Fixed incorrect rebase.

@cyyever
Copy link
Collaborator Author
cyyever commented Oct 11, 2024

@pytorchmergebot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 11, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@cyyever
Copy link
Collaborator Author
cyyever commented Oct 11, 2024

@pytorchmergebot merge -f "Passed before conflict"

@pytorchmergebot
Copy link
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@clee2000
Copy link
Contributor

@pytorchbot revert -m "need to revert this in order to revert #133896, please rebase and reland, sorry for the churn" -c weird

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

@cyyever your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Oct 14, 2024
…137328)"

This reverts commit 25ac565.

Reverted #137328 on behalf of https://github.com/clee2000 due to need to revert this in order to revert #133896, please rebase and reland, sorry for the churn ([comment](#137328 (comment)))
pytorchmergebot pushed a commit that referenced this pull request Oct 15, 2024
…137942)

Reland of #137328, which was reverted due to reverting a dependent PR.

Pull Request resolved: #137942
Approved by: https://github.com/eqy
jackzhxng pushed a commit that referenced this pull request Oct 16, 2024
jackzhxng pushed a commit that referenced this pull request Oct 16, 2024
…137328)"

This reverts commit 25ac565.

Reverted #137328 on behalf of https://github.com/clee2000 due to need to revert this in order to revert #133896, please rebase and reland, sorry for the churn ([comment](#137328 (comment)))
jackzhxng pushed a commit that referenced this pull request Oct 16, 2024
…137942)

Reland of #137328, which was reverted due to reverting a dependent PR.

Pull Request resolved: #137942
Approved by: https://github.com/eqy
pytorchmergebot pushed a commit that referenced this pull request Oct 20, 2024
pytorchmergebot pushed a commit that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged oncall: distributed Add this issue/PR to distributed oncall triage queue open source release notes: distributed (c10d) release notes category Reverted triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0