{"action":"created","comment":{"url":"https://api.github.com/repos/zulip/zulip/pulls/comments/84219411","pull_request_review_id":5009514,"id":84219411,"diff_hunk":"@@ -58,12 +61,39 @@ def are_migrations_the_same(migration_file, **options):\n         migration_content = f.read()\n     return migration_content == get_migration_status(**options)\n \n+def _check_hash(source_hash_file, target_hash_file, **options):\n+    # type: (text_type, text_type, **Any) -> bool\n+    if not os.path.exists(source_hash_file):\n+        return False\n+\n+    with open(source_hash_file) as f:\n+        hash_content = f.read().strip()\n+\n+    with open(target_hash_file) as f:\n+        return hashlib.sha1(f.read()).hexdigest() == hash_content\n+\n+def populate_db_hash_is_same(hash_file, **options):\n+    # type: (text_type, **Any) -> bool\n+    populate_db = 'zilencer/management/commands/populate_db.py'\n+    return _check_hash(hash_file, populate_db, **options)\n+\n+def postgres_init_test_db_hash_is_same(hash_file, **options):\n+    # type: (text_type, **Any) -> bool\n+    postgres_init_test_db = 'tools/setup/postgres-init-test-db'\n+    return _check_hash(hash_file, postgres_init_test_db, **options)","path":"zerver/lib/test_fixtures.py","position":42,"original_position":42,"commit_id":"d166885fd0969db07a0f5a0d1ee972fe024f49ec","original_commit_id":"d166885fd0969db07a0f5a0d1ee972fe024f49ec","user":{"login":"umairwaheed","id":641763,"avatar_url":"https://avatars.githubusercontent.com/u/641763?v=3","gravatar_id":"","url":"https://api.github.com/users/umairwaheed","html_url":"https://github.com/umairwaheed","followers_url":"https://api.github.com/users/umairwaheed/followers","following_url":"https://api.github.com/users/umairwaheed/following{/other_user}","gists_url":"https://api.github.com/users/umairwaheed/gists{/gist_id}","starred_url":"https://api.github.com/users/umairwaheed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umairwaheed/subscriptions","organizations_url":"https://api.github.com/users/umairwaheed/orgs","repos_url":"https://api.github.com/users/umairwaheed/repos","events_url":"https://api.github.com/users/umairwaheed/events{/privacy}","received_events_url":"https://api.github.com/users/umairwaheed/received_events","type":"User","site_admin":false},"body":"Yeah, it's not there yet.","created_at":"2016-10-20T06:27:40Z","updated_at":"2016-10-20T06:27:40Z","html_url":"https://github.com/zulip/zulip/pull/2074#discussion_r84219411","pull_request_url":"https://api.github.com/repos/zulip/zulip/pulls/2074","_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments/84219411"},"html":{"href":"https://github.com/zulip/zulip/pull/2074#discussion_r84219411"},"pull_request":{"href":"https://api.github.com/repos/zulip/zulip/pulls/2074"}}},"pull_request":{"url":"https://api.github.com/repos/zulip/zulip/pulls/2074","id":89989316,"html_url":"https://github.com/zulip/zulip/pull/2074","diff_url":"https://github.com/zulip/zulip/pull/2074.diff","patch_url":"https://github.com/zulip/zulip/pull/2074.patch","issue_url":"https://api.github.com/repos/zulip/zulip/issues/2074","number":2074,"state":"open","locked":false,"title":"Stop regenerating the test database when it hasn't changed","user":{"login":"umairwaheed","id":641763,"avatar_url":"https://avatars.githubusercontent.com/u/641763?v=3","gravatar_id":"","url":"https://api.github.com/users/umairwaheed","html_url":"https://github.com/umairwaheed","followers_url":"https://api.github.com/users/umairwaheed/followers","following_url":"https://api.github.com/users/umairwaheed/following{/other_user}","gists_url":"https://api.github.com/users/umairwaheed/gists{/gist_id}","starred_url":"https://api.github.com/users/umairwaheed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umairwaheed/subscriptions","organizations_url":"https://api.github.com/users/umairwaheed/orgs","repos_url":"https://api.github.com/users/umairwaheed/repos","events_url":"https://api.github.com/users/umairwaheed/events{/privacy}","received_events_url":"https://api.github.com/users/umairwaheed/received_events","type":"User","site_admin":false},"body":"Fixes: #2026 \r\n\r\n@timabbott ","created_at":"2016-10-19T11:21:55Z","updated_at":"2016-10-20T06:27:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffce911bd31e18c5bea664ac113fb455be057697","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zulip/zulip/pulls/2074/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip/pulls/2074/comments","review_comment_url":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/2074/comments","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/d166885fd0969db07a0f5a0d1ee972fe024f49ec","head":{"label":"umairwaheed:2026-stop-regenerating-db","ref":"2026-stop-regenerating-db","sha":"d166885fd0969db07a0f5a0d1ee972fe024f49ec","user":{"login":"umairwaheed","id":641763,"avatar_url":"https://avatars.githubusercontent.com/u/641763?v=3","gravatar_id":"","url":"https://api.github.com/users/umairwaheed","html_url":"https://github.com/umairwaheed","followers_url":"https://api.github.com/users/umairwaheed/followers","following_url":"https://api.github.com/users/umairwaheed/following{/other_user}","gists_url":"https://api.github.com/users/umairwaheed/gists{/gist_id}","starred_url":"https://api.github.com/users/umairwaheed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umairwaheed/subscriptions","organizations_url":"https://api.github.com/users/umairwaheed/orgs","repos_url":"https://api.github.com/users/umairwaheed/repos","events_url":"https://api.github.com/users/umairwaheed/events{/privacy}","received_events_url":"https://api.github.com/users/umairwaheed/received_events","type":"User","site_admin":false},"repo":{"id":56792781,"name":"zulip","full_name":"umairwaheed/zulip","owner":{"login":"umairwaheed","id":641763,"avatar_url":"https://avatars.githubusercontent.com/u/641763?v=3","gravatar_id":"","url":"https://api.github.com/users/umairwaheed","html_url":"https://github.com/umairwaheed","followers_url":"https://api.github.com/users/umairwaheed/followers","following_url":"https://api.github.com/users/umairwaheed/following{/other_user}","gists_url":"https://api.github.com/users/umairwaheed/gists{/gist_id}","starred_url":"https://api.github.com/users/umairwaheed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umairwaheed/subscriptions","organizations_url":"https://api.github.com/users/umairwaheed/orgs","repos_url":"https://api.github.com/users/umairwaheed/repos","events_url":"https://api.github.com/users/umairwaheed/events{/privacy}","received_events_url":"https://api.github.com/users/umairwaheed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/umairwaheed/zulip","description":"Zulip server - powerful open source group chat","fork":true,"url":"https://api.github.com/repos/umairwaheed/zulip","forks_url":"https://api.github.com/repos/umairwaheed/zulip/forks","keys_url":"https://api.github.com/repos/umairwaheed/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umairwaheed/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umairwaheed/zulip/teams","hooks_url":"https://api.github.com/repos/umairwaheed/zulip/hooks","issue_events_url":"https://api.github.com/repos/umairwaheed/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/umairwaheed/zulip/events","assignees_url":"https://api.github.com/repos/umairwaheed/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/umairwaheed/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/umairwaheed/zulip/tags","blobs_url":"https://api.github.com/repos/umairwaheed/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umairwaheed/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umairwaheed/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/umairwaheed/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umairwaheed/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/umairwaheed/zulip/languages","stargazers_url":"https://api.github.com/repos/umairwaheed/zulip/stargazers","contributors_url":"https://api.github.com/repos/umairwaheed/zulip/contributors","subscribers_url":"https://api.github.com/repos/umairwaheed/zulip/subscribers","subscription_url":"https://api.github.com/repos/umairwaheed/zulip/subscription","commits_url":"https://api.github.com/repos/umairwaheed/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/umairwaheed/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/umairwaheed/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/umairwaheed/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/umairwaheed/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/umairwaheed/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umairwaheed/zulip/merges","archive_url":"https://api.github.com/repos/umairwaheed/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umairwaheed/zulip/downloads","issues_url":"https://api.github.com/repos/umairwaheed/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/umairwaheed/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/umairwaheed/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/umairwaheed/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umairwaheed/zulip/labels{/name}","releases_url":"https://api.github.com/repos/umairwaheed/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/umairwaheed/zulip/deployments","created_at":"2016-04-21T17:22:21Z","updated_at":"2016-06-27T06:01:26Z","pushed_at":"2016-10-19T12:24:21Z","git_url":"git://github.com/umairwaheed/zulip.git","ssh_url":"git@github.com:umairwaheed/zulip.git","clone_url":"https://github.com/umairwaheed/zulip.git","svn_url":"https://github.com/umairwaheed/zulip","homepage":"","size":117351,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zulip:master","ref":"master","sha":"83f902953ab838397f7c48d0c420a3d499195ed3","user":{"login":"zulip","id":4921959,"avatar_url":"https://avatars.githubusercontent.com/u/4921959?v=3","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"repo":{"id":43160685,"name":"zulip","full_name":"zulip/zulip","owner":{"login":"zulip","id":4921959,"avatar_url":"https://avatars.githubusercontent.com/u/4921959?v=3","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zulip/zulip","description":"Zulip server - powerful open source group chat","fork":false,"url":"https://api.github.com/repos/zulip/zulip","forks_url":"https://api.github.com/repos/zulip/zulip/forks","keys_url":"https://api.github.com/repos/zulip/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zulip/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zulip/zulip/teams","hooks_url":"https://api.github.com/repos/zulip/zulip/hooks","issue_events_url":"https://api.github.com/repos/zulip/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/zulip/zulip/events","assignees_url":"https://api.github.com/repos/zulip/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/zulip/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/zulip/zulip/tags","blobs_url":"https://api.github.com/repos/zulip/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zulip/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zulip/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/zulip/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/zulip/zulip/languages","stargazers_url":"https://api.github.com/repos/zulip/zulip/stargazers","contributors_url":"https://api.github.com/repos/zulip/zulip/contributors","subscribers_url":"https://api.github.com/repos/zulip/zulip/subscribers","subscription_url":"https://api.github.com/repos/zulip/zulip/subscription","commits_url":"https://api.github.com/repos/zulip/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/zulip/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/zulip/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/zulip/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/zulip/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/zulip/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zulip/zulip/merges","archive_url":"https://api.github.com/repos/zulip/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zulip/zulip/downloads","issues_url":"https://api.github.com/repos/zulip/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/zulip/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/zulip/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/zulip/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zulip/zulip/labels{/name}","releases_url":"https://api.github.com/repos/zulip/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/zulip/zulip/deployments","created_at":"2015-09-25T16:37:25Z","updated_at":"2016-10-19T23:33:15Z","pushed_at":"2016-10-20T04:46:24Z","git_url":"git://github.com/zulip/zulip.git","ssh_url":"git@github.com:zulip/zulip.git","clone_url":"https://github.com/zulip/zulip.git","svn_url":"https://github.com/zulip/zulip","homepage":"","size":126571,"stargazers_count":4217,"watchers_count":4217,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":748,"mirror_url":null,"open_issues_count":551,"forks":748,"open_issues":551,"watchers":4217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/2074"},"html":{"href":"https://github.com/zulip/zulip/pull/2074"},"issue":{"href":"https://api.github.com/repos/zulip/zulip/issues/2074"},"comments":{"href":"https://api.github.com/repos/zulip/zulip/issues/2074/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip/pulls/2074/comments"},"review_comment":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zulip/zulip/pulls/2074/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip/statuses/d166885fd0969db07a0f5a0d1ee972fe024f49ec"}}}}
{"actor":{"display_login":"umairwaheed"}}