Skip to content

Commit

Permalink
fix: Pin Prometheus revision to 137
Browse files Browse the repository at this point in the history
Pin Prometheus revision when deploying from `latest` to avoid fetching
recent patches of the charm which assume `juju >= 3.0.3`. Revision 137
was the last one seen working properly in our CI integration tests.
This is a temporary patch until we migrate to Juju 3.1.

Signed-off-by: Phoevos Kalemkeris <[email protected]>
  • Loading branch information
phoevos committed Sep 1, 2023
1 parent 15330f2 commit 0d31711
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,18 @@ async def test_prometheus_grafana_integration(ops_test: OpsTest):
scrape_config = {"scrape_interval": "30s"}

# Deploy and relate prometheus
await ops_test.model.deploy(prometheus, channel="latest/edge", trust=True)
# FIXME: Unpin revision when https://github.com/canonical/bundle-kubeflow/issues/688 is closed
await ops_test.juju(
[
"deploy",
prometheus,
"--channel",
"latest/edge",
"--revision",
137,
"--trust",
]
)
await ops_test.model.deploy(grafana, channel="latest/edge", trust=True)
await ops_test.model.deploy(prometheus_scrape, channel="latest/beta", config=scrape_config)

Expand Down

0 comments on commit 0d31711

Please sign in to comment.