Source: pydevd
Version: 2.9.2+ds-4
Severity: wishlist

Dear Maintainer,

The package has a ftbfs issue on riscv64 due to failed test;
```
pydevd:
FAILED tests_python/test_debugger.py::test_case_django_b - AssertionError: Ti...
FAILED 
tests_python/test_debugger.py::test_case_django_template_inherits_no_exception
FAILED tests_python/test_debugger.py::test_case_django_no_var_error - Asserti...
FAILED 
tests_python/test_debugger.py::test_case_django_no_attribute_exception_breakpoint[False]
FAILED 
tests_python/test_debugger.py::test_case_django_no_attribute_exception_breakpoint[True]
FAILED 
tests_python/test_debugger.py::test_case_django_no_attribute_exception_breakpoint_and_regular_exceptions
FAILED 
tests_python/test_debugger.py::test_case_django_invalid_template_exception_breakpoint[False]
FAILED 
tests_python/test_debugger.py::test_case_django_invalid_template_exception_breakpoint[True]
FAILED tests_python/test_debugger.py::test_attach_to_pid_no_threads[True] - A...
FAILED tests_python/test_debugger.py::test_attach_to_pid_no_threads[False] - ...
FAILED tests_python/test_debugger.py::test_attach_to_pid_halted - AssertionEr...
FAILED tests_python/test_debugger.py::test_gevent - AssertionError: TimeoutEr...
FAILED tests_python/test_debugger.py::test_gevent_show_paused_greenlets[False]
FAILED tests_python/test_debugger.py::test_gevent_remote - AssertionError: Ti...
FAILED tests_python/test_debugger_json.py::test_wait_for_attach_gevent - Asse...
FAILED 
tests_python/test_debugger_json.py::test_gevent_show_paused_greenlets[True]
FAILED 
tests_python/test_debugger_json.py::test_gevent_show_paused_greenlets[False]
FAILED tests_python/test_debugger_json.py::test_gevent_subprocess_not_python
FAILED tests_python/test_debugger_json.py::test_gevent_subprocess_python - As...
FAILED tests_python/test_debugger_json.py::test_notify_gevent - AssertionErro...
FAILED 
tests_python/test_debugger_json.py::test_case_django_no_attribute_exception_breakpoint[False]
FAILED 
tests_python/test_debugger_json.py::test_case_django_no_attribute_exception_breakpoint[True]
FAILED tests_python/test_debugger_json.py::test_case_django_line_validation
FAILED tests_python/test_debugger_json.py::test_attach_to_pid[True] - Asserti...
FAILED tests_python/test_debugger_json.py::test_attach_to_pid[False] - Assert...
FAILED tests_python/test_utilities.py::test_gevent_notify - subprocess.Called...
```

The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=pydevd&arch=riscv64&ver=2.9.2%2Bds-4&stamp=1669171281&raw=0

Although disable test to fix the issue is not better solution, but as
you said[0], the upstream only support amd64 and i386. And thanks to 
your packaging scripts it is easy to disable these cases on riscv64.:)

I have tested the patch on riscv64 hardware, so could you upload it in
next release?

Please let me know if there are any issues.

[0]: https://lists.debian.org/debian-python/2022/11/msg00060.html

-- 
Regards,
--
  Bo YU

diff -Nru pydevd-2.9.2+ds/debian/get_test_exclusions 
pydevd-2.9.2+ds/debian/get_test_exclusions
--- pydevd-2.9.2+ds/debian/get_test_exclusions  2022-11-20 19:25:23.000000000 
+0000
+++ pydevd-2.9.2+ds/debian/get_test_exclusions  2022-11-20 19:25:23.000000000 
+0000
@@ -118,6 +118,39 @@
     )
 fi
 
+# as above stated, test cases below fail on riscv64
+if [ $arch = riscv64 ]
+then
+    EXCLUDES+=(
+        tests_python/test_debugger.py::test_case_django_b
+        
tests_python/test_debugger.py::test_case_django_template_inherits_no_exception
+        tests_python/test_debugger.py::test_case_django_no_var_error
+        
tests_python/test_debugger.py::test_case_django_no_attribute_exception_breakpoint[False]
+        
tests_python/test_debugger.py::test_case_django_no_attribute_exception_breakpoint[True]
+        
tests_python/test_debugger.py::test_case_django_no_attribute_exception_breakpoint_and_regular_exceptions
+        
tests_python/test_debugger.py::test_case_django_invalid_template_exception_breakpoint[False]
+        
tests_python/test_debugger.py::test_case_django_invalid_template_exception_breakpoint[True]
+        tests_python/test_debugger.py::test_attach_to_pid_no_threads[True]
+        tests_python/test_debugger.py::test_attach_to_pid_no_threads[False]
+        tests_python/test_debugger.py::test_attach_to_pid_halted
+        tests_python/test_debugger.py::test_gevent
+        tests_python/test_debugger.py::test_gevent_show_paused_greenlets[False]
+        tests_python/test_debugger.py::test_gevent_remote
+        tests_python/test_debugger_json.py::test_wait_for_attach_gevent
+        
tests_python/test_debugger_json.py::test_gevent_show_paused_greenlets[True]
+        
tests_python/test_debugger_json.py::test_gevent_show_paused_greenlets[False]
+        tests_python/test_debugger_json.py::test_gevent_subprocess_not_python
+        tests_python/test_debugger_json.py::test_gevent_subprocess_python
+        tests_python/test_debugger_json.py::test_notify_gevent
+        
tests_python/test_debugger_json.py::test_case_django_no_attribute_exception_breakpoint[False]
+        
tests_python/test_debugger_json.py::test_case_django_no_attribute_exception_breakpoint[True]
+        tests_python/test_debugger_json.py::test_case_django_line_validation
+        tests_python/test_debugger_json.py::test_attach_to_pid[True]
+        tests_python/test_debugger_json.py::test_attach_to_pid[False]
+        tests_python/test_utilities.py::test_gevent_notify
+    )
+fi
+
 DESELECTS=()
 for test in "${EXCLUDES[@]}"
 do

Attachment: signature.asc
Description: PGP signature

Reply via email to