abrt / satyr

Automatic problem management with anonymous reports
GNU General Public License v2.0
19 stars 22 forks source link

0.30: test suite is failing #299

Closed kloczek closed 4 years ago

kloczek commented 4 years ago

Also as you can see below version reported by test suite is wrong (satyr 0.29)

+ cd satyr-0.30
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 check
Making check in lib
/usr/bin/make  check-am
Making check in python
Making check in .
make[2]: Nothing to be done for 'check-am'.
Making check in doc
make[2]: Nothing to be done for 'check'.
Making check in tests
/usr/bin/make  atconfig atlocal ./testsuite
make[2]: 'atconfig' is up to date.
make[2]: 'atlocal' is up to date.
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/satyr-0.30/tests'
{ \
             echo '# Signature of the current package.' && \
             echo 'm4_define([AT_PACKAGE_NAME],' && \
             echo '  [satyr])' && \
             echo 'm4_define([AT_PACKAGE_TARNAME],' && \
             echo '  [satyr])' && \
             echo 'm4_define([AT_PACKAGE_VERSION],' && \
             echo '  [0.29])' && \
             echo 'm4_define([AT_PACKAGE_STRING],' && \
             echo '  [satyr 0.29])' && \
             echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \
             echo '  [crash-catcher@fedorahosted.org])'; \
             echo 'm4_define([AT_PACKAGE_URL],' && \
             echo '  [])'; \
} >'package.m4'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/satyr-0.30/tests'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/satyr-0.30/tests'
/bin/sh /home/tkloczko/rpmbuild/BUILD/satyr-0.30/missing autom4te --language=autotest -I '.' -o testsuite.tmp testsuite.at
mv testsuite.tmp testsuite
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/satyr-0.30/tests'
/usr/bin/make  check-local
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/satyr-0.30/tests'
/bin/sh './testsuite'
## ---------------------- ##
## satyr 0.29 test suite. ##
## ---------------------- ##

Utils

  1: sr_strcmp0                                      ok
  2: sr_strchr_location                              ok
  3: sr_strstr_location                              ok
  4: sr_strspn_location                              ok
  5: sr_skip_char                                    ok
  6: sr_skip_char_limited                            ok
  7: sr_parse_char_limited                           ok
  8: sr_skip_char_sequence                           ok
  9: sr_skip_char_span                               ok
 10: sr_skip_char_span_location                      ok
 11: sr_parse_char_span                              ok
 12: sr_parse_char_cspan                             ok
 13: sr_skip_string                                  ok
 14: sr_parse_string                                 ok
 15: sr_skip_uint                                    ok
 16: sr_parse_uint32                                 ok
 17: sr_skip_hexadecimal_0xuint                      ok
 18: sr_parse_hexadecimal_0xuint64                   ok
 19: sr_indent                                       ok
 20: sr_struniq                                      ok
 21: sr_demangle_symbol                              ok

String buffer

 22: sr_strbuf_append_char                           ok
 23: sr_strbuf_append_str                            ok

GDB frames

 24: sr_gdb_frame_dup                                ok
 25: sr_gdb_frame_parse_frame_start                  ok
 26: sr_gdb_frame_parseadd_operator                  ok
 27: sr_gdb_frame_parse_function_name                ok
 28: sr_gdb_frame_parse_function_name_template_args  ok
 29: sr_gdb_frame_skip_function_args                 ok
 30: sr_gdb_frame_parse_function_call                ok
 31: sr_gdb_frame_parse_address_in_function          ok
 32: sr_gdb_frame_parse_file_location                ok
 33: sr_gdb_frame_parse_header                       ok
 34: sr_gdb_frame_parse                              ok

GDB threads

 35: sr_gdb_thread_remove_frame                      ok
 36: sr_gdb_thread_remove_frames_above               ok
 37: sr_gdb_thread_remove_frames_below_n             ok
 38: sr_gdb_thread_parse                             ok
 39: sr_gdb_thread_parse-locations                   ok
 40: sr_gdb_thread_parse_lwp                         ok

GDB stacktraces

 41: sr_gdb_stacktrace_remove_threads_except_one     ok
 42: sr_gdb_stacktrace_find_crash_thread             ok
 43: sr_gdb_stacktrace_limit_frame_depth             ok
 44: sr_gdb_stacktrace_quality_complex               ok
 45: sr_gdb_stacktrace_get_crash_frame               ok
 46: sr_gdb_stacktrace_parse_no_thread_header        ok
 47: sr_gdb_stacktrace_parse_ppc64                   ok

