Commit Graph

22 Commits

Author SHA1 Message Date
Alex Kavanagh c28e1c23ac Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: Iab51a774517ee8bd397eb900bd76a0620aa3dd6d
2024-02-24 19:54:20 +00:00
Corey Bryant 30630eba2e Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: I325ec88ff5033615fbf68334c08ef63e23bbe245
2023-03-07 20:35:09 +00:00
Liam Young b2703578ec Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I04a1adaf657a262ac1eac3ece98fa265ea63f864
2023-01-23 21:04:37 +00:00
Corey Bryant 901afa5de4 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
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I3cc0af8443ecf62589c88d4e924cb633c419e87f
2022-08-31 20:14:28 +01:00
Alex Kavanagh 2310e7f4a1 Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga

Change-Id: I055353bc78607119b0647bed87ca806f0ceffc62
2022-04-04 15:50:38 +01:00
Alex Kavanagh c7aa6e1aeb 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

Change-Id: I05dbf9cbfd3132b1970ca9cd9de111d6879f1582
2022-02-01 20:29:36 +00:00
Corey Bryant 8f961493e3 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39
* add nrpe to bundles

Change-Id: I184e4696336378f8e2b02ff6ce8800c224249e47
Closes-Bug: #1925977
2021-11-29 12:45:01 -05:00
Alex Kavanagh 8a4270f905 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ic75b5ee082ececcf2967342fa04d70d1d49255af
2021-09-27 14:41:17 +01:00
Aurelien Lourot 85fc22d2e6 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: Ic5f2a60b17e2b160a071bcecf916b9cf3782e547
2021-07-22 14:56:46 +02:00
Alex Kavanagh a177fa4616 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

Change-Id: Ied9b83ce5c57f370bd4d673964dcc433519ea8b3
2021-04-03 20:28:26 +01:00
Alex Kavanagh f821aaa53f 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: Ied70637b4487632841f25a45a904a01a5b2a99a1
2021-02-17 12:13:22 +00:00
Alex Kavanagh d3c99b4fef 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: I35226fe655ae0858bda1318cc494c1545b48887a
2020-09-26 18:34:54 +01:00
Alejandro S. Gonzalez 03f69d3e8e Migrate charm-manila-generic tests to Zaza
Change-Id: I9d4be367a09f02c3fac5f123e547229ac8e2ff1a
Closes-Bug: #1828424
2020-06-17 11:26:44 +02:00
Ryan Beisner 12d9c42efc
Sync charm/ceph helpers, tox, and requirements
Change-Id: Ifaa9d3e554af21c51dbd081dbf8f7d0574183633
2019-09-30 22:41:54 -05:00
Camille Rodriguez 1d36300260 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: Ibc953a7da04fb6f8851c1698054542d7b1f1bdb0
2019-08-27 12:52:31 -04:00
Corey Bryant 78a97e8eab 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: I4783ce52d8702285596d4a0fd26b8a0fd1eba380
Story: #2005924
Task: #34228
2019-07-30 10:20:03 -04:00
Pete Vander Giessen ba9a426f9f Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I26c2279314cd4e63e9be42f584b1308ae588cc58
2019-03-07 17:12:02 -05:00
Paul Goins 16980ea92c 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: I371bd42a70b4eb187972cd8d52c3a14d93fe3512
2019-03-01 14:41:21 +01:00
Doug Hellmann dd684c3a62 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I407fad912274d1694c199a5852d8559a48d7e592
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:39:49 -04:00
Vu Cong Tuan 6223c2833f Add py36 testenv
Python 3.6 is installed by default in Ubuntu 18.04 LTS.
Therefore, according to Transition Plan [1],
it'll be handy to have py36 testenv.

For more details, please check Python2 Deprecation Timeline [2]
and Python3-first Goal - Completion Criteria [3].

[1] https://wiki.ubuntu.com/Python/Python36Transition
[2] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html
[3] https://review.openstack.org/#/c/575933/8/goals/stein/python3-first.rst@42

Change-Id: I8b837200fcea0e9f4509561302ee849fc149649c
2018-06-27 15:20:43 +07:00
David Ames f694607b9e Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I18aad5b3becc622643f9dee155ecd197b4e680f6
2017-04-28 14:35:13 -07:00
Alex Kavanagh 9b039d3981 First commit of charm-manila-generic
The generic manila charm provides the generic backend NFS configuration
for the manila file service charm (charm-manila).  This is the first
commit of code, and the CI tests have been disabled to enable it to
land.  This is because of a circular dependency with the manila charm
which requires this charm to be able to configure at least one backend.

This patchset is dependent on the interface-manila-plugin interface and
an updated version of charms.openstack that provides the 'options'
member: these are declared below.

Change-Id: I052f272dcd310091d988afd7104dea68115053ac
Depends-On: Ied0ad014ab7b1d4778113b0d3f2bbae08075372e
Depends-On: If6d103b4f62c95b0fa76562a18e418e0d319e987
2016-12-02 13:50:46 +00:00