[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title Vivek Pandey resolved as Fixed Jenkins / JENKINS-36208 Queued items are not showing up Change By: Vivek Pandey Status: In Progress Resolved Resolution: Fixed Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title Vivek Pandey commented on JENKINS-36208 Re: Queued items are not showing up PR https://github.com/jenkinsci/blueocean-plugin/pull/305 submitted. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title Cliff Meyers commented on JENKINS-36208 Re: Queued items are not showing up Right but on initial page load we still need to make a call to fetch the queue, otherwise if the user is coming in for the first time and many builds are queued, they won't display. We just need to test whether the REST API is currently fetching enough data for a queued item to reasonably display. In all my local testing, anything that gets queued immediately goes into run state. Guess I should decrease the number of executors next time I test. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title Thorsten Scherler commented on JENKINS-36208 Re: Queued items are not showing up Yeah two calls would work, but preferable we use it in combination with sse, meaning if the queue changes we refetch that change if we still interested in that change. ...but that is basically what Vivek Pandey is saying with the QueueListener, in which we should then fire sse for ux. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay commented on JENKINS-36208 Re: Queued items are not showing up how should we sort the data on this screen? Would all queued items always display at the top of list, "ahead" of anything that was run or is currently running? Cliff Meyers that works for me. They should be ordered by their queued date? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title Vivek Pandey started work on JENKINS-36208 Change By: Vivek Pandey Status: Open In Progress Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title Cliff Meyers commented on JENKINS-36208 Re: Queued items are not showing up I think we can make this work okay with two calls. If down the road we need start adding more calls for additional features, we may need to consider combining runs and queued items into a single call but for now I think we could get away without doing that. Thorsten Scherler what do you think? James Dumay how should we sort the data on this screen? Would all queued items always display at the top of list, "ahead" of anything that was run or is currently running? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay updated an issue Jenkins / JENKINS-36208 Queued items are not showing up Change By: James Dumay Priority: Major Critical Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay updated an issue Jenkins / JENKINS-36208 Queued items are not showing up Change By: James Dumay Priority: Blocker Major Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay commented on JENKINS-36208 Re: Queued items are not showing up Vivek Panday please also consult Cliff Meyers or Thorsten Scherler on what the most desirable API for this would be in the rest. In order to build the activity tab contents we would have to make two calls - one for listing runs and another for the queue. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title Vivek Pandey commented on JENKINS-36208 Re: Queued items are not showing up Chatting with James Dumay, here is plan of action: For efficiency, queued Items are cached, preferably using QueueListener, cache is managed as items in queue are added or leaving. MultiBranchPipelineImpl.getQueue() implementation looks in to the cache and returns list of queued items in latest first order Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title Vivek Pandey edited a comment on JENKINS-36208 Re: Queued items are not showing up [~jamesdumay] Its O \ (n \ ) cost in backend too. No easy way. Besides we can't serve queued items in run till Jenkins core makes projected build id as guaranteed id. For example, if a queued items is served in run, the id element is fake and if someone does GET using this id, it wont work. We can't use queueId because its not indexed and very expensive so should be avoided for frequently accessed APIs like run. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title Vivek Pandey commented on JENKINS-36208 Re: Queued items are not showing up James Dumay Its O cost in backend too. No easy way. Besides we can't serve queued items in run till Jenkins core makes projected build id as guaranteed id. For example, if a queued items is served in run, the id element is fake and if someone does GET using this id, it wont work. We can't use queueId because its not indexed and very expensive so should be avoided for frequently accessed APIs like run. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay edited a comment on JENKINS-36208 Re: Queued items are not showing up [~vivek] [~imeredith] it looks like this API could never work well for blue oceans needs.The current API would work OK (not desirable to have two calls rather than one) for freestyle because the client could do a call to fetch all the runs and another call to fetch the queue.For multi-branch this is dire - the requests 2+O\(n)!With thecurrent API rendering the Activity screen for multi-branch: * 1 call to fetch runs {{/runs}}* 1 call to fetch all branches {{/branches/}}* N calls to fetch all the queued items for all branches {{/branch/$branch/queue/}}We need to go back to the drawing board on this...It would be easier if you could always expect that {{/runs}} also returned the queue - regardless of the pipeline type so that the UI can avoid special casing and the problem described above. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay edited a comment on JENKINS-36208 Re: Queued items are not showing up [~vivek] [~imeredith] it looks like this API could never work well for blue ocean oceans needs . With this The current API /runs would work OK (not desirable to have two calls rather than one) for freestyle because the client could do a call to fetch all the runs and another call to fetch the queue.For multi-branch this is dire - its the requests 2+O\(n)! With the * 1 call to fetch runs {{/runs}} * 1 call to fetch all branches {{/branches/}} * N calls to fetch all the queued items for all branches {{/branch/$branch/queue/}} We need to go back to the drawing board on this. .. It would be easier if you could always expect that {{/runs}} also returned the queue - regardless of the pipeline type so that the UI can avoid special casing and the problem described above . Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay edited a comment on JENKINS-36208 Re: Queued items are not showing up [~vivek] [~imeredith] it looks like this API could never work for blue ocean.With this API /runs would work OK for freestyle because the client could do a call to fetch all the runs and another call to fetch the queue.For multi-branch this is dire - its 2+O\(n)!* 1 call to fetch runs* 1 call to fetch all branches* N calls to fetch all the queued items for all branchesWe need to go back to the drawing board on this.It would be easier if you could always expect that {{/runs}} also returned the queue - regardless of the pipeline information type . Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay edited a comment on JENKINS-36208 Re: Queued items are not showing up [~vivek] [~imeredith] it looks like this API could never work for blue ocean.With this API /runs would work OK for freestyle because the client could do a call to fetch all the runs and another call to fetch the queue.For multi-branch this is dire - its 2+O\(n)!* 1 call to fetch runs* 1 call to fetch all branches* N calls to fetch all the queued items for all branchesWe need to go back to the drawing board on this. It would be easier if you could always expect that {{/runs}} also returned the queue - regardless of the pipeline information. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay edited a comment on JENKINS-36208 Re: Queued items are not showing up [~vivek] [~imeredith] it looks like this API could never work for blue ocean.With this API /runs would work OK for freestyle because the client could do a call to fetch all the runs and another call to fetch the queue.For multi-branch this is dire - its {{ 2+O(n) }} :* 1 call to fetch runs* 1 call to fetch all branches* N calls to fetch all the queued items for all branchesWe need to go back to the drawing board on this. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay edited a comment on JENKINS-36208 Re: Queued items are not showing up [~vivek] [~imeredith] it looks like this API could never work for blue ocean.With this API /runs would work OK for freestyle because the client could do a call to fetch all the runs and another call to fetch the queue.For multi-branch this is dire - its {{ 2+O \ ( n ) }}: ! * 1 call to fetch runs* 1 call to fetch all branches* N calls to fetch all the queued items for all branchesWe need to go back to the drawing board on this. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay edited a comment on JENKINS-36208 Re: Queued items are not showing up [~vivek] [~imeredith] it looks like this API could never work for blue ocean.With this API /runs would work OK for freestyle because the client could do a call to fetch all the runs and another call to fetch the queue.For multi-branch this is dire - its {{2+O(n)}}:* 1 call to fetch runs* 1 call to fetch all branches* N calls to fetch all the queued items for all branchesWe need to go back to the drawing board on this. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay commented on JENKINS-36208 Re: Queued items are not showing up Vivek Pandey Ivan Meredith it looks like this API could never work for blue ocean. With this API /runs would work OK for freestyle because the client could do a call to fetch all the runs and another call to fetch the queue. For multi-branch this is dire - its 2+O: 1 call to fetch runs 1 call to fetch all branches N calls to fetch all the queued items for all branches We need to go back to the drawing board on this. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay updated an issue Jenkins / JENKINS-36208 Queued items are not showing up Change By: James Dumay I ran this job on blueocean.io !classic.png|thumbnail! It didn't show up as queued !blue.png|thumbnail! Calling the REST API there is nothing in the runs{code}charon:~ jdumay$ curl -s https://ci.blueocean.io/blue/rest/organizations/jenkins/pipelines/freestyle/runs/ | json_pp[]{code}But there seems to be items in the queue{code}charon:~ jdumay$ curl -s https://ci.blueocean.io/blue/rest/organizations/jenkins/pipelines/freestyle/queue/ | json_pp [ { "pipeline" : "freestyle", "id" : "545", "_class" : "io.jenkins.blueocean.service.embedded.rest.QueueItemImpl", "queuedTime" : "2016-06-24T04:53:33.867+", "_links" : { "self" : {"href" : "/blue/rest/organizations/jenkins/pipelines/freestyle/queue/545/","_class" : "io.jenkins.blueocean.rest.hal.Link" } }, "expectedBuildNumber" : 1 }]{ code} Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay updated an issue Jenkins / JENKINS-36208 Queued items are not showing up Change By: James Dumay I ran this job on blueocean.io !classic.png|thumbnail! It didn't show up as queued !blue.png|thumbnail! Calling the REST API there is nothing in the queue{code}charon:~ jdumay$ curl -s https://ci.blueocean.io/blue/rest/organizations/jenkins/pipelines/freestyle/ runs queue / | json_pp [] {code} Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay updated an issue Jenkins / JENKINS-36208 Queued items are not showing up Change By: James Dumay Sprint: 1.0-m10 Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36208) Queued items are not showing up
Title: Message Title James Dumay created an issue Jenkins / JENKINS-36208 Queued items are not showing up Issue Type: Bug Assignee: Vivek Pandey Attachments: blue.png, classic.png Components: blueocean-plugin Created: 2016/Jun/24 5:04 AM Priority: Blocker Reporter: James Dumay I ran this job on blueocean.io It didn't show up as queued Calling the REST API there is nothing in the queue charon:~ jdumay$ curl -s https://ci.blueocean.io/blue/rest/organizations/jenkins/pipelines/freestyle/runs/ | json_pp [] Add Comment