Avoid redundant recompilation on Reset/Play in C++ exercises
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- build-system, developer-experience
Research direction
Trace the Reset and Play handlers and the build invocation described in the issue. Verify that unchanged C++ source reuses the existing executable while edited source still recompiles; done when Reset followed by Play skips compilation without source changes and recompiles after changes.
Written by the indexing model from the issue text.
Description
Description:
Currently, in the C++ exercises, hitting "Reset" followed by "Play" always triggers a full recompilation of the code. While the recent fix for the pause/resume functionality is great, this recompilation worsens the user experience.
The Problem:
We frequently use the "Reset" button just to restore the robot's initial position and reset the simulation world. Having to wait ~30 seconds for the code to recompile - even when no changes have been made to the source files - significantly slows down the testing workflow and degrades the user experience.
Expected Behavior:
The system should launch the existing executable without recompiling if the user's code hasn't been modified since the last build.
Proposed Solutions:
-
Smart Compilation: Implement a check (e.g., file modification timestamps or hashes) to see if the user's code has changed. Only trigger the build process if changes are detected; otherwise, just run the existing executable.
-
Dedicated Compile Button: Decouple the actions by adding a specific "Compile" button, leaving the "Play" button strictly for execution.
- Dominant language
- Python
- Stars
- 13
- Forks
- 36
- Avg merge
- 22h 32m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JdeRobot/RoboticsApplicationManager
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
JdeRobot/RoboticsApplicationManager#277 · 2 comments ·
-
Failed to import WebGUI and HAL if entrypoint is not in rootMay be free again @javizqh claimed this 249 days ago, and no pull request is open. Open
JdeRobot/RoboticsApplicationManager#275 · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Fix logging in VNC ConsoleMay be free again @AshishRamesh claimed this 521 days ago, and no pull request is open. Opengsoc help wanted ros-native
JdeRobot/RoboticsApplicationManager#222 · 9 comments · 1 assignee ·
All issues in JdeRobot/RoboticsApplicationManager
Similar issues
-
eegprep-lean: set channel types from the Zarr group's channel_typePossibly taken @claude claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
sccn/eegprep#668 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
blacklanternsecurity/bbot#3679 ·
Maintainers usually reply within 2 days
-
Link Checker ReportOpenBot Type: Bug Type: Documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day