-
Notifications
You must be signed in to change notification settings - Fork 24.2k
[Distributed][CI] Rework continuous TestCase #153653
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
base: gh/kwen2501/153/base
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/153653
Note: Links to docs will display an error until the docs builds have been completed. ❌ 10 New FailuresAs of commit 6f6d7de with merge base fa85434 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but the tests failures are real due to Python 3.10 syntax (Pytorch still supports 3.9).
# Rendezvous file | ||
rdvz_file: Optional[str] = None | ||
# timeout configured per class | ||
timeout: timedelta = timedelta(seconds=120) | ||
|
||
@classmethod | ||
@abc.abstractmethod | ||
def backend_str(cls) -> str: | ||
def backend_str(cls) -> str | None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PyTorch is still using Python 3.9, which doesn't support |
(this supports in Python 3.10)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unblock
# number of test processes | ||
world_size: int = 2 | ||
world_size: int = -2 # unset state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we changing this to -2?
|
||
@classmethod | ||
def _run_test_given_id(cls, test_id: str, **kwargs) -> None: | ||
# self.id() == e.g. '__main__.TestDistributed.TestAdditive.test_get_rank' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove?
Stack from ghstack (oldest at bottom):
Reworked
MultiProcContinousTest
to spawn processes duringsetUpClass
instead ofmain
(so that we can support multiple TestClass'es in one file).The child processes are now an infinite loop, monitoring test IDs passed from main process via a task queue. Reciprocally, the child processes inform the main process completion of a test via a completion queue.
Added a test template.
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k