Skip to content
Open
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: 1 addition & 1 deletion base_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ghapi==1.0.9
ghapi==1.0.10
jinja2==3.1.6
fabric==3.2.2
ops==3.5.0
Expand Down
8 changes: 4 additions & 4 deletions github-runner-manager/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
click==8.3.1
fabric==3.2.2
fastcore==1.12.1
fastcore==1.12.3
flask==3.1.2
ghapi==1.0.9
ghapi==1.0.10
jinja2==3.1.6
kombu==5.6.2
openstacksdk==4.8.0
prometheus-client==0.24.0
openstacksdk==4.9.0
prometheus-client==0.24.1
pydantic==1.10.26
pymongo==4.16.0
13 changes: 6 additions & 7 deletions tests/integration/test_charm_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,27 @@ async def test_charm_upgrade(
act: charm upgrade is called.
assert: the charm is upgraded successfully.
"""
latest_stable_path = tmp_path / "github-runner.charm"
latest_stable_revision = 354 # update this value every release to stable.
latest_edge_path = tmp_path / "github-runner.charm"
# download the charm
retcode, stdout, stderr = await ops_test.juju(
"download",
"github-runner",
# do not specify revision
# --revision cannot be specified together with --arch, --base, --channel
"--channel",
"latest/stable",
"latest/edge",
"--series",
"jammy",
"--filepath",
str(latest_stable_path),
str(latest_edge_path),
"--no-progress",
)
assert retcode == 0, f"failed to download charm, {stdout} {stderr}"

# deploy latest stable version of the charm
application = await deploy_github_runner_charm(
model=model,
charm_file=str(latest_stable_path),
charm_file=str(latest_edge_path),
app_name=app_name,
path=github_config.path,
token=github_config.token,
Expand Down Expand Up @@ -97,11 +96,11 @@ async def test_charm_upgrade(
origin = client.CharmOrigin(
source="charm-hub",
track="22.04",
risk="latest/stable",
risk="latest/edge",
branch="deadbeef",
hash_="hash",
id_="id",
revision=latest_stable_revision,
revision=0, # arbitrary number
base=client.Base("22.04", "ubuntu"),
)

Expand Down
Loading