{"action":"created","issue":{"url":"https://api.github.com/repos/jaimeiniesta/serverless-axe-cli/issues/1","repository_url":"https://api.github.com/repos/jaimeiniesta/serverless-axe-cli","labels_url":"https://api.github.com/repos/jaimeiniesta/serverless-axe-cli/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jaimeiniesta/serverless-axe-cli/issues/1/comments","events_url":"https://api.github.com/repos/jaimeiniesta/serverless-axe-cli/issues/1/events","html_url":"https://github.com/jaimeiniesta/serverless-axe-cli/pull/1","id":341918247,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxOTQwNTEy","number":1,"title":"change from axe-cli to axe-webdriverjs","user":{"login":"jaimeiniesta","id":2629,"node_id":"MDQ6VXNlcjI2Mjk=","avatar_url":"https://avatars0.githubusercontent.com/u/2629?v=4","gravatar_id":"","url":"https://api.github.com/users/jaimeiniesta","html_url":"https://github.com/jaimeiniesta","followers_url":"https://api.github.com/users/jaimeiniesta/followers","following_url":"https://api.github.com/users/jaimeiniesta/following{/other_user}","gists_url":"https://api.github.com/users/jaimeiniesta/gists{/gist_id}","starred_url":"https://api.github.com/users/jaimeiniesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaimeiniesta/subscriptions","organizations_url":"https://api.github.com/users/jaimeiniesta/orgs","repos_url":"https://api.github.com/users/jaimeiniesta/repos","events_url":"https://api.github.com/users/jaimeiniesta/events{/privacy}","received_events_url":"https://api.github.com/users/jaimeiniesta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-07-17T13:25:14Z","updated_at":"2018-07-23T14:00:16Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/jaimeiniesta/serverless-axe-cli/pulls/1","html_url":"https://github.com/jaimeiniesta/serverless-axe-cli/pull/1","diff_url":"https://github.com/jaimeiniesta/serverless-axe-cli/pull/1.diff","patch_url":"https://github.com/jaimeiniesta/serverless-axe-cli/pull/1.patch"},"body":"As indicated by @stephenmathieson for the v3 move we'll need to stop using axe-cli and change to axe-webdriverjs instead.\r\n\r\nThis PR holds the required changes for that. It's still not working, I run into the following error:\r\n\r\n```\r\n➔ serverless logs -f a11yCheck -t\r\n2018-07-17 15:15:52.417 (+02:00)\t875a73a3-89c3-11e8-8226-139d2a5cf667\tLoading function\r\nSTART RequestId: 875a73a3-89c3-11e8-8226-139d2a5cf667 Version: $LATEST\r\n2018-07-17 15:15:52.947 (+02:00)\t875a73a3-89c3-11e8-8226-139d2a5cf667\tLet's check http://example.com\r\nEND RequestId: 875a73a3-89c3-11e8-8226-139d2a5cf667\r\nREPORT RequestId: 875a73a3-89c3-11e8-8226-139d2a5cf667\tDuration: 1306.42 ms\tBilled Duration: 1400 ms \tMemory Size: 1024 MB\tMax Memory Used: 116 MB\r\n\r\nSTART RequestId: aef6fc27-89c3-11e8-b780-993f84d9ed46 Version: $LATEST\r\n2018-07-17 15:16:58.267 (+02:00)\taef6fc27-89c3-11e8-b780-993f84d9ed46\tLet's check http://example.com\r\n2018-07-17 15:16:58.267 (+02:00)\taef6fc27-89c3-11e8-b780-993f84d9ed46\tError occured in serverless-plugin-chrome wrapper when trying to ensure Chrome for a11yCheck() handler. { flags: [] } Error: The previously configured ChromeDriver service is still running. You must shut it down before you may adjust its configuration.\r\n    at Object.setDefaultService (/var/task/node_modules/selenium-webdriver/chrome.js:288:11)\r\n    at Object.module.exports.a11yCheck (/var/task/69zqevix96y___handler.js:18:10)\r\n    at then.instance (/var/task/handler.js:13:15)\r\n    at <anonymous>\r\n2018-07-17 15:16:58.270 (+02:00)\taef6fc27-89c3-11e8-b780-993f84d9ed46\t{\"errorMessage\":\"The previously configured ChromeDriver service is still running. You must shut it down before you may adjust its configuration.\",\"errorType\":\"Error\",\"stackTrace\":[\"Object.setDefaultService (/var/task/node_modules/selenium-webdriver/chrome.js:288:11)\",\"Object.module.exports.a11yCheck (/var/task/69zqevix96y___handler.js:18:10)\",\"then.instance (/var/task/handler.js:13:15)\",\"<anonymous>\"]}\r\n2018-07-17 15:16:58.311 (+02:00)\taef6fc27-89c3-11e8-b780-993f84d9ed46\tError: Server terminated early with status 1\r\n    at earlyTermination.catch.e (/var/task/node_modules/selenium-webdriver/remote/index.js:252:52)\r\n    at <anonymous>\r\n    at process._tickDomainCallback (internal/process/next_tick.js:228:7)\r\nFrom: Task: WebDriver.createSession()\r\n    at Function.createSession (/var/task/node_modules/selenium-webdriver/lib/webdriver.js:769:24)\r\n    at Function.createSession (/var/task/node_modules/selenium-webdriver/chrome.js:761:15)\r\n    at createDriver (/var/task/node_modules/selenium-webdriver/index.js:170:33)\r\n    at Builder.build (/var/task/node_modules/selenium-webdriver/index.js:642:16)\r\n    at Object.module.exports.a11yCheck (/var/task/69zqevix96y___handler.js:24:6)\r\n    at then.instance (/var/task/handler.js:13:15)\r\n    at <anonymous>\r\nEND RequestId: aef6fc27-89c3-11e8-b780-993f84d9ed46\r\nREPORT RequestId: aef6fc27-89c3-11e8-b780-993f84d9ed46\tDuration: 190.79 ms\tBilled Duration: 200 ms \tMemory Size: 1024 MB\tMax Memory Used: 121 MB\r\n\r\nRequestId: aef6fc27-89c3-11e8-b780-993f84d9ed46 Process exited before completing request\r\n```"},"comment":{"url":"https://api.github.com/repos/jaimeiniesta/serverless-axe-cli/issues/comments/407067871","html_url":"https://github.com/jaimeiniesta/serverless-axe-cli/pull/1#issuecomment-407067871","issue_url":"https://api.github.com/repos/jaimeiniesta/serverless-axe-cli/issues/1","id":407067871,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzA2Nzg3MQ==","user":{"login":"jaimeiniesta","id":2629,"node_id":"MDQ6VXNlcjI2Mjk=","avatar_url":"https://avatars0.githubusercontent.com/u/2629?v=4","gravatar_id":"","url":"https://api.github.com/users/jaimeiniesta","html_url":"https://github.com/jaimeiniesta","followers_url":"https://api.github.com/users/jaimeiniesta/followers","following_url":"https://api.github.com/users/jaimeiniesta/following{/other_user}","gists_url":"https://api.github.com/users/jaimeiniesta/gists{/gist_id}","starred_url":"https://api.github.com/users/jaimeiniesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaimeiniesta/subscriptions","organizations_url":"https://api.github.com/users/jaimeiniesta/orgs","repos_url":"https://api.github.com/users/jaimeiniesta/repos","events_url":"https://api.github.com/users/jaimeiniesta/events{/privacy}","received_events_url":"https://api.github.com/users/jaimeiniesta/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T14:00:16Z","updated_at":"2018-07-23T14:00:16Z","author_association":"OWNER","body":"> This is likely due to the Chromium version included in Puppeteer. If you set the PUPPETEER_SKIP_CHROMIUM_DOWNLOAD env var, it'll skip downloading Chromium and will be 100s of MB smaller.\r\n\r\nIt must be it, but if I do that, then I get this error on the lambda logs:\r\n\r\n> 2018-07-23 15:55:50.009 (+02:00)\t1ae037c8-8e80-11e8-8a7b-f98f8d63b219\t(node:1) UnhandledPromiseRejectionWarning: Error: Chromium revision is not downloaded. Run \"npm install\" or \"yarn install\"\r\n    at assert (/var/task/node_modules/puppeteer/lib/helper.js:282:11)\r\n    at Function.launch (/var/task/node_modules/puppeteer/lib/Launcher.js:106:7)\r\n    at <anonymous>\r\n\r\nI guess I'm doing something wrong here, what I did is:\r\n\r\n1.- Set up `PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true` in my dev machine.\r\n2.- Run `npm install` in my dev machine.\r\n3.- Deploy with `serverless deploy`.\r\n\r\nIt deploys fine, now the bundle is like 50 mb, but then it fails in lambda due to missing Chromium. :confused:"}}
{"actor":{"display_login":"jaimeiniesta"}}