Skip to content
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

Add dependency JRE availability check before setting up the distribution #329

Merged

Conversation

udda1996
Copy link
Contributor

@udda1996 udda1996 commented Oct 25, 2023

Purpose

Current flow of update path is to download and setup distribution first and then download the dependency for the distribution then if required. In case if the dependency download was failed for some reason, the distribution will be available without the required dependency.

In this PR we assure that the related dependency for a distribution is available before setting up the distribution. If the distribution zip is downloaded successfully but the dependency download was interrupted, the distribution won't setup and it will not be appeared in bal dist list as a locally available distribution. So user will need to re-run the installation command

Goals

fixes #321

Copy link

sonarcloud bot commented Nov 2, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug B 1 Bug
Vulnerability E 2 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@udda1996 udda1996 changed the title Add dependency availability check before setting up the distribution Add dependency JRE availability check before setting up the distribution Dec 14, 2023
@udda1996 udda1996 merged commit ecd8793 into ballerina-platform:master Dec 15, 2023
4 of 5 checks passed
@udda1996 udda1996 added this to the 1.4.3 milestone Jan 30, 2024
@keizer619 keizer619 modified the milestones: 1.4.3, 1.4.4 Aug 23, 2024
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.

Rollback to the initial state if the full update cycle is not completed
2 participants