Skip to content

Commit

Permalink
build: bump juju 2.9.44.0, sdi->0.7.0, pyyaml->6.0.1 (#98)
Browse files Browse the repository at this point in the history
* build: bump juju 2.9.44.0, sdi->0.7.0, pyyaml->6.0.1

Part of canonical/bundle-kubeflow#648

* tests: bump istio-pilot 1.5->1.16 stable
  • Loading branch information
DnPlas authored Aug 9, 2023
1 parent 466b269 commit 4284149
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 30 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
with:
provider: microk8s
channel: 1.24/stable
juju-channel: 2.9/stable
charmcraft-channel: latest/candidate

- name: Test
Expand Down
3 changes: 2 additions & 1 deletion requirements-integration.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
aiohttp
jinja2
juju<3.1
# Pinning to <3.0 due to compatibility with the 2.9 controller version and 3.0 not being maintained anymore
juju<3.0
pytest-operator
requests
-r requirements.txt
24 changes: 17 additions & 7 deletions requirements-integration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./requirements-integration.in
# pip-compile ./requirements-integration.in
#
aiohttp==3.8.3
# via -r ./requirements-integration.in
Expand Down Expand Up @@ -60,6 +60,10 @@ idna==2.10
# -r ./requirements.txt
# requests
# yarl
importlib-resources==6.0.0
# via
# -r ./requirements.txt
# jsonschema
iniconfig==1.1.1
# via pytest
ipdb==0.13.9
Expand All @@ -72,11 +76,11 @@ jinja2==3.1.2
# via
# -r ./requirements-integration.in
# pytest-operator
jsonschema==3.2.0
jsonschema==4.17.3
# via
# -r ./requirements.txt
# serialized-data-interface
juju==3.0.4
juju==2.9.44.0
# via
# -r ./requirements-integration.in
# pytest-operator
Expand Down Expand Up @@ -116,6 +120,10 @@ pexpect==4.8.0
# via ipython
pickleshare==0.7.5
# via ipython
pkgutil-resolve-name==1.3.10
# via
# -r ./requirements.txt
# jsonschema
pluggy==1.0.0
# via pytest
prompt-toolkit==3.0.36
Expand Down Expand Up @@ -164,7 +172,7 @@ python-dateutil==2.8.2
# via kubernetes
pytz==2022.6
# via pyrfc3339
pyyaml==5.4
pyyaml==6.0.1
# via
# -r ./requirements.txt
# juju
Expand All @@ -186,14 +194,12 @@ requests-oauthlib==1.3.1
# via kubernetes
rsa==4.9
# via google-auth
serialized-data-interface==0.3.5
serialized-data-interface==0.3.6
# via -r ./requirements.txt
six==1.16.0
# via
# -r ./requirements.txt
# asttokens
# google-auth
# jsonschema
# kubernetes
# macaroonbakery
# paramiko
Expand Down Expand Up @@ -230,6 +236,10 @@ websockets==7.0
# via juju
yarl==1.8.2
# via aiohttp
zipp==3.16.2
# via
# -r ./requirements.txt
# importlib-resources

# The following packages are considered to be unsafe in a requirements file:
# setuptools
27 changes: 16 additions & 11 deletions requirements-unit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./requirements-unit.in
# pip-compile ./requirements-unit.in
#
attrs==22.1.0
# via
Expand All @@ -25,9 +25,13 @@ idna==2.10
# via
# -r ./requirements.txt
# requests
importlib-resources==6.0.0
# via
# -r ./requirements.txt
# jsonschema
iniconfig==1.1.1
# via pytest
jsonschema==3.2.0
jsonschema==4.17.3
# via
# -r ./requirements.txt
# serialized-data-interface
Expand All @@ -39,6 +43,10 @@ ops==1.5.4
# serialized-data-interface
packaging==22.0
# via pytest
pkgutil-resolve-name==1.3.10
# via
# -r ./requirements.txt
# jsonschema
pluggy==1.0.0
# via pytest
pyrsistent==0.19.2
Expand All @@ -54,7 +62,7 @@ pytest-lazy-fixture==0.6.3
# via -r ./requirements-unit.in
pytest-mock==3.10.0
# via -r ./requirements-unit.in
pyyaml==5.4
pyyaml==6.0.1
# via
# -r ./requirements.txt
# ops
Expand All @@ -63,18 +71,15 @@ requests==2.25.0
# via
# -r ./requirements.txt
# serialized-data-interface
serialized-data-interface==0.3.5
serialized-data-interface==0.3.6
# via -r ./requirements.txt
six==1.16.0
# via
# -r ./requirements.txt
# jsonschema
tomli==2.0.1
# via pytest
urllib3==1.26.13
# via
# -r ./requirements.txt
# requests

# The following packages are considered to be unsafe in a requirements file:
# setuptools
zipp==3.16.2
# via
# -r ./requirements.txt
# importlib-resources
2 changes: 2 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@

ops
oci-image
# oidc-gatekeeper's current implementation is not compatible
# with SDI>0.3.
serialized-data-interface<0.4
19 changes: 10 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./requirements.in
# pip-compile ./requirements.in
#
attrs==22.1.0
# via jsonschema
Expand All @@ -12,28 +12,29 @@ chardet==3.0.4
# via requests
idna==2.10
# via requests
jsonschema==3.2.0
importlib-resources==6.0.0
# via jsonschema
jsonschema==4.17.3
# via serialized-data-interface
oci-image==1.0.0
# via -r ./requirements.in
ops==1.5.4
# via
# -r ./requirements.in
# serialized-data-interface
pkgutil-resolve-name==1.3.10
# via jsonschema
pyrsistent==0.19.2
# via jsonschema
pyyaml==5.4
pyyaml==6.0.1
# via
# ops
# serialized-data-interface
requests==2.25.0
# via serialized-data-interface
serialized-data-interface==0.3.5
serialized-data-interface==0.3.6
# via -r ./requirements.in
six==1.16.0
# via jsonschema
urllib3==1.26.13
# via requests

# The following packages are considered to be unsafe in a requirements file:
# setuptools
zipp==3.16.2
# via importlib-resources
6 changes: 4 additions & 2 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@ async def test_build_and_deploy(ops_test: OpsTest):

@pytest.mark.abort_on_fail
async def test_relations(ops_test: OpsTest):
await ops_test.model.deploy(ISTIO_PILOT, channel="1.5/stable")
await ops_test.model.deploy(ISTIO_PILOT, channel="1.16/stable", trust=True)
await ops_test.model.deploy(DEX_AUTH, channel="latest/edge", trust=True)
await ops_test.model.add_relation(ISTIO_PILOT, DEX_AUTH)
await ops_test.model.add_relation(f"{ISTIO_PILOT}:ingress", f"{APP_NAME}:ingress")
await ops_test.model.add_relation(f"{ISTIO_PILOT}:ingress-auth", f"{APP_NAME}:ingress-auth")

# Not raising on blocked will allow istio-pilot to be deployed
# without istio-gateway and provide oidc with the data it needs.
await ops_test.model.wait_for_idle(
[APP_NAME, ISTIO_PILOT, DEX_AUTH],
status="active",
raise_on_blocked=True,
raise_on_blocked=False,
raise_on_error=True,
timeout=600,
)
Expand Down

0 comments on commit 4284149

Please sign in to comment.