-
Notifications
You must be signed in to change notification settings - Fork 307
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
Programming exercises
: Fix build results not available after file import
#10458
base: develop
Are you sure you want to change the base?
Programming exercises
: Fix build results not available after file import
#10458
Conversation
Programming exercises
: fix build results not available after file import
Programming exercises
: fix build results not available after file importProgramming exercises
: Fix build results not available after file import
…s-not-available-after-file-import#8562
WalkthroughThis pull request removes a boolean parameter from several method calls and their corresponding signatures. In particular, the Changes
Sequence Diagram(s)sequenceDiagram
participant Resource as ProgrammingExerciseResource
participant Service as ProgrammingExerciseService
Resource ->> Service: createProgrammingExercise(exercise)
Note over Service: Exercise creation proceeds without the boolean flag.
Service -->> Resource: newProgrammingExercise
sequenceDiagram
participant ImportService as ProgrammingExerciseImportService
participant Service as ProgrammingExerciseService
ImportService ->> Service: setupBuildPlansForNewExercise(newExercise)
Note over Service: Build plans are set up unconditionally.
Service -->> ImportService: buildPlansConfigured
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (1)`src/main/java/**/*.java`: naming:CamelCase; principles:{sin...
🧠 Learnings (1)src/main/java/de/tum/cit/aet/artemis/programming/web/ProgrammingExerciseResource.java (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (6)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
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
@@ -541,13 +538,9 @@ public void setupBuildPlansForNewExercise(ProgrammingExercise programmingExercis | |||
programmingExerciseBuildConfigRepository.saveAndFlush(programmingExercise.getBuildConfig()); | |||
} | |||
|
|||
// if the exercise is imported from a file, the changes fixing the project name will trigger a first build anyway, so |
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.
for context, do you know if the he behavior mentioned in this comment changed, breaking this?
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.
I didn't, but your question made me wonder. fixing the "project name" was never implemented, but it was planned. So this might be a behaviour ahead of its time. I am also currently working on fixing "project name" task. I will freeze this pr and check if planned implementation really fixes the issue. Thanks for the heads up!
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.
I'm not sure though, but it could be a relic from the Bitbucket/Bamboo times of Artemis.
Checklist
General
Server
Changes affecting Programming Exercises
Motivation and Context
Describe the bug
When importing a programming exercise from a file, the build results will not be available.
Programming exercises: Build results not available after file import #8562
Description
setupBuildPlansForNewExercise function had a isImportedFromFile check, which prevented scheduling of the initial build job for corresponding exercise
Steps for Testing
Prerequisites:
Testserver States
You can manage test servers using Helios. Check environment statuses in the environment list. To deploy to a test server, go to the CI/CD page, find your PR or branch, and trigger the deployment.
Review Progress
Performance Review
Code Review
Manual Tests
Performance Tests
Test Coverage
Summary by CodeRabbit