-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrated code lifecycle
: Implement a workaround for hanging build jobs
#8919
Integrated code lifecycle
: Implement a workaround for hanging build jobs
#8919
Conversation
Integrated code lifecycle
: Fix hanging build jobsIntegrated code lifecycle
: Implement a workaround for hanging build jobs
WalkthroughThe primary change in the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant SharedQueueProcessingService
participant BuildQueue
participant NodeManager
Client->>SharedQueueProcessingService: Request to process next build
SharedQueueProcessingService->>NodeManager: Check node availability
NodeManager-->>SharedQueueProcessingService: Response with node status
alt Node available
SharedQueueProcessingService->>BuildQueue: Dequeue and process build job
else Node not available
SharedQueueProcessingService-->>BuildQueue: Re-queue build job
end
SharedQueueProcessingService-->>Client: Confirmation of queue update or processing
alt RejectedExecutionException occurs
BuildQueue->>SharedQueueProcessingService: Raises RejectedExecutionException
SharedQueueProcessingService->>BuildQueue: Re-queues build job
SharedQueueProcessingService->>NodeManager: Refresh build agent info
SharedQueueProcessingService-->>Client: Notification of re-queue due to exception
end
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS3, programming exercises work as expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS3, works as expected. Code also lgtm, but you might consider adding :
to the additional error messages (see comments). However, I do not have a strong opinion on this.
.../tum/in/www1/artemis/service/connectors/localci/buildagent/SharedQueueProcessingService.java
Outdated
Show resolved
Hide resolved
.../tum/in/www1/artemis/service/connectors/localci/buildagent/SharedQueueProcessingService.java
Outdated
Show resolved
Hide resolved
7422bea
@EneaGore @undernagruzez Thanks for your review! However, TS5 doesn't use ICL. Please use TS1, 2, 3 or 4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change LGTM, Reapproval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS1. Lgtm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code
Checklist
General
Server
Changes affecting Programming Exercises
Motivation and Context
Fix hanging build jobs due threadpool being full. Reason why buildagent is marked as available even though pool is full is still unknown
Steps for Testing
Server with ICL
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Test Coverage
Screenshots
Summary by CodeRabbit
RejectedExecutionException
. If an exception occurs, the job is now re-added to the queue, and local build agent information is updated.