{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/1387","repository_url":"https://api.github.com/repos/elixir-lang/ecto","labels_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1387/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1387/comments","events_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1387/events","html_url":"https://github.com/elixir-lang/ecto/issues/1387","id":150063332,"number":1387,"title":"MySQL test failures","user":{"login":"nathanl","id":338814,"avatar_url":"https://avatars.githubusercontent.com/u/338814?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanl","html_url":"https://github.com/nathanl","followers_url":"https://api.github.com/users/nathanl/followers","following_url":"https://api.github.com/users/nathanl/following{/other_user}","gists_url":"https://api.github.com/users/nathanl/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanl/subscriptions","organizations_url":"https://api.github.com/users/nathanl/orgs","repos_url":"https://api.github.com/users/nathanl/repos","events_url":"https://api.github.com/users/nathanl/events{/privacy}","received_events_url":"https://api.github.com/users/nathanl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-04-21T12:42:43Z","updated_at":"2016-04-22T15:32:33Z","closed_at":null,"body":"### Environment\r\n\r\n* Elixir: 1.2.4, Erlang/OTP 18\r\n* Database: \"mysql  Ver 14.14 Distrib 5.7.12, for osx10.11 (x86_64) using  EditLine wrapper\". This is a fresh install on a new machine; all I've done related with mysql is `brew install mysql` and `mysql.server start`.\r\n* Ecto version: master, commit 89881a9229e66b1ba96c8097bf258bc1bbcff3c4, April 21, 2016\r\n* Database adapter and version: mariaex 0.7.1\r\n* Operating system: OS X El Capitan (10.11.2)\r\n\r\n### Current behavior\r\n\r\n`MIX_ENV=mysql mix test` has two test failures:\r\n\r\n```\r\n  1) test many_to_many assoc selector (Ecto.Integration.JoinsTest)\r\n     integration_test/cases/joins.exs:198\r\n     Assertion with == failed\r\n     code: p2.users() == [u2]\r\n     lhs:  []\r\n     rhs:  [%Ecto.Integration.User{__meta__: #Ecto.Schema.Metadata<:loaded>,\r\n             comments: #Ecto.Association.NotLoaded<association :comments is not loaded>,\r\n             custom: #Ecto.Association.NotLoaded<association :custom is not loaded>, custom_id: nil, id: 10,\r\n             inserted_at: #Ecto.DateTime<2016-04-21 12:39:30>, name: \"2\",\r\n             permalink: #Ecto.Association.NotLoaded<association :permalink is not loaded>,\r\n             posts: #Ecto.Association.NotLoaded<association :posts is not loaded>,\r\n             schema_posts: #Ecto.Association.NotLoaded<association :schema_posts is not loaded>,\r\n             updated_at: #Ecto.DateTime<2016-04-21 12:39:30>}]\r\n     stacktrace:\r\n       integration_test/cases/joins.exs:221\r\n\r\n  2) test has_many through assoc selector (Ecto.Integration.JoinsTest)\r\n     integration_test/cases/joins.exs:225\r\n     Assertion with == failed\r\n     code: p2.comments_authors() == [u2]\r\n     lhs:  []\r\n     rhs:  [%Ecto.Integration.User{__meta__: #Ecto.Schema.Metadata<:loaded>,\r\n             comments: #Ecto.Association.NotLoaded<association :comments is not loaded>,\r\n             custom: #Ecto.Association.NotLoaded<association :custom is not loaded>, custom_id: nil, id: 12,\r\n             inserted_at: #Ecto.DateTime<2016-04-21 12:39:30>, name: \"2\",\r\n             permalink: #Ecto.Association.NotLoaded<association :permalink is not loaded>,\r\n             posts: #Ecto.Association.NotLoaded<association :posts is not loaded>,\r\n             schema_posts: #Ecto.Association.NotLoaded<association :schema_posts is not loaded>,\r\n             updated_at: #Ecto.DateTime<2016-04-21 12:39:30>}]\r\n     stacktrace:\r\n       integration_test/cases/joins.exs:249\r\n```\r\n\r\n### Expected behavior\r\n\r\n`mix test.all` should have 0 failures."},"comment":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/comments/213476522","html_url":"https://github.com/elixir-lang/ecto/issues/1387#issuecomment-213476522","issue_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1387","id":213476522,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T15:32:33Z","updated_at":"2016-04-22T15:32:33Z","body":"No worries @nathanl. I was able to reproduce it locally by changing versions and I also have no idea why it fails. I looked at MySQL server logs and there are no hints in there as well. :("}}