Skip to content

Upgrade install strategy#107

Merged
salvador-barboza merged 9 commits intomainfrom
upgrade-install-v2
Jul 18, 2025
Merged

Upgrade install strategy#107
salvador-barboza merged 9 commits intomainfrom
upgrade-install-v2

Conversation

@salvador-barboza
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings July 18, 2025 18:41
Copy link
Contributor

Copilot AI left a 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

Comment on lines +10 to +11
TEMP_DIR=/tmp/spark
rm -rf $TEMP_DIR
Copy link

Copilot AI Jul 18, 2025

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.

Suggested change
TEMP_DIR=/tmp/spark
rm -rf $TEMP_DIR
TEMP_DIR="/tmp/spark-$$"
trap "rm -rf $TEMP_DIR" EXIT

Copilot uses AI. Check for mistakes.
salvador-barboza and others added 2 commits July 18, 2025 16:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@salvador-barboza salvador-barboza merged commit e9b03b9 into main Jul 18, 2025
2 checks passed
@salvador-barboza salvador-barboza deleted the upgrade-install-v2 branch July 18, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments