pytorch / pytorch/vision

Cleanup IN_FBCODE logic

Open
#8,648 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

https://github.com/pytorch/vision/pull/8647 introduced a new way of determining whether the code is running internally. We should remove the existing

https://github.com/pytorch/vision/blob/7eb09df3901091b08882c1b6df82fcbd0b710cd3/test/common_utils.py#L29

to avoid any confusion. (That one is only used in tests).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with test/common_utils.py around line 29 and review PR 8647 to understand the replacement for internal-environment detection. Check how the existing IN_FBCODE logic is used in the test utilities, remove the obsolete logic, and run the affected test suite to confirm tests still work without it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.