{"action":"created","comment":{"url":"https://api.github.com/repos/OUGHT/quagga/pulls/comments/52111603","id":52111603,"diff_hunk":"@@ -0,0 +1,61 @@\n+require \"rails_helper\"\n+\n+RSpec.describe MassNotificationMailer, type: :mailer do","path":"spec/mailers/mass_notification_mailer_spec.rb","position":3,"original_position":3,"commit_id":"09f9691b2a811843c9c4089eac13cf54d600587d","original_commit_id":"09f9691b2a811843c9c4089eac13cf54d600587d","user":{"login":"OUGHT","id":6378091,"avatar_url":"https://avatars.githubusercontent.com/u/6378091?v=3","gravatar_id":"","url":"https://api.github.com/users/OUGHT","html_url":"https://github.com/OUGHT","followers_url":"https://api.github.com/users/OUGHT/followers","following_url":"https://api.github.com/users/OUGHT/following{/other_user}","gists_url":"https://api.github.com/users/OUGHT/gists{/gist_id}","starred_url":"https://api.github.com/users/OUGHT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OUGHT/subscriptions","organizations_url":"https://api.github.com/users/OUGHT/orgs","repos_url":"https://api.github.com/users/OUGHT/repos","events_url":"https://api.github.com/users/OUGHT/events{/privacy}","received_events_url":"https://api.github.com/users/OUGHT/received_events","type":"User","site_admin":false},"body":"Ну, почта - такая тонкая вещь, что можно перебдеть) Будет мешать workflow в реальных проектах - сотру тесты...","created_at":"2016-02-07T02:43:38Z","updated_at":"2016-02-07T02:43:38Z","html_url":"https://github.com/OUGHT/quagga/pull/15#discussion_r52111603","pull_request_url":"https://api.github.com/repos/OUGHT/quagga/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/OUGHT/quagga/pulls/comments/52111603"},"html":{"href":"https://github.com/OUGHT/quagga/pull/15#discussion_r52111603"},"pull_request":{"href":"https://api.github.com/repos/OUGHT/quagga/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/OUGHT/quagga/pulls/15","id":58511250,"html_url":"https://github.com/OUGHT/quagga/pull/15","diff_url":"https://github.com/OUGHT/quagga/pull/15.diff","patch_url":"https://github.com/OUGHT/quagga/pull/15.patch","issue_url":"https://api.github.com/repos/OUGHT/quagga/issues/15","number":15,"state":"open","locked":false,"title":"Lesson 17","user":{"login":"OUGHT","id":6378091,"avatar_url":"https://avatars.githubusercontent.com/u/6378091?v=3","gravatar_id":"","url":"https://api.github.com/users/OUGHT","html_url":"https://github.com/OUGHT","followers_url":"https://api.github.com/users/OUGHT/followers","following_url":"https://api.github.com/users/OUGHT/following{/other_user}","gists_url":"https://api.github.com/users/OUGHT/gists{/gist_id}","starred_url":"https://api.github.com/users/OUGHT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OUGHT/subscriptions","organizations_url":"https://api.github.com/users/OUGHT/orgs","repos_url":"https://api.github.com/users/OUGHT/repos","events_url":"https://api.github.com/users/OUGHT/events{/privacy}","received_events_url":"https://api.github.com/users/OUGHT/received_events","type":"User","site_admin":false},"body":"Наткнулся на очень странный баг.\r\nПо какой-то причине feature-тест \"question_subscribe_spec\" (сценарий \"correctly receives notification\") проваливается, не открывая письмо и выдавая `expected to find text \"I want to send you e-mail!\" in \"\"`.\r\nАналогичный же фиче-тест, который я поправил под ActiveJob - \"oauth_sighup_spec\" - работает абсолютно успешно, подхватывая письмо, \"падающее\" на почту. Не могу найти разницы и проблемы.\r\n\r\nЕще один баг я победил путем обновления bundle, но привожу его описание на всякий случай (вдруг оно связано?).\r\n\r\nПосле второго запуска теста рельсы впадают в дедлок:\r\n```\r\n     1.2) Failure/Error: DatabaseCleaner.clean\r\n          \r\n          ActiveRecord::StatementInvalid:\r\n            PG::TRDeadlockDetected: ERROR:  deadlock detected\r\n            DETAIL:  Process 3205 waits for AccessExclusiveLock on relation 63420 of database 63322; blocked by process 3230.\r\n            Process 3230 waits for RowExclusiveLock on relation 63325 of database 63322; blocked by process 3205.\r\n            HINT:  See server log for query details.\r\n            : TRUNCATE TABLE \"public\".\"authorizations\", \"public\".\"attachments\", \"public\".\"oauth_access_grants\", \"public\".\"oauth_applications\", \"public\".\"answers\", \"public\".\"comments\", \"public\".\"questions\", \"public\".\"subscriptions\", \"public\".\"votes\", \"public\".\"users\", \"public\".\"oauth_access_tokens\" RESTART IDENTITY CASCADE;\r\n          # ./spec/feature_helper.rb:26:in `block (2 levels) in <top (required)>'\r\n          # -e:1:in `<main>'\r\n          # ------------------\r\n          # --- Caused by: ---\r\n          # PG::TRDeadlockDetected:\r\n          #   ERROR:  deadlock detected\r\n          #   DETAIL:  Process 3205 waits for AccessExclusiveLock on relation 63420 of database 63322; blocked by process 3230.\r\n          #   Process 3230 waits for RowExclusiveLock on relation 63325 of database 63322; blocked by process 3205.\r\n          #   HINT:  See server log for query details.\r\n          #   ./spec/feature_helper.rb:26:in `block (2 levels) in <top (required)>'\r\n```\r\n\r\nВыловить эти pid-ы в логах Арча не получается. После `spring stop` в половине случаев дедлок исчезает, но первая ошибка никуда не девается.","created_at":"2016-02-06T04:20:27Z","updated_at":"2016-02-07T02:43:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1f790084ca4690f3f444001bf7f944a6e289228","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OUGHT/quagga/pulls/15/commits","review_comments_url":"https://api.github.com/repos/OUGHT/quagga/pulls/15/comments","review_comment_url":"https://api.github.com/repos/OUGHT/quagga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OUGHT/quagga/issues/15/comments","statuses_url":"https://api.github.com/repos/OUGHT/quagga/statuses/09f9691b2a811843c9c4089eac13cf54d600587d","head":{"label":"OUGHT:lesson-17","ref":"lesson-17","sha":"09f9691b2a811843c9c4089eac13cf54d600587d","user":{"login":"OUGHT","id":6378091,"avatar_url":"https://avatars.githubusercontent.com/u/6378091?v=3","gravatar_id":"","url":"https://api.github.com/users/OUGHT","html_url":"https://github.com/OUGHT","followers_url":"https://api.github.com/users/OUGHT/followers","following_url":"https://api.github.com/users/OUGHT/following{/other_user}","gists_url":"https://api.github.com/users/OUGHT/gists{/gist_id}","starred_url":"https://api.github.com/users/OUGHT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OUGHT/subscriptions","organizations_url":"https://api.github.com/users/OUGHT/orgs","repos_url":"https://api.github.com/users/OUGHT/repos","events_url":"https://api.github.com/users/OUGHT/events{/privacy}","received_events_url":"https://api.github.com/users/OUGHT/received_events","type":"User","site_admin":false},"repo":{"id":45780325,"name":"quagga","full_name":"OUGHT/quagga","owner":{"login":"OUGHT","id":6378091,"avatar_url":"https://avatars.githubusercontent.com/u/6378091?v=3","gravatar_id":"","url":"https://api.github.com/users/OUGHT","html_url":"https://github.com/OUGHT","followers_url":"https://api.github.com/users/OUGHT/followers","following_url":"https://api.github.com/users/OUGHT/following{/other_user}","gists_url":"https://api.github.com/users/OUGHT/gists{/gist_id}","starred_url":"https://api.github.com/users/OUGHT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OUGHT/subscriptions","organizations_url":"https://api.github.com/users/OUGHT/orgs","repos_url":"https://api.github.com/users/OUGHT/repos","events_url":"https://api.github.com/users/OUGHT/events{/privacy}","received_events_url":"https://api.github.com/users/OUGHT/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OUGHT/quagga","description":"Q&A Rails application, designed for learning Rails on Thinknetica courses","fork":false,"url":"https://api.github.com/repos/OUGHT/quagga","forks_url":"https://api.github.com/repos/OUGHT/quagga/forks","keys_url":"https://api.github.com/repos/OUGHT/quagga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OUGHT/quagga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OUGHT/quagga/teams","hooks_url":"https://api.github.com/repos/OUGHT/quagga/hooks","issue_events_url":"https://api.github.com/repos/OUGHT/quagga/issues/events{/number}","events_url":"https://api.github.com/repos/OUGHT/quagga/events","assignees_url":"https://api.github.com/repos/OUGHT/quagga/assignees{/user}","branches_url":"https://api.github.com/repos/OUGHT/quagga/branches{/branch}","tags_url":"https://api.github.com/repos/OUGHT/quagga/tags","blobs_url":"https://api.github.com/repos/OUGHT/quagga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OUGHT/quagga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OUGHT/quagga/git/refs{/sha}","trees_url":"https://api.github.com/repos/OUGHT/quagga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OUGHT/quagga/statuses/{sha}","languages_url":"https://api.github.com/repos/OUGHT/quagga/languages","stargazers_url":"https://api.github.com/repos/OUGHT/quagga/stargazers","contributors_url":"https://api.github.com/repos/OUGHT/quagga/contributors","subscribers_url":"https://api.github.com/repos/OUGHT/quagga/subscribers","subscription_url":"https://api.github.com/repos/OUGHT/quagga/subscription","commits_url":"https://api.github.com/repos/OUGHT/quagga/commits{/sha}","git_commits_url":"https://api.github.com/repos/OUGHT/quagga/git/commits{/sha}","comments_url":"https://api.github.com/repos/OUGHT/quagga/comments{/number}","issue_comment_url":"https://api.github.com/repos/OUGHT/quagga/issues/comments{/number}","contents_url":"https://api.github.com/repos/OUGHT/quagga/contents/{+path}","compare_url":"https://api.github.com/repos/OUGHT/quagga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OUGHT/quagga/merges","archive_url":"https://api.github.com/repos/OUGHT/quagga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OUGHT/quagga/downloads","issues_url":"https://api.github.com/repos/OUGHT/quagga/issues{/number}","pulls_url":"https://api.github.com/repos/OUGHT/quagga/pulls{/number}","milestones_url":"https://api.github.com/repos/OUGHT/quagga/milestones{/number}","notifications_url":"https://api.github.com/repos/OUGHT/quagga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OUGHT/quagga/labels{/name}","releases_url":"https://api.github.com/repos/OUGHT/quagga/releases{/id}","deployments_url":"https://api.github.com/repos/OUGHT/quagga/deployments","created_at":"2015-11-08T12:52:30Z","updated_at":"2016-01-11T13:07:42Z","pushed_at":"2016-02-06T04:31:18Z","git_url":"git://github.com/OUGHT/quagga.git","ssh_url":"git@github.com:OUGHT/quagga.git","clone_url":"https://github.com/OUGHT/quagga.git","svn_url":"https://github.com/OUGHT/quagga","homepage":null,"size":1068,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"OUGHT:master","ref":"master","sha":"7691d2134f5145e9e9a8f2b73d86011a4cb1dd81","user":{"login":"OUGHT","id":6378091,"avatar_url":"https://avatars.githubusercontent.com/u/6378091?v=3","gravatar_id":"","url":"https://api.github.com/users/OUGHT","html_url":"https://github.com/OUGHT","followers_url":"https://api.github.com/users/OUGHT/followers","following_url":"https://api.github.com/users/OUGHT/following{/other_user}","gists_url":"https://api.github.com/users/OUGHT/gists{/gist_id}","starred_url":"https://api.github.com/users/OUGHT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OUGHT/subscriptions","organizations_url":"https://api.github.com/users/OUGHT/orgs","repos_url":"https://api.github.com/users/OUGHT/repos","events_url":"https://api.github.com/users/OUGHT/events{/privacy}","received_events_url":"https://api.github.com/users/OUGHT/received_events","type":"User","site_admin":false},"repo":{"id":45780325,"name":"quagga","full_name":"OUGHT/quagga","owner":{"login":"OUGHT","id":6378091,"avatar_url":"https://avatars.githubusercontent.com/u/6378091?v=3","gravatar_id":"","url":"https://api.github.com/users/OUGHT","html_url":"https://github.com/OUGHT","followers_url":"https://api.github.com/users/OUGHT/followers","following_url":"https://api.github.com/users/OUGHT/following{/other_user}","gists_url":"https://api.github.com/users/OUGHT/gists{/gist_id}","starred_url":"https://api.github.com/users/OUGHT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OUGHT/subscriptions","organizations_url":"https://api.github.com/users/OUGHT/orgs","repos_url":"https://api.github.com/users/OUGHT/repos","events_url":"https://api.github.com/users/OUGHT/events{/privacy}","received_events_url":"https://api.github.com/users/OUGHT/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OUGHT/quagga","description":"Q&A Rails application, designed for learning Rails on Thinknetica courses","fork":false,"url":"https://api.github.com/repos/OUGHT/quagga","forks_url":"https://api.github.com/repos/OUGHT/quagga/forks","keys_url":"https://api.github.com/repos/OUGHT/quagga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OUGHT/quagga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OUGHT/quagga/teams","hooks_url":"https://api.github.com/repos/OUGHT/quagga/hooks","issue_events_url":"https://api.github.com/repos/OUGHT/quagga/issues/events{/number}","events_url":"https://api.github.com/repos/OUGHT/quagga/events","assignees_url":"https://api.github.com/repos/OUGHT/quagga/assignees{/user}","branches_url":"https://api.github.com/repos/OUGHT/quagga/branches{/branch}","tags_url":"https://api.github.com/repos/OUGHT/quagga/tags","blobs_url":"https://api.github.com/repos/OUGHT/quagga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OUGHT/quagga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OUGHT/quagga/git/refs{/sha}","trees_url":"https://api.github.com/repos/OUGHT/quagga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OUGHT/quagga/statuses/{sha}","languages_url":"https://api.github.com/repos/OUGHT/quagga/languages","stargazers_url":"https://api.github.com/repos/OUGHT/quagga/stargazers","contributors_url":"https://api.github.com/repos/OUGHT/quagga/contributors","subscribers_url":"https://api.github.com/repos/OUGHT/quagga/subscribers","subscription_url":"https://api.github.com/repos/OUGHT/quagga/subscription","commits_url":"https://api.github.com/repos/OUGHT/quagga/commits{/sha}","git_commits_url":"https://api.github.com/repos/OUGHT/quagga/git/commits{/sha}","comments_url":"https://api.github.com/repos/OUGHT/quagga/comments{/number}","issue_comment_url":"https://api.github.com/repos/OUGHT/quagga/issues/comments{/number}","contents_url":"https://api.github.com/repos/OUGHT/quagga/contents/{+path}","compare_url":"https://api.github.com/repos/OUGHT/quagga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OUGHT/quagga/merges","archive_url":"https://api.github.com/repos/OUGHT/quagga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OUGHT/quagga/downloads","issues_url":"https://api.github.com/repos/OUGHT/quagga/issues{/number}","pulls_url":"https://api.github.com/repos/OUGHT/quagga/pulls{/number}","milestones_url":"https://api.github.com/repos/OUGHT/quagga/milestones{/number}","notifications_url":"https://api.github.com/repos/OUGHT/quagga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OUGHT/quagga/labels{/name}","releases_url":"https://api.github.com/repos/OUGHT/quagga/releases{/id}","deployments_url":"https://api.github.com/repos/OUGHT/quagga/deployments","created_at":"2015-11-08T12:52:30Z","updated_at":"2016-01-11T13:07:42Z","pushed_at":"2016-02-06T04:31:18Z","git_url":"git://github.com/OUGHT/quagga.git","ssh_url":"git@github.com:OUGHT/quagga.git","clone_url":"https://github.com/OUGHT/quagga.git","svn_url":"https://github.com/OUGHT/quagga","homepage":null,"size":1068,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OUGHT/quagga/pulls/15"},"html":{"href":"https://github.com/OUGHT/quagga/pull/15"},"issue":{"href":"https://api.github.com/repos/OUGHT/quagga/issues/15"},"comments":{"href":"https://api.github.com/repos/OUGHT/quagga/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/OUGHT/quagga/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/OUGHT/quagga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OUGHT/quagga/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/OUGHT/quagga/statuses/09f9691b2a811843c9c4089eac13cf54d600587d"}}}}