{"action":"created","issue":{"url":"https://api.github.com/repos/TomMD/jenkins/issues/4","repository_url":"https://api.github.com/repos/TomMD/jenkins","labels_url":"https://api.github.com/repos/TomMD/jenkins/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/TomMD/jenkins/issues/4/comments","events_url":"https://api.github.com/repos/TomMD/jenkins/issues/4/events","html_url":"https://github.com/TomMD/jenkins/pull/4","id":348862523,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3MTE0NDE1","number":4,"title":"Mirror of jenkinsci jenkins#3445","user":{"login":"TomMD","id":137806,"node_id":"MDQ6VXNlcjEzNzgwNg==","avatar_url":"https://avatars2.githubusercontent.com/u/137806?v=4","gravatar_id":"","url":"https://api.github.com/users/TomMD","html_url":"https://github.com/TomMD","followers_url":"https://api.github.com/users/TomMD/followers","following_url":"https://api.github.com/users/TomMD/following{/other_user}","gists_url":"https://api.github.com/users/TomMD/gists{/gist_id}","starred_url":"https://api.github.com/users/TomMD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomMD/subscriptions","organizations_url":"https://api.github.com/users/TomMD/orgs","repos_url":"https://api.github.com/users/TomMD/repos","events_url":"https://api.github.com/users/TomMD/events{/privacy}","received_events_url":"https://api.github.com/users/TomMD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T19:34:35Z","updated_at":"2018-08-08T19:34:57Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/TomMD/jenkins/pulls/4","html_url":"https://github.com/TomMD/jenkins/pull/4","diff_url":"https://github.com/TomMD/jenkins/pull/4.diff","patch_url":"https://github.com/TomMD/jenkins/pull/4.patch"},"body":"Mirror of jenkinsci jenkins#3445\nIn #3436, I started gathering queue API statistics.\r\n\r\nCurrently:\r\n```\r\n1122 / 7087 jenkins.queue.log\r\n      3 ???\r\n     68 All nodes of label ‘LABEL’ are offline\r\n    765 Build # is already in progress (...)\r\n     31 Executor slot already in use\r\n     11 In the quiet period. Expires in # sec\r\n   1203 NODE doesn’t have label LABEL\r\n   2848 NODE is offline\r\n     22 NODE is reserved for jobs with matching label expression\r\n    554 Upstream project PROJECT is already building.\r\n    560 Waiting for next available executor on LABEL\r\n   4575 Waiting for next available executor on NODE\r\n```\r\n\r\nFor each of the three times that I hit this edge `public CauseOfBlockage getCauseOfBlockage() -> CauseOfBlockage.fromMessage(Messages._Queue_Unknown())`, the difference between `inQueueSince` and `timestamp` was \"-5000\". Here's an example:\r\n```js\r\n{ _class: 'hudson.model.Queue',\r\n  discoverableItems: [],\r\n  items:\r\n   [ { _class: 'hudson.model.Queue$WaitingItem',\r\n       actions: [Array],\r\n       blocked: false,\r\n       buildable: false,\r\n       id: 30826,\r\n       inQueueSince: 1525984983231,\r\n       params: '',\r\n       stuck: false,\r\n       task: [Object],\r\n       url: 'queue/item/30826/',\r\n       why: '???',\r\n       timestamp: 1525984988231 } ] }\r\n```\r\n\r\nI'm making two changes:\r\n1. Getting the time first instead of second because time ticks forward which means that the later we get it, the more likely it is to be negative and thus \"confusing\".\r\n2. Including 10,000 milliseconds (10 seconds) of tolerance.\r\n\r\nFor my system, 5,000 milliseconds (5 seconds) would be enough for each of the three times I've hit this edge, but picking the exact count that makes my edge pass makes me queasy.\n"},"comment":{"url":"https://api.github.com/repos/TomMD/jenkins/issues/comments/411525829","html_url":"https://github.com/TomMD/jenkins/pull/4#issuecomment-411525829","issue_url":"https://api.github.com/repos/TomMD/jenkins/issues/4","id":411525829,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTUyNTgyOQ==","user":{"login":"muse-dev[bot]","id":37194012,"node_id":"MDM6Qm90MzcxOTQwMTI=","avatar_url":"https://avatars2.githubusercontent.com/in/9843?v=4","gravatar_id":"","url":"https://api.github.com/users/muse-dev%5Bbot%5D","html_url":"https://github.com/apps/muse-dev","followers_url":"https://api.github.com/users/muse-dev%5Bbot%5D/followers","following_url":"https://api.github.com/users/muse-dev%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/muse-dev%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/muse-dev%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muse-dev%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/muse-dev%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/muse-dev%5Bbot%5D/repos","events_url":"https://api.github.com/users/muse-dev%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/muse-dev%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-08-08T19:34:57Z","updated_at":"2018-08-08T19:34:57Z","author_association":"NONE","body":"# Infer analysis failed\nSrc branch: All build attempts failed: Capture:\n#####  External Process Failed  #####\n`infer capture -R -- mvn compile`\n***STDOUT***\n\n```\n[INFO] Scanning for projects...\n[INFO] ------------------------------------------------------------------------\n[INFO] Reactor Build Order:\n[INFO] \n[INFO] Jenkins cli\n[INFO] Jenkins core\n[INFO] Jenkins war\n[INFO] Tests for Jenkins core\n[INFO] Jenkins main module\n[INFO]                                                                         \n[INFO] ------------------------------------------------------------------------\n[INFO] Building Jenkins cli 2.128-SNAPSHOT\n[INFO] ------------------------------------------------------------------------\nDownloading: http://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3.21/remoting-3.21.pom\n3/20 KB   \r7/20 KB   \r11/20 KB   \r15/20 KB   \r19/20 KB   \r20/20 KB   \r           \rDownloaded: http://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3.21/remoting-3.21.pom (20 KB at 66.9 KB/sec)\nDownloading: http://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3.21/remoting-3.21.jar\n1/753 KB   \r5/753 KB   \r9/753 KB   \r13/753 KB   \r14/753 KB   \r18/753 KB   \r22/753 KB   \r26/753 KB   \r27/753 KB   \r30/753 KB   \r32/753 KB   \r36/753 KB   \r37/753 KB   \r40/753 KB   \r43/753 KB   \r44/753 KB   \r48/753 KB   \r52/753 KB   \r56/753 KB   \r60/753 KB   \r63/753 KB   \r64/753 KB   \r68/753 KB   \r71/753 KB   \r72/753 KB   \r75/753 KB   \r76/753 KB   \r80/753 KB   \r84/753 KB   \r87/753 KB   \r88/753 KB   \r91/753 KB   \r92/753 KB   \r93/753 KB   \r96/753 KB   \r96/753 KB   \r99/753 KB   \r100/753 KB   \r104/753 KB   \r107/753 KB   \r108/753 KB   \r111/753 KB   \r112/753 KB   \r115/753 KB   \r116/753 KB   \r117/753 KB   \r120/753 KB   \r124/753 KB   \r125/753 KB   \r128/753 KB   \r131/753 KB   \r132/753 KB   \r136/753 KB   \r139/753 KB   \r140/753 KB   \r144/753 KB   \r147/753 KB   \r148/753 KB   \r152/753 KB   \r155/753 KB   \r156/753 KB   \r159/753 KB   \r160/753 KB   \r163/753 KB   \r164/753 KB   \r168/753 KB   \r172/753 KB   \r176/753 KB   \r180/753 KB   \r184/753 KB   \r187/753 KB   \r188/753 KB   \r192/753 KB   \r195/753 KB   \r196/753 KB   \r200/753 KB   \r204/753 KB   \r208/753 KB   \r211/753 KB   \r212/753 KB   \r216/753 KB   \r219/753 KB   \r220/753 KB   \r221/753 KB   \r224/753 KB   \r227/753 KB   \r228/753 KB   \r232/753 KB   \r235/753 KB   \r236/753 KB   \r240/753 KB   \r243/753 KB   \r244/753 KB   \r248/753 KB   \r251/753 KB   \r252/753 KB   \r256/753 KB   \r259/753 KB   \r260/753 KB   \r263/753 KB   \r264/753 KB   \r268/753 KB   \r269/753 KB   \r272/753 KB   \r275/753 KB   \r276/753 KB   \r280/753 KB   \r283/753 KB   \r284/753 KB   \r287/753 KB   \r288/753 KB   \r292/753 KB   \r296/753 KB   \r299/753 KB   \r300/753 KB   \r301/753 KB   \r304/753 KB   \r308/753 KB   \r312/753 KB   \r316/753 KB   \r319/753 KB   \r320/753 KB   \r324/753 KB   \r328/753 KB   \r332/753 KB   \r333/753 KB   \r336/753 KB   \r340/753 KB   \r344/753 KB   \r345/753 KB   \r348/753 KB   \r349/753 KB   \r352/753 KB   \r355/753 KB   \r356/753 KB   \r360/753 KB   \r364/753 KB   \r365/753 KB   \r368/753 KB   \r372/753 KB   \r376/753 KB   \r380/753 KB   \r384/753 KB   \r387/753 KB   \r388/753 KB   \r392/753 KB   \r396/753 KB   \r400/753 KB   \r404/753 KB   \r405/753 KB   \r408/753 KB   \r412/753 KB   \r416/753 KB   \r417/753 KB   \r420/753 KB   \r424/753 KB   \r427/753 KB   \r429/753 KB   \r432/753 KB   \r435/753 KB   \r436/753 KB   \r440/753 KB   \r444/753 KB   \r448/753 KB   \r451/753 KB   \r452/753 KB   \r453/753 KB   \r456/753 KB   \r459/753 KB   \r460/753 KB   \r461/753 KB   \r464/753 KB   \r468/753 KB   \r471/753 KB   \r472/753 KB   \r475/753 KB   \r476/753 KB   \r479/753 KB   \r480/753 KB   \r484/753 KB   \r487/753 KB   \r488/753 KB   \r492/753 KB   \r496/753 KB   \r497/753 KB   \r500/753 KB   \r504/753 KB   \r508/753 KB   \r512/753 KB   \r515/753 KB   \r516/753 KB   \r519/753 KB   \r520/753 KB   \r524/753 KB   \r527/753 KB   \r528/753 KB   \r532/753 KB   \r536/753 KB   \r540/753 KB   \r544/753 KB   \r548/753 KB   \r552/753 KB   \r556/753 KB   \r560/753 KB   \r564/753 KB   \r568/753 KB   \r572/753 KB   \r576/753 KB   \r579/753 KB   \r580/753 KB   \r584/753 KB   \r588/753 KB   \r592/753 KB   \r596/753 KB   \r600/753 KB   \r604/753 KB   \r608/753 KB   \r612/753 KB   \r616/753 KB   \r620/753 KB   \r624/753 KB   \r628/753 KB   \r632/753 KB   \r636/753 KB   \r640/753 KB   \r643/753 KB   \r644/753 KB   \r648/753 KB   \r652/753 KB   \r656/753 KB   \r660/753 KB   \r664/753 KB   \r665/753 KB   \r668/753 KB   \r669/753 KB   \r672/753 KB   \r676/753 KB   \r680/753 KB   \r684/753 KB   \r688/753 KB   \r692/753 KB   \r696/753 KB   \r700/753 KB   \r704/753 KB   \r708/753 KB   \r712/753 KB   \r716/753 KB   \r717/753 KB   \r720/753 KB   \r724/753 KB   \r728/753 KB   \r731/753 KB   \r732/753 KB   \r733/753 KB   \r737/753 KB   \r740/753 KB   \r744/753 KB   \r748/753 KB   \r752/753 KB   \r753/753 KB   \r             \rDownloaded: http://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3.21/remoting-3.21.jar (753 KB at 1669.5 KB/sec)\n[INFO] \n[INFO] --- maven-enforcer-plugin:3.0.0-M1:display-info (display-info) @ cli ---\n[INFO] Maven Version: 3.3.9\n[INFO] JDK Version: 1.8.0_161 normalized as: 1.8.0-161\n[INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 4.4.0-104-generic\n[INFO] \n[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (display-info) @ cli ---\n[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:\n3.5.0+ required to use Incrementals.\n[INFO] ------------------------------------------------------------------------\n[INFO] Reactor Summary:\n[INFO] \n[INFO] Jenkins cli ........................................ FAILURE [  1.596 s]\n[INFO] Jenkins core ....................................... SKIPPED\n[INFO] Jenkins war ........................................ SKIPPED\n[INFO] Tests for Jenkins core ............................. SKIPPED\n[INFO] Jenkins main module ................................ SKIPPED\n[INFO] ------------------------------------------------------------------------\n[INFO] BUILD FAILURE\n[INFO] ------------------------------------------------------------------------\n[INFO] Total time: 2.588 s\n[INFO] Finished at: 2018-08-08T12:34:56-07:00\n[INFO] Final Memory: 34M/407M\n[INFO] ------------------------------------------------------------------------\n[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (display-info) on project cli: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]\n[ERROR] \n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\n[ERROR] \n[ERROR] For more information about the errors and possible solutions, please read the following articles:\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\n\n```\n\n***STDERR***\n\n```\nCapturing in maven mode...\nUsage Error: *** Maven command failed:\n*** mvn compile -P infer-capture\n*** exited with code 1\n\n\nError while running epilogue \"restoring Maven's pom.xml to its original state\":\n(Unix.Unix_error \"No such file or directory\" rename\n \"((src /tmp/inferring-63607bc6dab2275f/code/core/pom.xml.infer-orig) (dst /tmp/inferring-63607bc6dab2275f/code/core/pom.xml))\").\nPowering through...\nError while running epilogue \"restoring Maven's pom.xml to its original state\":\n(Unix.Unix_error \"No such file or directory\" rename\n \"((src /tmp/inferring-63607bc6dab2275f/code/war/pom.xml.infer-orig) (dst /tmp/inferring-63607bc6dab2275f/code/war/pom.xml))\").\nPowering through...\nError while running epilogue \"restoring Maven's pom.xml to its original state\":\n(Unix.Unix_error \"No such file or directory\" rename\n \"((src /tmp/inferring-63607bc6dab2275f/code/test/pom.xml.infer-orig) (dst /tmp/inferring-63607bc6dab2275f/code/test/pom.xml))\").\nPowering through...\nError while running epilogue \"restoring Maven's pom.xml to its original state\":\n(Unix.Unix_error \"No such file or directory\" rename\n \"((src /tmp/inferring-63607bc6dab2275f/code/cli/pom.xml.infer-orig) (dst /tmp/inferring-63607bc6dab2275f/code/cli/pom.xml))\").\nPowering through...\nError while running epilogue \"restoring Maven's pom.xml to its original state\":\n(Unix.Unix_error \"No such file or directory\" rename\n \"((src /tmp/inferring-63607bc6dab2275f/code/pom.xml.infer-orig) (dst /tmp/inferring-63607bc6dab2275f/code/pom.xml))\").\nPowering through...\n\n```\n\n\n"}}
{"actor":{"display_login":"muse-dev"}}