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

[Validation test] Address timeouts after deployment #1451

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ci.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function compile::env
: "${JUJU_DEPLOY_BUNDLE:?Must have a bundle defined}"
: "${JUJU_DEPLOY_CHANNEL:?Must have a channel defined}"
: "${JUJU_MODEL:?Must have a model defined}"
: "${JUJU_UPDATE_STATUS_INTERVAL:=150s}"
: "${SERIES:?Must have a release series defined}"
: "${SNAP_VERSION:?Must have a snap version defined}"
: "${JOB_NAME_CUSTOM:?Must have a job name defined}"
Expand Down Expand Up @@ -223,6 +224,7 @@ function ci::run
juju::bootstrap::before
juju::bootstrap
juju::bootstrap::after
juju::model::speed-up
juju::deploy::before
juju::deploy::overlay
juju::deploy
Expand Down
7 changes: 7 additions & 0 deletions juju.bash
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ function juju::bootstrap::after
echo "> skipping after tasks"
}

function juju::model::speed-up
{
# Override the update-status hook rather than the default of 5m
echo "> Setting update-status-hook-interval=${JUJU_UPDATE_STATUS_INTERVAL}"
juju model-config -m "$JUJU_CONTROLLER:$JUJU_MODEL" update-status-hook-interval="${JUJU_UPDATE_STATUS_INTERVAL}"
}

function juju::version
{
# yields the short sem version of juju
Expand Down