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

Fix conditional installs #186

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

jack-w-shaw
Copy link
Member

It turns out our conditional installs were broken, leading us to attempt to install every time

This is mostly ok, because the installs are mostly idempotent. However, installing azure az cli was more complex, and has started breaking

Fix these conditional steps to properly detect if a binary is present

For conditional install implementation, see here:
https://stackoverflow.com/questions/49849957/bash-conditional-based-on-exit-code-of-command

QA Steps

observe that the following integration test succeeds:
https://jenkins.juju.canonical.com/job/test-network-test-network-health-azure/1911/console

It turns out our conditional installs were broken, leading us to attempt
to install every time

This is mostly ok, because the installs are mostly idempotent. However,
installing azure `az` cli was more complex, and has started breaking

Fix these conditional steps to properly detect if a binary is present
Copy link
Contributor

@Aflynn50 Aflynn50 left a comment

Choose a reason for hiding this comment

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

LGTM

@jack-w-shaw jack-w-shaw merged commit 6def64b into juju:main Jun 28, 2024
2 checks passed
@jack-w-shaw jack-w-shaw deleted the fix_conditional_install branch June 28, 2024 09:19
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.

None yet

2 participants