Skip to content

feature: Continue installation when some tools fails to install [PLUTO-1417]#106

Merged
andrzej-janczak merged 7 commits into
mainfrom
feature/skip-installations-errors
May 9, 2025
Merged

feature: Continue installation when some tools fails to install [PLUTO-1417]#106
andrzej-janczak merged 7 commits into
mainfrom
feature/skip-installations-errors

Conversation

@andrzej-janczak
Copy link
Copy Markdown
Contributor

@andrzej-janczak andrzej-janczak commented May 8, 2025

Continue installation process when tools fail to install PLUTO-1417

Description

This PR improves the CLI's resilience by continuing the installation process even when individual tools or runtimes fail to install. Previously, any installation failure would stop the entire process. Now users get a complete picture of what succeeded and what failed.

Key Changes

  • Modified installation process to continue even when tools/runtimes fail

  • Added clear visual indicators for installation status:

    • ✓ for successful installations
    • ⚠️ for failed installations
  • Improved final installation summary showing both successes and failures

  • Fixed tool detection issues:

    • Properly handles binary paths across different OS
    • Correctly detects installed tools (like Trivy) on both Windows and Unix systems
  • Bring back windows IT test

…gs - Replace fatal errors with warnings for failed installations of runtimes and tools - Update installation completion message to reflect any failures - Add guideline to remove dead unused code
…lution - Simplify installation status reporting for runtimes and tools by removing redundant checks - Improve handling of relative binary paths in tool installation checks
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 8, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-1.32% 0.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (2a15749) 3959 1498 37.84%
Head commit (c46cdf7) 4102 (+143) 1498 (+0) 36.52% (-1.32%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#106) 188 0 0.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@andrzej-janczak andrzej-janczak enabled auto-merge (squash) May 8, 2025 12:14
Comment thread config/tools-installer.go Outdated
var failedTools []string

for name, toolInfo := range config.Tools() {
logger.Info("Starting tool installation", map[string]interface{}{
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.

Why these ones use a map instead of the logrus?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, changed

@andrzej-janczak andrzej-janczak changed the title Feature/Skip installations errors feature: Continue installation when some tools fails to install [PLUTO-1417] May 9, 2025
@andrzej-janczak andrzej-janczak merged commit 0a57dfa into main May 9, 2025
9 checks passed
@alerizzo alerizzo deleted the feature/skip-installations-errors branch June 3, 2025 09:45
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.

2 participants