-
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
: Make result processing more robust against invalid static code analysis file formats
#8307
Conversation
…nvalid sca file formats
WalkthroughThe updates in this set of changes focus on refining the handling of static code analysis and test result files within the build process. By enhancing error handling and exception management, the adjustments aim to promote a more resilient and efficient build operation that can navigate issues with report formats without halting the entire process. Changes
Possibly 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 (
|
Integrated code lifecycle
: Make result processing more robust for invalid sca file formatsIntegrated code lifecycle
: Make result processing more robust against invalid sca file formats
...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.
Tested on TS6.
- Enabled SCA and made a submission with a compile error
- Got a result with build failed ✅
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 ts6 and works as expected
Integrated code lifecycle
: Make result processing more robust against invalid sca file formatsIntegrated code lifecycle
: Make result processing more robust against invalid static code analysis file formats
Checklist
General
Server
Motivation and Context
@LordMuetze encountered an issue on production where students did not see any build results for their submissions.
Description
The issue was caused checkstyle throwing an error when processing a submission with a compilation error, leading to an invalid report file format. Since parsing the file did not work, the whole build did not produce any result at all.
We now catch such exceptions and continue processing the other files.
Steps for Testing
You need a java programming exercise with SCA enabled.
Submit code with a compilation error -> check that a result is visible indicating the compilation error.
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
LocalCIIntegrationTest
to enhance error handling.