Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update jre version #51

Merged
merged 9 commits into from
Nov 19, 2024
Merged
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
5 changes: 5 additions & 0 deletions .github/workflows/integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ jobs:
extra-arguments: |
--kube-config=${GITHUB_WORKSPACE}/kube-config
modules: '["test_agent_k8s.py"]'
juju-channel: 3.5/stable
channel: 1.31-strict/stable
self-hosted-runner: true
self-hosted-runner-label: "xlarge"
microk8s-addons: "dns ingress rbac storage metallb:10.15.119.2-10.15.119.4 registry"
6 changes: 3 additions & 3 deletions jenkins_agent_k8s_rock/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ name: jenkins-agent-k8s
summary: Jenkins-agent-k8s rock
description: Jenkins-agent-k8s OCI image for the Jenkins-agent-k8s charm
version: "1.1"
base: ubuntu:22.04
build-base: ubuntu:22.04
base: ubuntu@22.04
build-base: ubuntu@22.04
license: Apache-2.0
platforms:
amd64:
Expand All @@ -19,7 +19,7 @@ parts:
overlay-packages:
- bash
- ca-certificates-java
- default-jre-headless
- openjdk-21-jre-headless
- git
- sudo
override-prime: |
Expand Down
9 changes: 7 additions & 2 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,13 @@ async def machine_jenkins_client_fixture(
@pytest_asyncio.fixture(scope="module", name="jenkins_k8s_server")
async def jenkins_k8s_server_fixture(model: Model) -> Application:
"""The jenkins k8s server."""
app = await model.deploy("jenkins-k8s", series="jammy", channel="latest/edge")
await model.wait_for_idle(apps=[app.name], timeout=1200, raise_on_error=False)
# A custom JRE/Jenkins LTS upgraded version of Jenkins has been manually pushed to latest/edge
# channel revision 128 for testing. There's a deadlock on the dependency in testing
# jenkins-agent-k8s and jenkins-k8s.
app = await model.deploy(
"jenkins-k8s", series="jammy", channel="latest/edge", base="ubuntu@22.04", revision=128
)
await model.wait_for_idle(apps=[app.name], timeout=1200, raise_on_error=False, idle_period=30)

return app

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ commands =
description = Run integration tests
deps =
pytest
juju==3.0.4
juju>=3,<4
ops
pytest-operator
pytest-asyncio
Expand Down
Loading