Steve Jorgensen
2012-Sep-14 04:39 UTC
3-1-stable: AR XML serialization tests broken for anyone else?
Hi all, I''m preparing a pull request for 3-1-stable, but I''m getting test failures in the XML serialization tests (running just AR tests for postgresql). I looked on Travis, but I can''t see that we have builds for release branches. If they are there, please advise how to find those. I haven''t dug into the cause yet to see if it''s complicated or obvious, but here are the 6 failures I''m seeing... 1) Failure: test_should_serialize_binary(NilXmlSerializationTest) [/Users/FileVault/stevej/Projects/rails/activerecord/test/cases/xml_serialization_test.rb:124]: Failed assertion, no message given. 2) Failure: test_should_serialize_boolean(NilXmlSerializationTest) [/Users/FileVault/stevej/Projects/rails/activerecord/test/cases/xml_serialization_test.rb:139]: Failed assertion, no message given. 3) Failure: test_should_serialize_datetime(NilXmlSerializationTest) [/Users/FileVault/stevej/Projects/rails/activerecord/test/cases/xml_serialization_test.rb:132]: Failed assertion, no message given. 4) Failure: test_should_serialize_integer(NilXmlSerializationTest) [/Users/FileVault/stevej/Projects/rails/activerecord/test/cases/xml_serialization_test.rb:117]: Failed assertion, no message given. 5) Failure: test_should_serialize_string(NilXmlSerializationTest) [/Users/FileVault/stevej/Projects/rails/activerecord/test/cases/xml_serialization_test.rb:113]: Expected /<name nil="true"><\/name>/ to match "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xml-contact>\n <name nil=\"true\"/>\n <age type=\"integer\" nil=\"true\"/>\n <avatar type=\"binary\" nil=\"true\" encoding=\"base64\"/>\n <created-at type=\"datetime\" nil=\"true\"/>\n <awesome type=\"boolean\" nil=\"true\"/>\n <preferences nil=\"true\"/>\n</xml-contact>\n". 6) Failure: test_should_serialize_yaml(NilXmlSerializationTest) [/Users/FileVault/stevej/Projects/rails/activerecord/test/cases/xml_serialization_test.rb:146]: Expected /<preferences nil=\"true\"><\/preferences>/ to match "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xml-contact>\n <name nil=\"true\"/>\n <age type=\"integer\" nil=\"true\"/>\n <avatar type=\"binary\" nil=\"true\" encoding=\"base64\"/>\n <created-at type=\"datetime\" nil=\"true\"/>\n <awesome type=\"boolean\" nil=\"true\"/>\n <preferences nil=\"true\"/>\n</xml-contact>\n". -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/ucAknmWOPvgJ. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Steve Klabnik
2012-Sep-14 05:02 UTC
Re: 3-1-stable: AR XML serialization tests broken for anyone else?
3-1 isn''t getting any non-security related bug fixes these days. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Steve Jorgensen
2012-Sep-14 05:07 UTC
Re: 3-1-stable: AR XML serialization tests broken for anyone else?
Oh -- good to know. If I submit a trivial non-security pull request, is it likely to be accepted? On Thursday, September 13, 2012 10:02:36 PM UTC-7, Steve Klabnik wrote:> > 3-1 isn''t getting any non-security related bug fixes these days. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/K6iueU7JDmUJ. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Jon Leighton
2012-Sep-14 09:11 UTC
Re: 3-1-stable: AR XML serialization tests broken for anyone else?
On 14/09/12 06:07, Steve Jorgensen wrote:> Oh -- good to know. If I submit a trivial non-security pull request, is > it likely to be accepted?If you submit a PR against 3.1 with the sole purpose of fixing broken tests, I''ll happily merge. We''ll need those tests to work if/when there are future security patches to apply anyway. -- http://jonathanleighton.com/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Rafael Mendonça França
2012-Sep-14 13:58 UTC
Re: 3-1-stable: AR XML serialization tests broken for anyone else?
Security patch should not be sent in the issues tracker. Read this page if you think your bug is a security one http://rubyonrails.org/security Rafael Mendonça França http://twitter.com/rafaelfranca https://github.com/rafaelfranca On Fri, Sep 14, 2012 at 6:11 AM, Jon Leighton <j@jonathanleighton.com>wrote:> On 14/09/12 06:07, Steve Jorgensen wrote: > > Oh -- good to know. If I submit a trivial non-security pull request, is > > it likely to be accepted? > > If you submit a PR against 3.1 with the sole purpose of fixing broken > tests, I''ll happily merge. We''ll need those tests to work if/when there > are future security patches to apply anyway. > > -- > http://jonathanleighton.com/ > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Steve Jorgensen
2012-Sep-20 19:51 UTC
Re: 3-1-stable: AR XML serialization tests broken for anyone else?
I had been wanting to back-port a PostgreSQL auto-reconnect fix. Since that''s not a security issue though, I guess it''s not appropriate for Rails 3.1. I have written a trivial initializer for my employer that patches the problem in 3.1, so I''ll just ask permission to publish that as a Gist for anyone who needs it. I''ll probably still go ahead and fix the build if no one beats (or has beaten) me to it. On Friday, September 14, 2012 6:58:48 AM UTC-7, Rafael Mendonça França wrote:> > Security patch should not be sent in the issues tracker. Read this page if > you think your bug is a security one http://rubyonrails.org/security > > Rafael Mendonça França > http://twitter.com/rafaelfranca > https://github.com/rafaelfranca > > > > On Fri, Sep 14, 2012 at 6:11 AM, Jon Leighton <j...@jonathanleighton.com<javascript:> > > wrote: > >> On 14/09/12 06:07, Steve Jorgensen wrote: >> > Oh -- good to know. If I submit a trivial non-security pull request, is >> > it likely to be accepted? >> >> If you submit a PR against 3.1 with the sole purpose of fixing broken >> tests, I''ll happily merge. We''ll need those tests to work if/when there >> are future security patches to apply anyway. >> >> -- >> http://jonathanleighton.com/ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To post to this group, send email to rubyonra...@googlegroups.com<javascript:> >> . >> To unsubscribe from this group, send email to >> rubyonrails-co...@googlegroups.com <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-core?hl=en. >> >> >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/BgCIYJktpiAJ. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.