GDB sharedlib

 48: sr_gdb_sharedlib_parse                          ok
 49: sr_gdb_sharedlib_count                          ok
 50: sr_gdb_sharedlib_append                         ok
 51: sr_gdb_sharedlib_find_address                   ok

Java frames

 52: sr_java_frame_cmp                               ok
 53: sr_java_frame_dup                               ok
 54: sr_java_frame_append_to_str                     ok
 55: sr_java_frame_parse                             ok
 56: sr_java_frame_parse_exception                   ok

Java threads

 57: sr_java_thread_cmp                              ok
 58: sr_java_thread_dup                              ok
 59: sr_java_thread_remove_frame                     ok
 60: sr_java_thread_remove_frames_above              ok
 61: sr_java_thread_remove_frames_below_n            ok
 62: sr_java_thread_parse                            ok

Java stacktrace

 63: sr_java_stacktrace_cmp                          ok
 64: sr_java_stacktrace_dup                          ok
 65: sr_java_stacktrace_parse                        ok
 66: sr_java_stacktrace_reason                       ok

Kerneloops frames

 67: sr_koops_skip_timestamp                         ok
 68: sr_koops_parse_address                          ok
 69: sr_koops_parse_module_name                      ok
 70: sr_koops_parse_function                         ok
 71: sr_koops_frame_parse                            ok
 72: sr_koops_frame_to_json                          ok

Kerneloops stacktraces

 73: sr_koops_stacktrace_parse_modules               ok
 74: sr_koops_stacktrace_parse                       ok
 75: sr_koops_stacktrace_to_json                     ok
 76: sr_thread_get_duphash                           ok
 77: sr_koops_stacktrace_get_reason                  ok

Core frames

 78: sr_core_frame_dup                               ok
 79: sr_core_frame_to_json                           ok
 80: sr_core_frame_abstract_functions                ok

Core threads

 81: sr_core_thread_to_json                          ok
 82: sr_core_thread_abstract_functions               ok

Core stacktraces

 83: sr_core_stacktrace_to_json                      ok
 84: sr_core_stacktrace_from_json                    ok
 85: sr_core_stacktrace_from_gdb_limit               FAILED (core_stacktrace.at:205)

Ruby frames

 86: sr_ruby_frame_parse                             ok
 87: sr_ruby_frame_cmp                               ok
 88: sr_ruby_frame_dup                               ok
 89: sr_ruby_frame_append                            ok
 90: sr_ruby_frame_to_json                           ok
 91: sr_ruby_frame_from_json                         ok
 92: sr_ruby_frame_append_to_str                     ok
 93: sr_ruby_frame_generic_functions                 ok

Ruby stacktrace

 94: sr_ruby_stacktrace_parse                        ok
 95: sr_ruby_stacktrace_dup                          ok
 96: sr_ruby_stacktrace_get_reason                   ok
 97: sr_ruby_stacktrace_to_json                      ok
 98: sr_ruby_stacktrace_from_json                    ok

JavaScript platform

 99: sr_js_engine_to_string                          ok
100: sr_js_engine_from_string                        ok
101: sr_js_runtime_to_string                         ok
102: sr_js_runtime_from_string                       ok
103: sr_js_platform_basics                           ok
104: sr_js_platform_from_string                      ok
105: sr_js_platform_to_json                          ok
106: sr_js_platform_from_json                        ok
107: sr_js_platform_parse_frame                      ok

JavaScript frames

108: sr_js_frame_parse_v8                            ok
109: sr_js_frame_cmp                                 ok
110: sr_js_frame_cmp_distance                        ok
111: sr_js_frame_dup                                 ok
112: sr_js_frame_append                              ok
113: sr_js_frame_to_json                             ok
114: sr_js_frame_from_json                           ok
115: sr_js_frame_append_to_str                       ok
116: sr_js_frame_generic_functions                   ok

JavaScript stacktrace

117: sr_js_stacktrace_parse_v8                       ok
118: sr_js_stacktrace_dup                            ok
119: sr_js_stacktrace_get_reason                     ok
120: sr_js_stacktrace_to_json                        ok
121: sr_js_stacktrace_from_json                      ok

Operating system

122: sr_operating_system_parse_etc_system_release    ok
123: sr_operating_system_parse_etc_os_release        ok

