Skip to content
This repository was archived by the owner on Sep 17, 2026. It is now read-only.

Upgrade install strategy - #107

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

salvador-barboza merged 9 commits into
mainfrom
upgrade-install-v2

Conversation

@salvador-barboza

Copy link
Copy Markdown
Collaborator

No description provided.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 thread .devcontainer/postStartCommand.sh Outdated
Comment thread .devcontainer/postStartCommand.sh Outdated
Comment on lines +10 to +11
TEMP_DIR=/tmp/spark
rm -rf $TEMP_DIR

Copilot AI Jul 18, 2025

Copy link

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
@salvador-barboza
salvador-barboza deleted the upgrade-install-v2 branch July 18, 2025 20:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants