{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/19062","repository_url":"https://api.github.com/repos/edx/edx-platform","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/19062/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/19062/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/19062/events","html_url":"https://github.com/edx/edx-platform/pull/19062","id":366878305,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNDQ1ODk0","number":19062,"title":"Dont allow existing users in db to fail test","user":{"login":"michaelyoungstrom","id":9468017,"node_id":"MDQ6VXNlcjk0NjgwMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/9468017?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelyoungstrom","html_url":"https://github.com/michaelyoungstrom","followers_url":"https://api.github.com/users/michaelyoungstrom/followers","following_url":"https://api.github.com/users/michaelyoungstrom/following{/other_user}","gists_url":"https://api.github.com/users/michaelyoungstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelyoungstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelyoungstrom/subscriptions","organizations_url":"https://api.github.com/users/michaelyoungstrom/orgs","repos_url":"https://api.github.com/users/michaelyoungstrom/repos","events_url":"https://api.github.com/users/michaelyoungstrom/events{/privacy}","received_events_url":"https://api.github.com/users/michaelyoungstrom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":42,"created_at":"2018-10-04T16:45:43Z","updated_at":"2018-10-05T13:33:52Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/19062","html_url":"https://github.com/edx/edx-platform/pull/19062","diff_url":"https://github.com/edx/edx-platform/pull/19062.diff","patch_url":"https://github.com/edx/edx-platform/pull/19062.patch"},"body":"Occasionally this test flaked: [link to failing build](https://build.testeng.edx.org/view/edx-platform-pipeline-pr-tests/job/edx-platform-python-pipeline-pr/789/testReport/junit/openedx.core.djangoapps.external_auth.tests.test_shib/ShibSPTest/Run_Tests___lms_unit___test_extauth_auto_activate_user_with_flag_squelch/). It looks like it was failing when there was an existing user in the database, as we were explicitly expecting the newly created user in the test to have their `user.id` equal `1` . If we check for the number of existing users first, we can plan on what `user.id` to expect, rather than assuming a certain number."},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/427367629","html_url":"https://github.com/edx/edx-platform/pull/19062#issuecomment-427367629","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/19062","id":427367629,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzM2NzYyOQ==","user":{"login":"michaelyoungstrom","id":9468017,"node_id":"MDQ6VXNlcjk0NjgwMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/9468017?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelyoungstrom","html_url":"https://github.com/michaelyoungstrom","followers_url":"https://api.github.com/users/michaelyoungstrom/followers","following_url":"https://api.github.com/users/michaelyoungstrom/following{/other_user}","gists_url":"https://api.github.com/users/michaelyoungstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelyoungstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelyoungstrom/subscriptions","organizations_url":"https://api.github.com/users/michaelyoungstrom/orgs","repos_url":"https://api.github.com/users/michaelyoungstrom/repos","events_url":"https://api.github.com/users/michaelyoungstrom/events{/privacy}","received_events_url":"https://api.github.com/users/michaelyoungstrom/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T13:33:52Z","updated_at":"2018-10-05T13:33:52Z","author_association":"MEMBER","body":"jenkins run pipeline python"}}
{"actor":{"display_login":"michaelyoungstrom"}}