gradio-app/gradio

Address multiple tests failing with ./scripts/run_all_tests locally?

Closed this issue · 0 comments

  • [x ] I have searched to see if a similar issue already exists.

I have recently git cloned gradio and followed the CONTRIBUTING.md, but when I ./scripts/run_all_test.sh, a few things fail that I don't think (?) I had anything to do with.

Summary info below.
This combines things I apparently did have something to do with (following this PR: #9932) and things perhaps I didn't -- I submitted #9932 with failing tests because I could not tell what tests, if any, it had caused to fail.
Now that I see the PR, it appears failure 2,3,4 are from that (I will address), but the rest are not (?)

====================================================================================== short test summary info =======================================================================================
FAILED test/components/test_datetime.py::TestDateTime::test_component_functions - AssertionError: assert False
FAILED test/components/test_image.py::TestImage::test_component_functions - AssertionError: assert 'test/test_files/bus.png' in []
FAILED test/components/test_label.py::TestLabel::test_in_interface - IndexError: invalid index to scalar variable.
FAILED test/test_blocks.py::TestTempFile::test_no_empty_image_files - AssertionError: assert 1 == 2
FAILED test/test_external.py::TestLoadInterface::test_numerical_to_label_space - ValueError: Could not load the Space: gradio-tests/titanic-survivalv4-sse because the config could not be fetched.
FAILED test/test_external.py::TestLoadInterface::test_private_space - ValueError: Could not find Space: gradio-tests/not-actually-private-spacev4-sse. If it is a private or gated Space, please provide your Hugging Face access token (https://huggingface.co/setting...
FAILED test/test_external.py::TestLoadInterface::test_multiple_spaces_one_private - ValueError: Could not find Space: gradio-tests/not-actually-private-spacev4-sse. If it is a private or gated Space, please provide your Hugging Face access token (https://huggingface.co/setting...
FAILED test/test_external.py::TestLoadInterface::test_loading_files_via_proxy_works - ValueError: Could not find Space: gradio-tests/test-loading-examples-privatev4-sse. If it is a private or gated Space, please provide your Hugging Face access token (https://huggingface.co/sett...
FAILED test/test_external.py::TestLoadInterface::test_private_space_v4_sse_v1 - ValueError: Could not find Space: gradio-tests/not-actually-private-spacev4-sse-v1. If it is a private or gated Space, please provide your Hugging Face access token (https://huggingface.co/sett...
FAILED test/test_external.py::TestLoadInterfaceWithExamples::test_interface_with_examples - ValueError: Could not load the Space: gradio-tests/test-calculator-1v4-sse because the config could not be fetched.
FAILED test/test_helpers.py::TestProgressBar::test_progress_bar_track_tqdm - AssertionError: assert [(None, 'star...4, None), ...] == [(None, 'star...4, None), ...]
FAILED test/test_tunneling.py::test_setup_custom_tunnel - ValueError: Could not create share URL. Please check the appended log from frpc for more information:
============================================================ 12 failed, 751 passed, 3 xfailed, 347 warnings, 7 rerun in 609.32s (0:10:09) ============================================================