{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/604","labels_url":"https://api.github.com/repos/facebook/buck/issues/604/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/604/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/604/events","html_url":"https://github.com/facebook/buck/issues/604","id":125059228,"number":604,"title":"No-op build performance degradation after upgrade to new Buck version","user":{"login":"davido","id":347173,"avatar_url":"https://avatars.githubusercontent.com/u/347173?v=3","gravatar_id":"","url":"https://api.github.com/users/davido","html_url":"https://github.com/davido","followers_url":"https://api.github.com/users/davido/followers","following_url":"https://api.github.com/users/davido/following{/other_user}","gists_url":"https://api.github.com/users/davido/gists{/gist_id}","starred_url":"https://api.github.com/users/davido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davido/subscriptions","organizations_url":"https://api.github.com/users/davido/orgs","repos_url":"https://api.github.com/users/davido/repos","events_url":"https://api.github.com/users/davido/events{/privacy}","received_events_url":"https://api.github.com/users/davido/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sdwilsh","id":656602,"avatar_url":"https://avatars.githubusercontent.com/u/656602?v=3","gravatar_id":"","url":"https://api.github.com/users/sdwilsh","html_url":"https://github.com/sdwilsh","followers_url":"https://api.github.com/users/sdwilsh/followers","following_url":"https://api.github.com/users/sdwilsh/following{/other_user}","gists_url":"https://api.github.com/users/sdwilsh/gists{/gist_id}","starred_url":"https://api.github.com/users/sdwilsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdwilsh/subscriptions","organizations_url":"https://api.github.com/users/sdwilsh/orgs","repos_url":"https://api.github.com/users/sdwilsh/repos","events_url":"https://api.github.com/users/sdwilsh/events{/privacy}","received_events_url":"https://api.github.com/users/sdwilsh/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-01-05T21:50:33Z","updated_at":"2016-01-07T16:12:05Z","closed_at":null,"body":"After upgrade to the recent Buck version (930e9c3401691a6d2c2adf439a57006080bd08e4) I'm seeing  severe performance degradation on No-op build ~5-10 seconds until the command is done. Verbose output reveals `Awaiting termination of HTTP Write executor service. Waiting for all jobs to complete, or up to maximum of 1800 seconds`.\r\n\r\n```\r\n  $ buck build //gerrit-gwtui:ui_safari --verbose 42\r\n[...]\r\nBUILT //gerrit-gwtui:ui_safari (1/193 JOBS)\r\n[-] BUILDING...FINISHED 0.2s [100%]\r\n[com.facebook.buck.event.listener.LoggingBuildListener] BuildActionGraphProcessed(181 of 185)\r\n[2016-01-05 22:48:48.778][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildActionGraphProcessed(182 of 185)\r\n[2016-01-05 22:48:48.778][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildActionGraphProcessed(183 of 185)\r\n[2016-01-05 22:48:48.780][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildActionGraphProcessed(184 of 185)\r\n[2016-01-05 22:48:48.781][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildActionGraphProcessed(185 of 185)\r\n[2016-01-05 22:48:48.781][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildActionGraphFinished()\r\n[2016-01-05 22:48:48.787][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] RuleCountCalculated(//gerrit-gwtui:ui_safari)\r\n[2016-01-05 22:48:48.787][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.0)\r\n[2016-01-05 22:48:48.791][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.01)\r\n[2016-01-05 22:48:48.799][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.02)\r\n[2016-01-05 22:48:48.801][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.03)\r\n[2016-01-05 22:48:48.802][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.04)\r\n[2016-01-05 22:48:48.804][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.05)\r\n[2016-01-05 22:48:48.805][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.06)\r\n[2016-01-05 22:48:48.806][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.07)\r\n[2016-01-05 22:48:48.808][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.08)\r\n[2016-01-05 22:48:48.809][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.09)\r\n[2016-01-05 22:48:48.811][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.1)\r\n[2016-01-05 22:48:48.813][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.11)\r\n[2016-01-05 22:48:48.814][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=0.12)\r\n[2016-01-05 22:48:48.816][info ][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] Build finished at 2016-01-05 22:48:48.816\r\n[2016-01-05 22:48:48.816][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] BuildProgressUpdated(progress=1.0)\r\n[2016-01-05 22:48:53.360][info ][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2008][com.facebook.buck.cli.Main] Awaiting termination of HTTP Write executor service. Waiting for all jobs to complete, or up to maximum of 1800 seconds...\r\n[2016-01-05 22:48:53.360][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] HttpArtifactCacheEvent.Shutdown(HttpArtifactCacheEvent.ShutdownEventKey{value=90625})\r\n[2016-01-05 22:48:53.360][debug][command:9b7d60cd-4f24-4458-b1d3-39610dbf131d][tid:2019][com.facebook.buck.event.listener.LoggingBuildListener] CommandFinished(build, isDaemon: true)\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/169710412","html_url":"https://github.com/facebook/buck/issues/604#issuecomment-169710412","issue_url":"https://api.github.com/repos/facebook/buck/issues/604","id":169710412,"user":{"login":"sdwilsh","id":656602,"avatar_url":"https://avatars.githubusercontent.com/u/656602?v=3","gravatar_id":"","url":"https://api.github.com/users/sdwilsh","html_url":"https://github.com/sdwilsh","followers_url":"https://api.github.com/users/sdwilsh/followers","following_url":"https://api.github.com/users/sdwilsh/following{/other_user}","gists_url":"https://api.github.com/users/sdwilsh/gists{/gist_id}","starred_url":"https://api.github.com/users/sdwilsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdwilsh/subscriptions","organizations_url":"https://api.github.com/users/sdwilsh/orgs","repos_url":"https://api.github.com/users/sdwilsh/repos","events_url":"https://api.github.com/users/sdwilsh/events{/privacy}","received_events_url":"https://api.github.com/users/sdwilsh/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T16:12:05Z","updated_at":"2016-01-07T16:12:05Z","body":"https://github.com/facebook/buck/blob/master/src/com/facebook/buck/parser/ParallelPerBuildState.java#L396\r\n\r\nI'm probably not going to get a fix for that in today, but tomorrow is promising!  Feel free to get a PR up if you want it fixed sooner.  That constant can go down, and we probably need to re-evaluate how we kill that off too."}}