jenkinsci / lockable-resources-plugin

Lock resources against concurrent use
https://plugins.jenkins.io/lockable-resources
MIT License
88 stars 183 forks source link

Resource usage history #533

Open oleg-kondaurov opened 1 year ago

oleg-kondaurov commented 1 year ago

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

mPokornyETM commented 1 year ago

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

mPokornyETM commented 1 year ago

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

AniketNS commented 1 year ago

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

oleg-kondaurov commented 1 year ago

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

mPokornyETM commented 1 year ago

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

AniketNS commented 11 months ago

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

mPokornyETM commented 11 months ago

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

AniketNS commented 11 months ago

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?

mPokornyETM commented 11 months ago

@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

AniketNS commented 9 months ago

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.

kimchidonut0 commented 7 months ago

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

kimchidonut0 commented 7 months ago

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?

mPokornyETM commented 7 months ago

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.