Skip to content

Parametrizing vapor_wrapper.groovy lock (RHELHA-1045) - #51

Open
averenin-spec wants to merge 1 commit into
mainfrom
artem-devel
Open

Parametrizing vapor_wrapper.groovy lock (RHELHA-1045)#51
averenin-spec wants to merge 1 commit into
mainfrom
artem-devel

Conversation

@averenin-spec

Copy link
Copy Markdown
Collaborator

No description provided.

@averenin-spec averenin-spec self-assigned this Jul 24, 2026
@averenin-spec

Copy link
Copy Markdown
Collaborator Author

To parametrize the vapor_wrapper I decided to create a Semaphore structure. For that I have extracted functionality from RWLock and put it into different files, so Semaphore could access it. Functionality of the RWLock is still the same.

@chrissie-c

chrissie-c commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Having looked at this more carefully I don't hate it quite as much as I did last week, but I still think it's huge overkill to completely refactor a central pillar of the CI to please a small (optional) corner of it. I reckon it's possible to add a parameter or a polymorph to RWLock to allow it to to TryAcquire, and then use that in the semaphore. It might look slightly less pretty in the Semaphore code or run slightly slower, but it's protecting things that can take an hour to run...

@averenin-spec

Copy link
Copy Markdown
Collaborator Author

Original RWLock.groovy is unchanged right now, though some duplicity exists.

@averenin-spec
averenin-spec force-pushed the artem-devel branch 3 times, most recently from f28afad to 737d0c6 Compare July 30, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants