Skip to content

zopen upgrade fix in zopen install#1156

Merged
HarithaIBM merged 1 commit intomainfrom
zopen_upgrade_fix
Mar 31, 2026
Merged

zopen upgrade fix in zopen install#1156
HarithaIBM merged 1 commit intomainfrom
zopen_upgrade_fix

Conversation

@sabi789
Copy link
Copy Markdown
Member

@sabi789 sabi789 commented Mar 31, 2026

What type of PR is this? (check all applicable)

  • Bug Fix

Category

  • zopen build framework
  • zopen package manager

Description

Fixes zopen upgrade exit issue
Adjusts zopen-install handling of invalid port/repo names.

@augmentcode
Copy link
Copy Markdown

augmentcode bot commented Mar 31, 2026

🤖 Augment PR Summary

Summary: Adjusts zopen-install handling of invalid port/repo names.
Changes: Downgrades the invalid-port failure from a hard error to a soft error, and adds a conditional exit 1 path intended to avoid upgrade/install exiting inappropriately.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

if [ -n "${invalidlist}" ]; then
printSoftError "The following requested port(s) do not exist:\n\t$(echo "${invalidlist}" | tr -s '[:space:]')"
printError "Check port name(s), remove any port suffixes and retry command."
printSoftError "Check port name(s), remove any port suffixes and retry command."
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

bin/zopen-install:+869: Changing this from printError to printSoftError means the script can now continue (and potentially exit 0) even when invalid ports were requested; that seems inconsistent with the message telling the user to retry and could mask failures for callers that check the exit status.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

fi

for item in ${invalidlist}; do
if [[ "$(echo $item)" == "$(echo $chosenRepo)" ]]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

bin/zopen-install:+873: chosenRepo here is the last value from the earlier loop, so this exit 1 becomes order-dependent (e.g., aborts if an invalid repo happens to be last, but may succeed if the same invalid repo is earlier). This can also abort even when installArray has valid ports queued, which looks like unintended behavior.

Severity: high

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Signed-off-by: sabi789 <sabithac6298@gmail.com>
@sabi789 sabi789 force-pushed the zopen_upgrade_fix branch from 7c54843 to bcbfadc Compare March 31, 2026 11:10
Copy link
Copy Markdown
Member

@IgorTodorovskiIBM IgorTodorovskiIBM left a comment

Choose a reason for hiding this comment

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

LGTM

@HarithaIBM HarithaIBM merged commit 19df57c into main Mar 31, 2026
2 checks passed
@HarithaIBM HarithaIBM deleted the zopen_upgrade_fix branch March 31, 2026 12:38
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