Skip to content

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

Merged
merged 9 commits into from
Jul 18, 2025
Merged

Upgrade install strategy #107

merged 9 commits into from
Jul 18, 2025

Conversation

salvador-barboza
Copy link
Collaborator

No description provided.

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

@Copilot 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
Preview

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy