Skip to content

Commit

Permalink
Add charmcraft 3 support
Browse files Browse the repository at this point in the history
Update the charmcraft.yaml file to use base and platforms, only
allowing noble support.

- Update osci.yaml to use the charmcraft 3.x/beta
- Add noble/oracular to charmhelpers
- Drop non-noble tests

Change-Id: I8e6b4040d84a7022e22305a629a854a22232d65d
  • Loading branch information
wolsen committed Jun 21, 2024
1 parent 2d31e02 commit 06da739
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 157 deletions.
58 changes: 28 additions & 30 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,32 @@ parts:
plugin: dump
source: .
prime:
- actions/*
- charmhelpers/*
- files/*
- hooks/*
- lib/*
- templates/*
- actions.yaml
- config.yaml
- copyright
- icon.svg
- LICENSE
- Makefile
- metadata.yaml
- README.md
- actions/*
- charmhelpers/*
- files/*
- hooks/*
- lib/*
- templates/*
- actions.yaml
- config.yaml
- copyright
- icon.svg
- LICENSE
- Makefile
- metadata.yaml
- README.md

bases:
- build-on:
- name: ubuntu
channel: "20.04"
architectures:
- amd64
run-on:
- name: ubuntu
channel: "20.04"
architectures: [amd64, s390x, ppc64el, arm64]
- name: ubuntu
channel: "22.04"
architectures: [amd64, s390x, ppc64el, arm64]
- name: ubuntu
channel: "23.10"
architectures: [amd64, s390x, ppc64el, arm64]
base: [email protected]
platforms:
amd64:
build-on: amd64
build-for: amd64
arm64:
build-on: arm64
build-for: arm64
ppc64el:
build-on: ppc64el
build-for: ppc64el
s390x:
build-on: s390x
build-for: s390x
2 changes: 2 additions & 0 deletions charmhelpers/core/host_factory/ubuntu.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
'kinetic',
'lunar',
'mantic',
'noble',
'oracular',
)


Expand Down
5 changes: 2 additions & 3 deletions osci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
- project:
templates:
- charm-unit-jobs-py38
- charm-unit-jobs-py310
- charm-yoga-functional-jobs
- charm-functional-jobs
vars:
needs_charm_build: true
charm_build_name: hacluster
build_type: charmcraft
charmcraft_channel: 2.x/stable
charmcraft_channel: 3.x/beta
57 changes: 0 additions & 57 deletions tests/bundles/focal-yoga.yaml

This file was deleted.

57 changes: 0 additions & 57 deletions tests/bundles/jammy-bobcat.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
openstack-origin: &openstack-origin distro

series: jammy
series: noble

machines:
'0':
Expand Down Expand Up @@ -41,7 +41,7 @@ applications:
- '3'
- '4'
- '5'
channel: yoga/edge
channel: latest/edge

keystone-hacluster:
charm: ../../hacluster.charm
Expand Down
11 changes: 3 additions & 8 deletions tests/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
charm_name: hacluster

smoke_bundles:
- focal-yoga
- noble-caracal

gate_bundles:
- focal-yoga
- noble-caracal

dev_bundles:
- jammy-yoga
- jammy-bobcat
- mantic-bobcat
- noble-caracal

configure:
- zaza.openstack.charm_tests.keystone.setup.add_demo_user
Expand All @@ -22,6 +20,3 @@ tests_options:
hacluster:
principle-app-name: keystone
hacluster-charm-name: hacluster
force_deploy:
- jammy-yoga
- mantic-bobcat

0 comments on commit 06da739

Please sign in to comment.