Commit Graph

18 Commits

Author SHA1 Message Date
Liam Young 10a800bab3 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Ia779496a07775281eca0ae555d338be285b6b2a2
2023-01-17 17:56:32 +00:00
Corey Bryant ff317f99fc
Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* move interface/layer env vars to charmcraft.yaml
* fix gss mirror_list and odr retrofit-uca-pocket
* use local charm overlay for HA config instead of manually managing
  symlinks

Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/858919
Change-Id: I759b60939a4fe2c9599d34e2ff64649426ffbf62
2022-10-02 23:15:08 +02:00
Corey Bryant 7cb77afe26
Build separately for each supported series and use binary builds
Charms for OpenStack Yoga supports both Ubuntu Focal and Jammy
which means Python 3.8 and Python 3.10.  Managing dependencies
across those two versions is non-trivial and we need to build
the charm on the series the charm is supposed to support.

Switch to using a binary build which allows pip's dependency
resolution to work.

This patch also drops the impish bundle and fixes channels
for auxiliary charms.

Update metadata with jammy support.

Replace `octavia.setup.ensure_lts_images` with the default glance
lts image configure job.

Drop python build dependencies in wheelhouse and let the binary
build figure those out automatically.

Closes-Bug: #1915171
Change-Id: I744a8903be7450b5d9b2af3f96c6f61d206f9271
2022-10-02 23:14:13 +02:00
Alex Kavanagh 736e243bb9 Update to build using charmcraft
Due to a build problem with the reactive plugin, this change falls back
on overriding the steps and doing a manual build, but it also ensures
the CI system builds the charm using charmcraft.  Changes:

- add a build-requirements.txt
- modify charmcraft.yaml
- modify osci.yaml
    -> indicate build with charmcraft
- modify tox.ini
    -> tox -e build does charmcraft build/rename
    -> tox -e build-reactive does the reactive build
- modify bundles to use the <charm>.charm artifact in tests.
  and fix deprecation warning re: prefix
- tox inception to enable tox -e func-test in the CI
- Unit test fix

Depends-On: https://review.opendev.org/c/openstack/charm-keystone/+/830986
Depends-On: https://review.opendev.org/c/openstack/charm-interface-keystone/+/830988
Change-Id: Iadd11634d1fe44731ecf0a6104561b4aeebff23f
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-04-02 12:03:51 +01:00
Alex Kavanagh cb9b4c4c61 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I5052bd30b7014c5bf63120c422efc4cb60b47d5f
2021-09-27 16:27:56 +01:00
Aurelien Lourot 58d203465b Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: Id8cced3f4db2b1476bbb803dc75ba2dd5bd99390
2021-07-22 14:59:12 +02:00
Alex Kavanagh 9f66f4bdd5 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers
* build.lock file constructed on xenial builder

Change-Id: I8770c1ecdb6c533e8a5658d96f029e4bd3347809
2021-04-10 09:16:43 +01:00
Alex Kavanagh 92b58bc5d6 Updates to pin charm-tools to 2.8.3
* Update requirements.txt to pin charm-tools to 2.8.3
* Update tox.ini to change the build parameters.
* This upgrades from <2.7 which adds reproducible charms
* Bug was fixed that controlled the default output directory
  doesn't get 'builds' appended.  The tox change puts it
  back so that stable & master both build to the same
  directory.  This may be reviewed in the future.

Change-Id: Idf6126ebe232e51328158f66e653b414f7cc7693
2021-02-17 12:16:17 +00:00
Alex Kavanagh 08b644e8c9 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: I18f32aff67972c704369ddc37afbc8af32a8c60c
2020-09-26 18:37:46 +01:00
Alex Kavanagh 83893afc30 Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt

Change-Id: I63cea56e82da526198ae87890697af062152eb28
2020-07-27 20:57:17 +01:00
Ryan Beisner 4b057abce7 Sync charm/ceph helpers, tox, and requirements
Change-Id: I4cb71f4d4e56d3465aad294789ad213eb085fe5a
2019-10-19 14:00:07 +01:00
Camille Rodriguez a287065d5b
Add disco-stein bundle to gate tests
The bundle disco-stein was in the dev bundles because
a bug with the Python 3.7 syntax prevented the success of
the deployment of HA clusters. This bug is fixed, we can
reintegrate disco-stein in the gate bundles.

Other small additions:
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

LP Related-Bug: #1823718

Change-Id: Ie4199aba3261f78f3592301bfd1e3d0be9cc7444
2019-09-10 16:04:05 -05:00
Corey Bryant 981b2f6066 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that python35-charm-jobs is retained since this charm is supported
on Xenial.

Change-Id: I07367d25966bd9e0b5103a7e628ba16d5a1712f8
Story: #2005924
Task: #34228
2019-08-17 02:21:56 +00:00
Pete Vander Giessen a6fdb6ebf5 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I68b0f867416ae6f00f626eb16e0ed2da5e592df0
2019-03-07 17:12:40 -05:00
Paul Goins 7372e66f1e Added tox environment for gathering coverage
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: I8fb9a05b3bf12d1e6cf7b5fa67674360e70affa3
2019-03-01 14:42:52 +01:00
Ryan Beisner 3fda2ab49d
Update tests, tox, series and readme for 18.11 release
Change-Id: I32640c1eff5445d2fe80fbd03bdbf3765da37f95
2018-11-14 13:41:24 +01:00
Frode Nordahl e0c0d38541
Add gate jobs
Add missing py35 target.

Remove some unintended UTF-8 characters in metadata.yaml.

Change-Id: I44569081a7b133a224870922c6aae61dda700540
2018-10-24 09:32:46 +02:00
Frode Nordahl 9d835f1ae2
Initial commit of charm skeleton 2018-10-09 14:35:45 +02:00