[Bug 543555] New: test_parse_rrdtool_output fails
http://bugzilla.novell.com/show_bug.cgi?id=543555 Summary: test_parse_rrdtool_output fails Classification: openSUSE Product: openSUSE 11.2 Version: Milestone 8 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: WebYaST AssignedTo: schubi@novell.com ReportedBy: kkaempf@novell.com QAContact: qa@suse.de CC: bgeuken@novell.com Found By: Development 1) Failure: test_parse_rrdtool_output(MetricTest) [/test/unit/metric_test.rb:109:in `test_parse_rrdtool_output' activesupport (2.3.4) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' activesupport (2.3.4) lib/active_support/testing/setup_and_teardown.rb:62:in `run']: <"<?xml version=\"1.0\" encoding=\"UTF-8\"?> <metric> <id>myhost*domain*de+interface+packets</id> <identifier>myhost.domain.de/interface/packets</identifier> <host>myhost.domain.de</host> <plugin>interface</plugin> <plugin_instance></plugin_instance> <type>packets</type> <type_instance></type_instance> <data start=\"1252075500\" interval=\"10\" column=\"tx\"> <value>7.79</value> <value>61.66</value> <value>159.22</value> <value>425.76</value> <value></value> <value></value> </data> <data start=\"1252075500\" interval=\"10\" column=\"rx\"> <value>22.15</value> <value>258.14</value> <value>339.62</value> <value>280.69</value> <value></value> <value></value> </data> </metric>"> expected but was <"<?xml version=\"1.0\" encoding=\"UTF-8\"?> <metric> <id>myhost*domain*de+interface+packets</id> <identifier>myhost.domain.de/interface/packets</identifier> <host>myhost.domain.de</host> <plugin>interface</plugin> <plugin_instance></plugin_instance> <type>packets</type> <type_instance></type_instance> <data interval=\"10\" start=\"1252075500\" column=\"tx\"> <value>7.79</value> <value>61.66</value> <value>159.22</value> <value>425.76</value> <value></value> <value></value> </data> <data interval=\"10\" start=\"1252075500\" column=\"rx\"> <value>22.15</value> <value>258.14</value> <value>339.62</value> <value>280.69</value> <value></value> <value></value> </data> </metric>">. (XML formatting done by reporter) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=543555 User kkaempf@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=543555#c1 --- Comment #1 from Klaus Kämpf <kkaempf@novell.com> 2009-10-01 11:01:32 MDT --- Argh, its a string compare and the interval and start attributes for <data> are exchanged ! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=543555 User schubi@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=543555#c2 Stefan Schubert <schubi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |WORKSFORME --- Comment #2 from Stefan Schubert <schubi@novell.com> 2009-10-07 01:27:47 MDT --- I cannot see string compare here; I have tested build with 11.2 and SLES11 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=543555 User kkaempf@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=543555#c3 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|CLOSED |REOPENED Resolution|WORKSFORME | Target Milestone|--- |Factory --- Comment #3 from Klaus Kämpf <kkaempf@novell.com> 2009-10-07 01:59:23 MDT --- Yeah, its a 'Heisenbug' ;-) It only happens from time to time. Do e.g. a puts xml.target!.inspect and you'll see that the values being compared are indeed strings The attributes of a node are kept as hashes internally. The current test relies on hash ordering, which Ruby does not guarantee. What you can do is either - don't use Builder::XmlMarkup.new but parse packets.to_xml() (using REXML) and check if expected nodes and attributes are present or - parse the string representation (again, using REXML) to a real XML object and rely on XML comparison. (I do not know if REXML supports comparison, so the first option seems to be more reliable to me) Reopening -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=543555 User kkaempf@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=543555#c4 --- Comment #4 from Klaus Kämpf <kkaempf@novell.com> 2009-10-07 02:14:33 MDT --- Hudson just failed because of this ;-} -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=543555 User schubi@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=543555#c5 Stefan Schubert <schubi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |CLOSED Resolution| |FIXED --- Comment #5 from Stefan Schubert <schubi@novell.com> 2009-10-07 04:46:31 MDT --- I have found something in the "network" to compare xml with REXML. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com