lockable-resources-plugin icon indicating copy to clipboard operation
lockable-resources-plugin copied to clipboard

Resource usage history

Open oleg-kondaurov opened this issue 2 years ago • 13 comments

What feature do you want to see added?

Display the list of jobs, where the resource was used. It may be useful to easily understand if the possible resource outage is the reason of job fail, as some other jobs also failed.

For example, the Credentials plugin has something similar: image

Upstream changes

No response

oleg-kondaurov avatar Jul 06 '23 15:07 oleg-kondaurov

Nice idea. Can be combined with #393 But this feature takes longer then one hot summer night. Maybe good starts for newcommers.

mPokornyETM avatar Jul 08 '23 15:07 mPokornyETM

And maybe we can implement this too ;-) #320

mPokornyETM avatar Sep 01 '23 20:09 mPokornyETM

Hello @oleg-kondaurov, I'd like to work on this issue. Would you please assign this to me?

AniketNS avatar Sep 22 '23 13:09 AniketNS

@mPokornyETM Could you help to assign the issue on @AniketNS please?

oleg-kondaurov avatar Sep 25 '23 07:09 oleg-kondaurov

@AniketNS , when you need help to start here, contact me. I will try to answer ASAP.

mPokornyETM avatar Sep 25 '23 08:09 mPokornyETM

I'm just going to start working on this issue, Sir. Sorry for the delay. I'll be troubling you, whenever I need help.

AniketNS avatar Nov 02 '23 11:11 AniketNS

one hit you need to do like this https://github.com/jenkinsci/lockable-resources-plugin/blob/c9db3ae76e3cccaf6f563e571fc87da2787155f3/src/main/java/org/jenkins/plugins/lockableresources/queue/LockRunListener.java#L60C2-L61C39

in https://github.com/jenkinsci/lockable-resources-plugin/blob/c9db3ae76e3cccaf6f563e571fc87da2787155f3/src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java#L114C4-L114C30

Then it shall works ;-) Maybe we shall change the page design. Because it looks very weird. But that "only" my personal UX

mPokornyETM avatar Nov 02 '23 13:11 mPokornyETM

Hello @mPokornyETM, I looked at the codes from the above links. But I didn't understand anything from it. Can you please guide me a little on what I should do?

AniketNS avatar Nov 09 '23 08:11 AniketNS

@oleg-kondaurov @AniketNS can somebody review this #583 changes pls? It does not fully implement your request. If ound it by implementation and want to fixed in partly PR. Otherwise it will be egain to big PR for review. Thx

mPokornyETM avatar Nov 18 '23 12:11 mPokornyETM

Hello, I didn't get this issue very well and had no idea how to solve this or if this issue is already solved in any other issue. so I'm unassigning from this issue.

AniketNS avatar Jan 02 '24 07:01 AniketNS

Hi @mPokornyETM, I am interested in working on this issue. Could you please assign this to me?

kimchidonut0 avatar Mar 08 '24 01:03 kimchidonut0

Thanks @mPokornyETM.

I was wondering if you could help clarify on the task a bit please. I saw that earlier there was a PR 583 that shows used resource for individual pipeline and freestyle jobs. What should the next step be? Would it be something like creating a centralized display for usages of all lockable resources?

kimchidonut0 avatar Mar 10 '24 04:03 kimchidonut0

yes, an extra page per resource, where will be possible to see the history. Also an page (all sub-tab in main page) where we see the history over all resources will be fine. Like timelines. To see how long it was allocated and how long are other "jobs" waiting. This might take a liitle bit longer.

mPokornyETM avatar Mar 11 '24 09:03 mPokornyETM