{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/569","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/569/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/569/events","html_url":"https://github.com/ampproject/amphtml/issues/569","id":110713180,"number":569,"title":"Experiment with relatively small scale screen shot diffing","user":{"login":"cramforce","id":89679,"avatar_url":"https://avatars.githubusercontent.com/u/89679?v=3","gravatar_id":"","url":"https://api.github.com/users/cramforce","html_url":"https://github.com/cramforce","followers_url":"https://api.github.com/users/cramforce/followers","following_url":"https://api.github.com/users/cramforce/following{/other_user}","gists_url":"https://api.github.com/users/cramforce/gists{/gist_id}","starred_url":"https://api.github.com/users/cramforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramforce/subscriptions","organizations_url":"https://api.github.com/users/cramforce/orgs","repos_url":"https://api.github.com/users/cramforce/repos","events_url":"https://api.github.com/users/cramforce/events{/privacy}","received_events_url":"https://api.github.com/users/cramforce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dvoytenko","id":726049,"avatar_url":"https://avatars.githubusercontent.com/u/726049?v=3","gravatar_id":"","url":"https://api.github.com/users/dvoytenko","html_url":"https://github.com/dvoytenko","followers_url":"https://api.github.com/users/dvoytenko/followers","following_url":"https://api.github.com/users/dvoytenko/following{/other_user}","gists_url":"https://api.github.com/users/dvoytenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dvoytenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvoytenko/subscriptions","organizations_url":"https://api.github.com/users/dvoytenko/orgs","repos_url":"https://api.github.com/users/dvoytenko/repos","events_url":"https://api.github.com/users/dvoytenko/events{/privacy}","received_events_url":"https://api.github.com/users/dvoytenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-09T18:28:25Z","updated_at":"2015-10-09T21:39:03Z","closed_at":null,"body":"Lets experiment with loading AMP websites in the browser on Travis, taking a screenshot and then diffing the screenshot.\r\n\r\nMaybe Travis isn't the right infra and we should use Google Compute Engine or Amazon.\r\n\r\nQuestions:\r\n\r\n- Do we need local copies? Would make it faster. Also avoids generating traffic on the origin.\r\n- We should at least send a specific user agent and or query string.\r\n- Do we replace all ads / iframes with one standard URL for hermetic results?\r\n- What happens if there is a failure? We need some way to approve diffs and submit them as golden files.\r\n- Or instead we always run twice in tests: Once with last version, once with new version and diff. That would not require checking reference images into github.\r\n\r\nWe run the Chrome on Travis on xvfb\r\nhttps://github.com/ampproject/amphtml/blob/master/.travis.yml#L11\r\n\r\nSome resources on diffing\r\nhttp://linuxboxadmin.com/micro-howtos/userland/screenshots-through-xvfb.html\r\n\r\nI think @dvoytenko was already playing with image diffing tools in node.js"},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/146991746","html_url":"https://github.com/ampproject/amphtml/issues/569#issuecomment-146991746","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/569","id":146991746,"user":{"login":"erwinmombay","id":354746,"avatar_url":"https://avatars.githubusercontent.com/u/354746?v=3","gravatar_id":"","url":"https://api.github.com/users/erwinmombay","html_url":"https://github.com/erwinmombay","followers_url":"https://api.github.com/users/erwinmombay/followers","following_url":"https://api.github.com/users/erwinmombay/following{/other_user}","gists_url":"https://api.github.com/users/erwinmombay/gists{/gist_id}","starred_url":"https://api.github.com/users/erwinmombay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erwinmombay/subscriptions","organizations_url":"https://api.github.com/users/erwinmombay/orgs","repos_url":"https://api.github.com/users/erwinmombay/repos","events_url":"https://api.github.com/users/erwinmombay/events{/privacy}","received_events_url":"https://api.github.com/users/erwinmombay/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T21:39:03Z","updated_at":"2015-10-09T21:39:03Z","body":"@dvoytenko do you have the code somewhere? would love to see it"}}