Skip to content

Commit

Permalink
skip
Browse files Browse the repository at this point in the history
  • Loading branch information
DnPlas committed Dec 10, 2024
1 parent fda7292 commit 8d7d3f2
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 35 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,6 @@ jobs:
merge-multiple: true
path: /tmp/

- name: Debug path
run: |
ls -lh /tmp/
echo "---------------"
ls -lh
echo "---------------"
ls -lh /tmp/packed-charm-cache-true-.-charms-kfp-api-base-0/charms/kfp-api/
- name: Integration tests
run: |
# Requires the model to be called kubeflow due to
Expand Down
8 changes: 4 additions & 4 deletions charms/kfp-metadata-writer/tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@

@pytest.mark.abort_on_fail
async def test_build_and_deploy_with_relations(ops_test: OpsTest):
built_charm_path = await ops_test.build_charm(CHARM_ROOT)
log.info(f"Built charm {built_charm_path}")

image_path = METADATA["resources"]["oci-image"]["upstream-source"]
resources = {"oci-image": image_path}

await ops_test.model.deploy(
entity_url=built_charm_path, application_name=APP_NAME, resources=resources, trust=True
entity_url="/tmp/charms/kfp-metadata-writer/kfp-metadata-writer_ubuntu-20.04-amd64.charm",
application_name=APP_NAME,
resources=resources,
trust=True
)
await ops_test.model.deploy(entity_url=MLMD, channel=MLMD_CHANNEL, trust=True)
await ops_test.model.integrate(f"{MLMD}:grpc", f"{APP_NAME}:grpc")
Expand Down
5 changes: 1 addition & 4 deletions charms/kfp-persistence/tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@ class TestCharm:
@pytest.mark.abort_on_fail
async def test_build_and_deploy(self, ops_test: OpsTest):
"""Deploy kfp-persistence with required charms and relations."""
built_charm_path = await ops_test.build_charm("./")
logger.info(f"Built charm {built_charm_path}")

image_path = METADATA["resources"]["oci-image"]["upstream-source"]
resources = {"oci-image": image_path}

await ops_test.model.deploy(
entity_url=built_charm_path,
entity_url="/tmp/charms/kfp-persistence/kfp-persistence_ubuntu-20.04-amd64.charm",
application_name=APP_NAME,
resources=resources,
trust=True,
Expand Down
8 changes: 4 additions & 4 deletions charms/kfp-profile-controller/tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@

@pytest.mark.abort_on_fail
async def test_build_and_deploy(ops_test: OpsTest):
built_charm_path = await ops_test.build_charm("./")
logger.info(f"Built charm {built_charm_path}")

image_path = METADATA["resources"]["oci-image"]["upstream-source"]
resources = {"oci-image": image_path}

Expand All @@ -73,7 +70,10 @@ async def test_build_and_deploy(ops_test: OpsTest):
)

await ops_test.model.deploy(
built_charm_path, application_name=CHARM_NAME, resources=resources, trust=True
entity_url="/tmp/charms/kfp-profile-controller/kfp-profile-controller_ubuntu-20.04-amd64.charm",
application_name=CHARM_NAME,
resources=resources,
trust=True
)

# Deploy required relations
Expand Down
5 changes: 1 addition & 4 deletions charms/kfp-schedwf/tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@

@pytest.mark.abort_on_fail
async def test_build_and_deploy_with_relations(ops_test: OpsTest):
built_charm_path = await ops_test.build_charm(CHARM_ROOT)
log.info(f"Built charm {built_charm_path}")

image_path = METADATA["resources"]["oci-image"]["upstream-source"]
resources = {"oci-image": image_path}

await ops_test.model.deploy(
entity_url=built_charm_path, application_name=APP_NAME, resources=resources, trust=True
entity_url="/tmp/charms/kfp-schedwf/kfp-schedwf_ubuntu-20.04-amd64.charm", application_name=APP_NAME, resources=resources, trust=True
)

await ops_test.model.wait_for_idle(
Expand Down
5 changes: 1 addition & 4 deletions charms/kfp-ui/tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@

@pytest.mark.abort_on_fail
async def test_build_and_deploy_with_relations(ops_test: OpsTest):
built_charm_path = await ops_test.build_charm(CHARM_ROOT)
log.info(f"Built charm {built_charm_path}")

image_path = METADATA["resources"]["ml-pipeline-ui"]["upstream-source"]
resources = {"ml-pipeline-ui": image_path}

await ops_test.model.deploy(
entity_url=built_charm_path, application_name=APP_NAME, resources=resources, trust=True
entity_url="/tmp/charms/kfp-ui/kfp-ui_ubuntu-20.04-amd64.charm", application_name=APP_NAME, resources=resources, trust=True
)
await ops_test.model.deploy(BUNDLE, trust=True)
await ops_test.model.integrate(f"{APP_NAME}:kfp-api", "kfp-api:kfp-api")
Expand Down
5 changes: 1 addition & 4 deletions charms/kfp-viewer/tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@

@pytest.mark.abort_on_fail
async def test_build_and_deploy_with_relations(ops_test: OpsTest):
built_charm_path = await ops_test.build_charm(CHARM_ROOT)
log.info(f"Built charm {built_charm_path}")

image_path = METADATA["resources"]["kfp-viewer-image"]["upstream-source"]
resources = {"kfp-viewer-image": image_path}

await ops_test.model.deploy(
entity_url=built_charm_path, application_name=APP_NAME, resources=resources, trust=True
entity_url="/tmp/charms/kfp-viewer/kfp-viewer_ubuntu-20.04-amd64.charm", application_name=APP_NAME, resources=resources, trust=True
)
await ops_test.model.wait_for_idle(
apps=[APP_NAME],
Expand Down
5 changes: 1 addition & 4 deletions charms/kfp-viz/tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@

@pytest.mark.abort_on_fail
async def test_build_and_deploy_with_relations(ops_test: OpsTest):
built_charm_path = await ops_test.build_charm(CHARM_ROOT)
log.info(f"Built charm {built_charm_path}")

image_path = METADATA["resources"]["oci-image"]["upstream-source"]
resources = {"oci-image": image_path}

await ops_test.model.deploy(
entity_url=built_charm_path, application_name=APP_NAME, resources=resources, trust=True
entity_url="/tmp/charms/kfp-viz/kfp-viz_ubuntu-20.04-amd64.charm", application_name=APP_NAME, resources=resources, trust=True
)
await ops_test.model.wait_for_idle(
apps=[APP_NAME],
Expand Down

0 comments on commit 8d7d3f2

Please sign in to comment.