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

Failing tests in tests suite #1914

Open
VRehnberg opened this issue Nov 7, 2024 · 5 comments
Open

Failing tests in tests suite #1914

VRehnberg opened this issue Nov 7, 2024 · 5 comments
Assignees

Comments

@VRehnberg
Copy link

I'm working on an easybuild recipe for installing PyTorch3D from source and encountered a handful of bugs with the test-suite in the process. I don't have time to file proper issues right now, but figured I can at least share them as is.

Bugs with patches

  1. tests/implicitron/test_config.py Bar dataclass immutable patch
  2. tests/implicitron/test_extending_orm_types.py load_blobs not positional in build method patch
  3. tests/pulsar/test_forward.py issue with 1 channel images patch

Bugs without patches

  1. tests/test_io_off.py::TestMeshOffIO::test_bad and tests/test_io_off.py::TestMeshOffIO::test_load_lumpy, error parsing file
  2. tests/test_knn.py::TestKNN::test_knn_vs_python_square_cuda, tests/test_points_alignment.py::TestICP::test_heterogeneous_inputs and tests/test_render_meshes.py::TestRenderMeshes::test_simple_sphere_elevated_camera seems flaky, probably depending on hardware used.
@VRehnberg
Copy link
Author

If I remember correctly, many tests also assumed there were multiple GPUs available, which will fail if building in single GPU jobs.

PyTorch test-suite handles this with a pytest.SkipIf https://github.com/pytorch/pytorch/blob/main/torch/testing/_internal/common_cuda.py#L17

@bottler
Copy link
Contributor

bottler commented Nov 7, 2024

The OFF problems should have been fixed yesterday by dd2a11b . The code is unfortunately dependent on the wording of numpy's exceptions which have changed. The conditional use of loadtxt seems to me the most efficient implementation of loading off files which are likely to be homogeneous.

@bottler
Copy link
Contributor

bottler commented Nov 7, 2024

This is very useful! I need to learn what easybuild is! Yes, there are some flaky tests as you mention, which we've just been leaving failing.

@bottler bottler self-assigned this Nov 7, 2024
facebook-github-bot pushed a commit that referenced this issue Nov 20, 2024
Summary:
- followup recent pyre change D63415925
- make tests remove temporary files
- weights_only=True in torch.load
- lint fixes

3 test fixes from VRehnberg in #1914
- imageio channels fix
- frozen decorator in test_config
- load_blobs positional

Reviewed By: MichaelRamamonjisoa

Differential Revision: D66162167

fbshipit-source-id: 7737e174691b62f1708443a4fae07343cec5bfeb
@bottler
Copy link
Contributor

bottler commented Nov 22, 2024

The simple fixes you suggest have now landed. Thank you for them. How much of a blocker are the other things?

@VRehnberg
Copy link
Author

Not a blocker, the related tests are skipped manually. Only impact is less test coverage to catch any actual errors with a build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants