{"action":"created","issue":{"url":"https://api.github.com/repos/mcomella/is-it-in-nightly/issues/1","repository_url":"https://api.github.com/repos/mcomella/is-it-in-nightly","labels_url":"https://api.github.com/repos/mcomella/is-it-in-nightly/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mcomella/is-it-in-nightly/issues/1/comments","events_url":"https://api.github.com/repos/mcomella/is-it-in-nightly/issues/1/events","html_url":"https://github.com/mcomella/is-it-in-nightly/issues/1","id":138699857,"number":1,"title":"Requests for changesets not in nightly take a long time to respond","user":{"login":"mcomella","id":759372,"avatar_url":"https://avatars.githubusercontent.com/u/759372?v=3","gravatar_id":"","url":"https://api.github.com/users/mcomella","html_url":"https://github.com/mcomella","followers_url":"https://api.github.com/users/mcomella/followers","following_url":"https://api.github.com/users/mcomella/following{/other_user}","gists_url":"https://api.github.com/users/mcomella/gists{/gist_id}","starred_url":"https://api.github.com/users/mcomella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcomella/subscriptions","organizations_url":"https://api.github.com/users/mcomella/orgs","repos_url":"https://api.github.com/users/mcomella/repos","events_url":"https://api.github.com/users/mcomella/events{/privacy}","received_events_url":"https://api.github.com/users/mcomella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-05T17:19:32Z","updated_at":"2016-03-05T17:23:32Z","closed_at":null,"body":"We scrape hg.mozilla.org via a url like:\r\nhttps://hg.mozilla.org/mozilla-central/changelog?rev=20d90d9a12ce::d8db1845736b\r\n\r\nIf it returns a list of changesets, we scrape it to ensure it's correct.\r\n\r\nHowever, the request spins for a while if the changeset is not found in the repository (which is the case for changesets not yet in Nightly, e.g. they're in fx-team but not yet in mozilla-central). For example:\r\nhttps://hg.mozilla.org/mozilla-central/changelog?rev=20d90d9a12ca::d8db1845736b\r\n\r\n(20d90d9a12ca is not currently in nightly but theoretically be at a future point)\r\n\r\nPerhaps we can make a fast request to ensure the changeset is valid before making a request for the revision set."},"comment":{"url":"https://api.github.com/repos/mcomella/is-it-in-nightly/issues/comments/192692132","html_url":"https://github.com/mcomella/is-it-in-nightly/issues/1#issuecomment-192692132","issue_url":"https://api.github.com/repos/mcomella/is-it-in-nightly/issues/1","id":192692132,"user":{"login":"mcomella","id":759372,"avatar_url":"https://avatars.githubusercontent.com/u/759372?v=3","gravatar_id":"","url":"https://api.github.com/users/mcomella","html_url":"https://github.com/mcomella","followers_url":"https://api.github.com/users/mcomella/followers","following_url":"https://api.github.com/users/mcomella/following{/other_user}","gists_url":"https://api.github.com/users/mcomella/gists{/gist_id}","starred_url":"https://api.github.com/users/mcomella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcomella/subscriptions","organizations_url":"https://api.github.com/users/mcomella/orgs","repos_url":"https://api.github.com/users/mcomella/repos","events_url":"https://api.github.com/users/mcomella/events{/privacy}","received_events_url":"https://api.github.com/users/mcomella/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T17:23:32Z","updated_at":"2016-03-05T17:23:32Z","body":"That seems to work. The invalid changeset:\r\n\r\nhttps://hg.mozilla.org/mozilla-central/changelog/20d90d9a12ca\r\n\r\nReturns instantly with an error. For comparison's sake, here's a valid changeset:\r\n\r\nhttps://hg.mozilla.org/mozilla-central/changelog/20d90d9a12ce"}}