Normalization

124: sr_normalize_gdb_thread_removes_zeroes          ok
125: sr_normalize_gdb_thread                         ok
126: sr_normalize_gdb_paired_unknown_function_names  ok
127: sr_normalize_gdb_thread_jvm_frames              ok

Metrics

128: metrics_all_one_thread_empty                    ok
129: metrics_all_both_threads_empty                  ok
130: metrics_all_both_starting_??_levendistance3_a   ok
131: metrics_all_both_starting_??_levendistance3_b   ok
132: metrics_levenshtein_random_??_levendistance0_a  ok
133: metrics_levenshtein_random_??_levendistance0_b  ok
134: metrics_levenshtein_random_??_distance1         ok
135: metrics_levenshtein_random_??_distance2_a       ok
136: metrics_levenshtein_random_??_distance2_b       ok
137: metrics_levenshtein_random_??_distance2_c       ok
138: metrics_levenshtein_trans_??_distance2_a        ok
139: metrics_levenshtein_trans_??_distance2_b        ok
140: metrics_levenshtein_swap_trans_distance2_a      ok
141: metrics_levenshtein_swap_notrans_distance3_a    ok
142: metrics_jaccard_random_??_distance0_a           ok
143: metrics_jaccard_random_??_distance23_a          ok
144: metrics_jaccard_random_??_distance35            ok
145: distances_basic_properties                      ok
146: distances_threads_compare                       ok
147: distances_part_divide                           ok
148: distances_part_conquer                          ok

Clustering

149: sr_distances_cluster_objects                    ok
150: sr_dendrogram_cut                               ok

RPM

151: sr_rpm_package_parse_nvr                        ok
152: sr_rpm_package_parse_nevra                      ok
153: sr_rpm_package_uniq                             ok
154: sr_rpm_package_uniq3                            ok

ABRT

155: sr_abrt_parse_dso_list                          ok

Report

156: sr_report_type_to_string                        ok
157: sr_report_type_from_string                      ok
158: sr_report_add_auth                              ok
159: sr_abrt_report_from_dir                         ok

BINDINGS

160: python3_bindings_for_misc                       ok
161: python3_bindings_for_gdb                        ok
162: python3_bindings_for_koops                      ok
163: python3_bindings_for_python                     ok
164: python3_bindings_for_java                       ok
165: python3_bindings_for_javascript                 ok
166: python3_bindings_for_core                       ok
167: python3_bindings_for_ruby                       ok
168: python3_bindings_for_metrics                    ok
169: python3_bindings_for_report                     ok

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: All 169 tests were run,
1 failed unexpectedly.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

Please send `tests/testsuite.log' and all information you think might help:

   To: <crash-catcher@fedorahosted.org>
   Subject: [satyr 0.29] testsuite: 85 failed

You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point.  Its output may
be found below `tests/testsuite.dir'.

make[2]: *** [Makefile:545: check-local] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/satyr-0.30/tests'
make[1]: *** [Makefile:404: check-am] Error 2
make: *** [Makefile:671: check-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.PeR8uY (%check)
ernestask commented 4 years ago

I’ll need more details here; where did you get the sources?

ernestask commented 4 years ago

What we have in the Fedora lookaside cache is necessarily a tarball generated from the dist target. The tagged commit also has nothing that references the older version.

kloczek commented 4 years ago

I'm not using Fedora.

I';m using tagged tar ball https://github.com/abrt/satyr/archive/0.26.tar.gz + patch which dissabllows regenerate ac/am/lt files by use git versioning.

--- a/configure.ac~     2019-10-11 12:17:15.000000000 +0100
+++ b/configure.ac      2019-11-21 13:01:29.608177236 +0000
@@ -1,4 +1,4 @@
-AC_INIT([satyr], m4_esyscmd([cat ./satyr-version]), [crash-catcher@fedorahosted.org])
+AC_INIT([satyr], [0.29], [crash-catcher@fedorahosted.org])
 AC_CANONICAL_TARGET
 AC_CONFIG_HEADERS([lib/config.h])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])

Cannot find in am files what dist/distchech targets adds to packad source tree to add that fragment to my build procedure on top of tagged tar ball (can you point on that?).

If some files are needed for test suite why they are not part of the git repo?

kloczek commented 4 years ago

OK .. I see that wrong version reported by test suite is caused by not updated my patch :P