-
Notifications
You must be signed in to change notification settings - Fork 4
Upgrade install strategy #107
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
Conversation
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.
Pull Request Overview
This PR refactors the installation strategy for the spark-template development environment by modularizing the tool installation process and improving the coordination between different installation scripts.
- Separates the download/preparation phase from the installation phase across multiple scripts
- Introduces modular installation with specific component targets (services, sdk, cli)
- Replaces temporary directory generation with a fixed
/tmp/spark
location for better predictability
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
.devcontainer/refreshTools.sh |
Simplified to only handle download and preparation, returning release ID for coordination |
.devcontainer/postStartCommand.sh |
Enhanced to orchestrate modular installations of services, sdk, and cli components |
.devcontainer/onCreate.sh |
Updated to use the new coordinated installation approach |
TEMP_DIR=/tmp/spark | ||
rm -rf $TEMP_DIR |
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.
Using a fixed temporary directory path without proper cleanup could lead to race conditions or security issues if multiple instances run concurrently. Consider using a unique subdirectory or ensuring proper isolation.
TEMP_DIR=/tmp/spark | |
rm -rf $TEMP_DIR | |
TEMP_DIR="/tmp/spark-$$" | |
trap "rm -rf $TEMP_DIR" EXIT |
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.