You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by mh...@apache.org on 2024/11/20 13:47:46 UTC
(asterixdb) 01/04: [NO ISSUE][*DB][TEST] Make Python Exception test more generic
This is an automated email from the ASF dual-hosted git repository.
mhubail pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git
commit de7fa375e7cde81e6d9990f354ce852ddc8ba9b4
Author: Ian Maxon <ia...@maxons.email>
AuthorDate: Tue Nov 5 21:31:32 2024 -0800
[NO ISSUE][*DB][TEST] Make Python Exception test more generic
The expected warning in this test is too specific. Stack trace formats are not stable
depending on python runtime. Matching the exception itself is sufficient.
Ext-ref: MB-64032
Change-Id: I58546bf69a44465c50001fc5ae90b2e9d7cbe172
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19052
Reviewed-by: Ian Maxon <im...@apache.org>
Reviewed-by: Hussain Towaileb <hu...@gmail.com>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
---
.../src/test/resources/runtimets/testsuite_it_python.xml | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_it_python.xml b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_it_python.xml
index 50795b7f07..7b92376d78 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_it_python.xml
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_it_python.xml
@@ -49,22 +49,12 @@
<output-dir compare="Clean-JSON">python_open_type_validation</output-dir>
</compilation-unit>
</test-case>
- <!-- TODO(Ian): disabling this test as it is intermittently failing as the output is dependent on the python version running on the test machine
<test-case FilePath="external-library" check-warnings="true">
<compilation-unit name="py_function_error">
<output-dir compare="Clean-JSON">py_function_error</output-dir>
- <expected-warn>ASX0201: External UDF returned exception. Returned exception was: Traceback (most recent call last):
- File "entrypoint.py", line 181, in handle_call
- result[0].append(self.next_tuple(*arg, key=self.mid))
- File "entrypoint.py", line 99, in next_tuple
- return self.wrapped_fns[key](*args)
- File "site-packages/roundtrip.py", line 32, in warning
- raise ArithmeticError("oof")
-ArithmeticError: oof
- (in line 28, at column 1)</expected-warn>
+ <expected-warn>ArithmeticError: oof</expected-warn>
</compilation-unit>
</test-case>
- -->
<test-case FilePath="external-library">
<compilation-unit name="mysentiment_twitter">
<output-dir compare="Text">mysentiment_twitter</output-dir>