I built PyTorch from source because I want to contribute to the library. Unfortunately, I can’t run
python test/run_test.py

without getting errors. I rebuilt three times inside different Anaconda environments with Python versions 3.7, 3.8 and 3.9, but there are always some errors being thrown, not necessarily the same between the builds.
My questions are these:

Should I expect all the tests to succeed? If not, how do I go about fixing them? The builds succeed without errors.
If I ran the tests, and some failed, does this still mean that ALL tests were executed, or does the test suite stop at the first test that fails?
If the answer to 2. is affirmative, i.e. all tests are run independently of whether one of them failed, am I correct in my assumption that I could run the tests once, make notes of which ones failed, then implement my changes to the codebase (e.g. to fix some issue), and re-run the tests to see if anything ELSE fails. In case only the same tests fail as before, should I then make a pull request for my changes?

I really would like to contribute, but this is the major roadblock.