-
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
: Add compile cache to Rust
#10421
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThis pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant S as Script
participant B as Build Function
participant C as Cargo Build Process
S->>B: Invoke build function
B->>C: Execute "cargo build --tests --profile test"
C-->>B: Return build output
B-->>S: Provide build results
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (2)
✨ Finishing Touches
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 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.
tested on ts1, works as expected and builds are faster due to cache
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.
The second build was finished quickly, as described.
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
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
Rust exercises compile all dependencies on every build. This results in long build times.
Description
This PR updates the Docker image to enable compile caching using sccache.
This reduces build times from 15 seconds to 5 seconds.
The changes of the Docker image are in this commit: ls1intum/artemis-rust-docker@09b7608
Code reviews should include the Docker image.
The image installs sccache as a wrapper for rustc and builds a stubbed copy of the exercise template.
This adds the dependency sources to cargo's package cache and the compile artifacts to sccache.
Steps for Testing
Prerequisites:
(This is necessary because the docker image needs to be downloaded the first time the image is used on a server. This would lengthen the build time.)
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
Code Review
Performance Tests
Summary by CodeRabbit