{"action":"opened","number":69,"pull_request":{"url":"https://api.github.com/repos/abseil/abseil-py/pulls/69","id":209307881,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MzA3ODgx","html_url":"https://github.com/abseil/abseil-py/pull/69","diff_url":"https://github.com/abseil/abseil-py/pull/69.diff","patch_url":"https://github.com/abseil/abseil-py/pull/69.patch","issue_url":"https://api.github.com/repos/abseil/abseil-py/issues/69","number":69,"state":"open","locked":false,"title":"Use uid instead when username not found.","user":{"login":"w4-sjcho","id":8187891,"node_id":"MDQ6VXNlcjgxODc4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/8187891?v=4","gravatar_id":"","url":"https://api.github.com/users/w4-sjcho","html_url":"https://github.com/w4-sjcho","followers_url":"https://api.github.com/users/w4-sjcho/followers","following_url":"https://api.github.com/users/w4-sjcho/following{/other_user}","gists_url":"https://api.github.com/users/w4-sjcho/gists{/gist_id}","starred_url":"https://api.github.com/users/w4-sjcho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w4-sjcho/subscriptions","organizations_url":"https://api.github.com/users/w4-sjcho/orgs","repos_url":"https://api.github.com/users/w4-sjcho/repos","events_url":"https://api.github.com/users/w4-sjcho/events{/privacy}","received_events_url":"https://api.github.com/users/w4-sjcho/received_events","type":"User","site_admin":false},"body":"When running under docker, python's getpass.getuser() raises error when there's no passwd file.\r\n\r\n```\r\n  File \"/nas0/home/sjcho/gorax/deploy/bin/train.runfiles/pypi__absl_py_0_4_0/absl/logging/__init__.py\", line 864, in use_absl_log_file\r\n    self._current_handler.use_absl_log_file(program_name, log_dir)\r\n  File \"/nas0/home/sjcho/gorax/deploy/bin/train.runfiles/pypi__absl_py_0_4_0/absl/logging/__init__.py\", line 731, in use_absl_log_file\r\n    self.start_logging_to_file(program_name=program_name, log_dir=log_dir)\r\n  File \"/nas0/home/sjcho/gorax/deploy/bin/train.runfiles/pypi__absl_py_0_4_0/absl/logging/__init__.py\", line 699, in start_logging_to_file\r\n    program_name=program_name, log_dir=log_dir)\r\n  File \"/nas0/home/sjcho/gorax/deploy/bin/train.runfiles/pypi__absl_py_0_4_0/absl/logging/__init__.py\", line 568, in find_log_dir_and_names\r\n    username = getpass.getuser()\r\n  File \"/usr/lib/python3.5/getpass.py\", line 170, in getuser\r\n    return pwd.getpwuid(os.getuid())[0]\r\nKeyError: 'getpwuid(): uid not found: 5003'\r\n```\r\n\r\nThis change fixes this by using uid instead of username in such cases.","created_at":"2018-08-18T11:25:36Z","updated_at":"2018-08-18T11:25:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/abseil/abseil-py/pulls/69/commits","review_comments_url":"https://api.github.com/repos/abseil/abseil-py/pulls/69/comments","review_comment_url":"https://api.github.com/repos/abseil/abseil-py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abseil/abseil-py/issues/69/comments","statuses_url":"https://api.github.com/repos/abseil/abseil-py/statuses/0ff4ab2172cd2d2cefa993d3c74ac766589d80f8","head":{"label":"w4-sjcho:master","ref":"master","sha":"0ff4ab2172cd2d2cefa993d3c74ac766589d80f8","user":{"login":"w4-sjcho","id":8187891,"node_id":"MDQ6VXNlcjgxODc4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/8187891?v=4","gravatar_id":"","url":"https://api.github.com/users/w4-sjcho","html_url":"https://github.com/w4-sjcho","followers_url":"https://api.github.com/users/w4-sjcho/followers","following_url":"https://api.github.com/users/w4-sjcho/following{/other_user}","gists_url":"https://api.github.com/users/w4-sjcho/gists{/gist_id}","starred_url":"https://api.github.com/users/w4-sjcho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w4-sjcho/subscriptions","organizations_url":"https://api.github.com/users/w4-sjcho/orgs","repos_url":"https://api.github.com/users/w4-sjcho/repos","events_url":"https://api.github.com/users/w4-sjcho/events{/privacy}","received_events_url":"https://api.github.com/users/w4-sjcho/received_events","type":"User","site_admin":false},"repo":{"id":145213763,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUyMTM3NjM=","name":"abseil-py","full_name":"w4-sjcho/abseil-py","owner":{"login":"w4-sjcho","id":8187891,"node_id":"MDQ6VXNlcjgxODc4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/8187891?v=4","gravatar_id":"","url":"https://api.github.com/users/w4-sjcho","html_url":"https://github.com/w4-sjcho","followers_url":"https://api.github.com/users/w4-sjcho/followers","following_url":"https://api.github.com/users/w4-sjcho/following{/other_user}","gists_url":"https://api.github.com/users/w4-sjcho/gists{/gist_id}","starred_url":"https://api.github.com/users/w4-sjcho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w4-sjcho/subscriptions","organizations_url":"https://api.github.com/users/w4-sjcho/orgs","repos_url":"https://api.github.com/users/w4-sjcho/repos","events_url":"https://api.github.com/users/w4-sjcho/events{/privacy}","received_events_url":"https://api.github.com/users/w4-sjcho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/w4-sjcho/abseil-py","description":"Abseil Common Libraries (Python)","fork":true,"url":"https://api.github.com/repos/w4-sjcho/abseil-py","forks_url":"https://api.github.com/repos/w4-sjcho/abseil-py/forks","keys_url":"https://api.github.com/repos/w4-sjcho/abseil-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w4-sjcho/abseil-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w4-sjcho/abseil-py/teams","hooks_url":"https://api.github.com/repos/w4-sjcho/abseil-py/hooks","issue_events_url":"https://api.github.com/repos/w4-sjcho/abseil-py/issues/events{/number}","events_url":"https://api.github.com/repos/w4-sjcho/abseil-py/events","assignees_url":"https://api.github.com/repos/w4-sjcho/abseil-py/assignees{/user}","branches_url":"https://api.github.com/repos/w4-sjcho/abseil-py/branches{/branch}","tags_url":"https://api.github.com/repos/w4-sjcho/abseil-py/tags","blobs_url":"https://api.github.com/repos/w4-sjcho/abseil-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w4-sjcho/abseil-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w4-sjcho/abseil-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/w4-sjcho/abseil-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w4-sjcho/abseil-py/statuses/{sha}","languages_url":"https://api.github.com/repos/w4-sjcho/abseil-py/languages","stargazers_url":"https://api.github.com/repos/w4-sjcho/abseil-py/stargazers","contributors_url":"https://api.github.com/repos/w4-sjcho/abseil-py/contributors","subscribers_url":"https://api.github.com/repos/w4-sjcho/abseil-py/subscribers","subscription_url":"https://api.github.com/repos/w4-sjcho/abseil-py/subscription","commits_url":"https://api.github.com/repos/w4-sjcho/abseil-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/w4-sjcho/abseil-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/w4-sjcho/abseil-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/w4-sjcho/abseil-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/w4-sjcho/abseil-py/contents/{+path}","compare_url":"https://api.github.com/repos/w4-sjcho/abseil-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w4-sjcho/abseil-py/merges","archive_url":"https://api.github.com/repos/w4-sjcho/abseil-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w4-sjcho/abseil-py/downloads","issues_url":"https://api.github.com/repos/w4-sjcho/abseil-py/issues{/number}","pulls_url":"https://api.github.com/repos/w4-sjcho/abseil-py/pulls{/number}","milestones_url":"https://api.github.com/repos/w4-sjcho/abseil-py/milestones{/number}","notifications_url":"https://api.github.com/repos/w4-sjcho/abseil-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w4-sjcho/abseil-py/labels{/name}","releases_url":"https://api.github.com/repos/w4-sjcho/abseil-py/releases{/id}","deployments_url":"https://api.github.com/repos/w4-sjcho/abseil-py/deployments","created_at":"2018-08-18T11:15:06Z","updated_at":"2018-08-18T11:20:36Z","pushed_at":"2018-08-18T11:20:34Z","git_url":"git://github.com/w4-sjcho/abseil-py.git","ssh_url":"git@github.com:w4-sjcho/abseil-py.git","clone_url":"https://github.com/w4-sjcho/abseil-py.git","svn_url":"https://github.com/w4-sjcho/abseil-py","homepage":"","size":353,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"abseil:master","ref":"master","sha":"b41389e7f3837deab1d622b0568cf2e6f0a05fec","user":{"login":"abseil","id":26718316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzE4MzE2","avatar_url":"https://avatars3.githubusercontent.com/u/26718316?v=4","gravatar_id":"","url":"https://api.github.com/users/abseil","html_url":"https://github.com/abseil","followers_url":"https://api.github.com/users/abseil/followers","following_url":"https://api.github.com/users/abseil/following{/other_user}","gists_url":"https://api.github.com/users/abseil/gists{/gist_id}","starred_url":"https://api.github.com/users/abseil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abseil/subscriptions","organizations_url":"https://api.github.com/users/abseil/orgs","repos_url":"https://api.github.com/users/abseil/repos","events_url":"https://api.github.com/users/abseil/events{/privacy}","received_events_url":"https://api.github.com/users/abseil/received_events","type":"Organization","site_admin":false},"repo":{"id":104132246,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQxMzIyNDY=","name":"abseil-py","full_name":"abseil/abseil-py","owner":{"login":"abseil","id":26718316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzE4MzE2","avatar_url":"https://avatars3.githubusercontent.com/u/26718316?v=4","gravatar_id":"","url":"https://api.github.com/users/abseil","html_url":"https://github.com/abseil","followers_url":"https://api.github.com/users/abseil/followers","following_url":"https://api.github.com/users/abseil/following{/other_user}","gists_url":"https://api.github.com/users/abseil/gists{/gist_id}","starred_url":"https://api.github.com/users/abseil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abseil/subscriptions","organizations_url":"https://api.github.com/users/abseil/orgs","repos_url":"https://api.github.com/users/abseil/repos","events_url":"https://api.github.com/users/abseil/events{/privacy}","received_events_url":"https://api.github.com/users/abseil/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/abseil/abseil-py","description":"Abseil Common Libraries (Python)","fork":false,"url":"https://api.github.com/repos/abseil/abseil-py","forks_url":"https://api.github.com/repos/abseil/abseil-py/forks","keys_url":"https://api.github.com/repos/abseil/abseil-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abseil/abseil-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abseil/abseil-py/teams","hooks_url":"https://api.github.com/repos/abseil/abseil-py/hooks","issue_events_url":"https://api.github.com/repos/abseil/abseil-py/issues/events{/number}","events_url":"https://api.github.com/repos/abseil/abseil-py/events","assignees_url":"https://api.github.com/repos/abseil/abseil-py/assignees{/user}","branches_url":"https://api.github.com/repos/abseil/abseil-py/branches{/branch}","tags_url":"https://api.github.com/repos/abseil/abseil-py/tags","blobs_url":"https://api.github.com/repos/abseil/abseil-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abseil/abseil-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abseil/abseil-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/abseil/abseil-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abseil/abseil-py/statuses/{sha}","languages_url":"https://api.github.com/repos/abseil/abseil-py/languages","stargazers_url":"https://api.github.com/repos/abseil/abseil-py/stargazers","contributors_url":"https://api.github.com/repos/abseil/abseil-py/contributors","subscribers_url":"https://api.github.com/repos/abseil/abseil-py/subscribers","subscription_url":"https://api.github.com/repos/abseil/abseil-py/subscription","commits_url":"https://api.github.com/repos/abseil/abseil-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/abseil/abseil-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/abseil/abseil-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/abseil/abseil-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/abseil/abseil-py/contents/{+path}","compare_url":"https://api.github.com/repos/abseil/abseil-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abseil/abseil-py/merges","archive_url":"https://api.github.com/repos/abseil/abseil-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abseil/abseil-py/downloads","issues_url":"https://api.github.com/repos/abseil/abseil-py/issues{/number}","pulls_url":"https://api.github.com/repos/abseil/abseil-py/pulls{/number}","milestones_url":"https://api.github.com/repos/abseil/abseil-py/milestones{/number}","notifications_url":"https://api.github.com/repos/abseil/abseil-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abseil/abseil-py/labels{/name}","releases_url":"https://api.github.com/repos/abseil/abseil-py/releases{/id}","deployments_url":"https://api.github.com/repos/abseil/abseil-py/deployments","created_at":"2017-09-19T21:45:02Z","updated_at":"2018-08-18T02:58:58Z","pushed_at":"2018-08-15T04:53:37Z","git_url":"git://github.com/abseil/abseil-py.git","ssh_url":"git@github.com:abseil/abseil-py.git","clone_url":"https://github.com/abseil/abseil-py.git","svn_url":"https://github.com/abseil/abseil-py","homepage":"","size":353,"stargazers_count":731,"watchers_count":731,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":74,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":74,"open_issues":3,"watchers":731,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abseil/abseil-py/pulls/69"},"html":{"href":"https://github.com/abseil/abseil-py/pull/69"},"issue":{"href":"https://api.github.com/repos/abseil/abseil-py/issues/69"},"comments":{"href":"https://api.github.com/repos/abseil/abseil-py/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/abseil/abseil-py/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/abseil/abseil-py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abseil/abseil-py/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/abseil/abseil-py/statuses/0ff4ab2172cd2d2cefa993d3c74ac766589d80f8"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":5,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"w4-sjcho"}}