{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/21865","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/21865/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/21865/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/21865/events","html_url":"https://github.com/Automattic/wp-calypso/pull/21865","id":291939347,"number":21865,"title":"Add stacktrace-translate tool","user":{"login":"coderkevin","id":945228,"avatar_url":"https://avatars2.githubusercontent.com/u/945228?v=4","gravatar_id":"","url":"https://api.github.com/users/coderkevin","html_url":"https://github.com/coderkevin","followers_url":"https://api.github.com/users/coderkevin/followers","following_url":"https://api.github.com/users/coderkevin/following{/other_user}","gists_url":"https://api.github.com/users/coderkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderkevin/subscriptions","organizations_url":"https://api.github.com/users/coderkevin/orgs","repos_url":"https://api.github.com/users/coderkevin/repos","events_url":"https://api.github.com/users/coderkevin/events{/privacy}","received_events_url":"https://api.github.com/users/coderkevin/received_events","type":"User","site_admin":false},"labels":[{"id":285010074,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Build","name":"Build","color":"bfdadc","default":false},{"id":285010018,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"coderkevin","id":945228,"avatar_url":"https://avatars2.githubusercontent.com/u/945228?v=4","gravatar_id":"","url":"https://api.github.com/users/coderkevin","html_url":"https://github.com/coderkevin","followers_url":"https://api.github.com/users/coderkevin/followers","following_url":"https://api.github.com/users/coderkevin/following{/other_user}","gists_url":"https://api.github.com/users/coderkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderkevin/subscriptions","organizations_url":"https://api.github.com/users/coderkevin/orgs","repos_url":"https://api.github.com/users/coderkevin/repos","events_url":"https://api.github.com/users/coderkevin/events{/privacy}","received_events_url":"https://api.github.com/users/coderkevin/received_events","type":"User","site_admin":false},"assignees":[{"login":"coderkevin","id":945228,"avatar_url":"https://avatars2.githubusercontent.com/u/945228?v=4","gravatar_id":"","url":"https://api.github.com/users/coderkevin","html_url":"https://github.com/coderkevin","followers_url":"https://api.github.com/users/coderkevin/followers","following_url":"https://api.github.com/users/coderkevin/following{/other_user}","gists_url":"https://api.github.com/users/coderkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderkevin/subscriptions","organizations_url":"https://api.github.com/users/coderkevin/orgs","repos_url":"https://api.github.com/users/coderkevin/repos","events_url":"https://api.github.com/users/coderkevin/events{/privacy}","received_events_url":"https://api.github.com/users/coderkevin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-01-26T15:37:22Z","updated_at":"2018-02-05T11:49:36Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/21865","html_url":"https://github.com/Automattic/wp-calypso/pull/21865","diff_url":"https://github.com/Automattic/wp-calypso/pull/21865.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/21865.patch"},"body":"This adds a tool to translate a minified stacktrace to a meaningful one.\r\n\r\nTo Test:\r\n\r\n1. Find an error from logstash in kibana that you want to investigate.\r\n2. Copy the commit sha from the \"commit\" field.\r\n3. Run `git checkout <commit sha>`\r\n4. Before running the next step, you will have to modify `package.json` in accordance with PR #22066 or you will likely run out of memory. (only necessary until that #22066 gets merged)\r\n5. Run `CALYPSO_ENV=production SOURCEMAP=hidden-source-map npm run build`\r\n6. Run `git checkout -- package.json` so you can do another checkout (only necessary until #22066 is merged)\r\n7. Run `git checkout add/stacktrace-translate-tool` (only necessary until this PR is merged)\r\n8. Run `npm install` (to ensure the extra npm dependency is present)\r\n9. Going back to kibana, copy the \"trace\" field to your clipboard. (I use triple-click to select)\r\n10. Run `./bin/stacktrace-translate.js -v`\r\n11. Paste the trace into the terminal.\r\n12. Observe the results.\r\n\r\nI've checked the results for several errors, and while some do work exactly as expected, others do not yet because of minified `node_module`bundles that are re-bundled into our own. Also, the traces seem to be one stack frame below the actual error, so if you search for error text, you likely won't find it in stack frame [0] code.\r\n\r\nFurther work may be needed to perhaps improve the stack traces given to logstash, and to un-minify dependent modules (if that's what we really want to do).\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/363062478","html_url":"https://github.com/Automattic/wp-calypso/pull/21865#issuecomment-363062478","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/21865","id":363062478,"user":{"login":"sirreal","id":841763,"avatar_url":"https://avatars2.githubusercontent.com/u/841763?v=4","gravatar_id":"","url":"https://api.github.com/users/sirreal","html_url":"https://github.com/sirreal","followers_url":"https://api.github.com/users/sirreal/followers","following_url":"https://api.github.com/users/sirreal/following{/other_user}","gists_url":"https://api.github.com/users/sirreal/gists{/gist_id}","starred_url":"https://api.github.com/users/sirreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirreal/subscriptions","organizations_url":"https://api.github.com/users/sirreal/orgs","repos_url":"https://api.github.com/users/sirreal/repos","events_url":"https://api.github.com/users/sirreal/events{/privacy}","received_events_url":"https://api.github.com/users/sirreal/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T11:49:36Z","updated_at":"2018-02-05T11:49:36Z","author_association":"CONTRIBUTOR","body":"We can cherry pick the required changes directly onto the commit which can simplify the process (4 -7)\r\n\r\n> 4. Before running the next step, you will have to modify `package.json` in accordance with PR #22066 or you will likely run out of memory. (only necessary until that #22066 gets merged)\r\n> 5. Run `CALYPSO_ENV=production SOURCEMAP=hidden-source-map npm run build`\r\n> 6. Run `git checkout -- package.json` so you can do another checkout (only necessary until #22066 is merged)\r\n> 7. Run `git checkout add/stacktrace-translate-tool` (only necessary until this PR is merged)\r\n> \r\n\r\nBecome:\r\n\r\n```sh\r\ngit cherry-pick --no-commit e80537e59977543f93e6b3b12c83faf7b31e04b8 05896b8aa9bc29e4aeacef418722acb2d2b874e5\r\n```\r\n\r\nJust remember there are changes to your working tree now 😉 "}}
{"actor":{"display_login":"sirreal"}}