-
Notifications
You must be signed in to change notification settings - Fork 276
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
: Improve Docker exception handling and fix race conditions
#8232
Conversation
…n-handling' into bugfix/fix-docker-image-exception-handling
WalkthroughThe modifications aim to enhance the local continuous integration (CI) system in Artemis by improving build job cancellation behavior. Changes include introducing synchronization mechanisms, enhancing Docker integration for build jobs, and improving exception handling to ensure immediate cancellation and proper thread management. Changes
Related issues
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 (
|
...a/de/tum/in/www1/artemis/service/connectors/localci/buildagent/BuildJobExecutionService.java
Show resolved
Hide resolved
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 looks good 👍
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 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.
Demonstrated in testing session! Works 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.
Demonstrated in testing session, works 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.
Reapprove
…n-handling' into bugfix/fix-docker-image-exception-handling
8a99c75
Integrated code lifecycle
: Fix docker image pull exception handlingIntegrated code lifecycle
: Improve Docker exception handling and fix race conditions
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 lgtm. Also tested on staging and works as expected. Fixes issue with missing results in build agent view 🚀
demonstrated in testing session, works 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.
👍
…race conditions (#8232)
Checklist
General
Server
Changes affecting Programming Exercises
Motivation and Context
We encountered some issues where exceptions that occured during Docker image pulls where not handled causing the build job to get stuck.
Description
I moved the image pull logic to the build job execution and increased the timeout so there is enough time for the image to be pulled. Exceptions are now handled gracefully.
I also made the build job cancellation more robust and a locking mechanism to the build agent update logic to ensure consistency
Steps for Testing
Prerequisites:
gitlab.lrz.de:5005/gbs-cm/gbs-tester/gbs:0.0.5
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Performance Review
Code Review
Manual Tests
Summary by CodeRabbit
queueSizeLimit
field for simplification.