Skip to content

fix: delay pebble-ready with background wait#54

Draft
dwilding wants to merge 1 commit into
mainfrom
deploy-timing
Draft

fix: delay pebble-ready with background wait#54
dwilding wants to merge 1 commit into
mainfrom
deploy-timing

Conversation

@dwilding

Copy link
Copy Markdown
Owner

This PR changes how our deploy command works. We now kick off a background process that:

  1. Waits 3 seconds. This lets integration tests continue past a Jubilant wait call that asserts blocked status (for example).
  2. Symlinks the Pebble socket so that the charm code can reach Pebble.
  3. Dispatches pebble-ready to the charm code.

The point of this change is to expose buggy integration tests that try to use the workload container too early in the charm's lifecycle. For example, the current version of k8s-3-postgresql is buggy in this way. The charm immediately blocks on the initial config-changed (because an integration is missing), then the integration tests move on to checking the workload version without requiring the workload container to be ready.


Test failures are expected until we fix the charms in Ops.

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.

1 participant