Commit Graph

19 Commits

Author SHA1 Message Date
Alex Kavanagh 50a74bb7fc Updates for caracal tox.ini
Update the tox.ini file(s) to use the constraints file from
zaza-openstack-tests.

Change-Id: I1ee98030ed0b69aa7737fe9d2cb1f2b76e184b7b
2024-02-24 20:12:20 +00:00
Liam Young 327753c63a Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I7eff46a8ae044e6375d47fdf3a85429d793bd234
2023-01-23 21:06:25 +00:00
Corey Bryant a68761b7ef 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: I2cb698f719106e54b06009f24ea47259419e9cad
Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/850215
2022-10-05 07:47:55 -04:00
Corey Bryant 0eced95520 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.

Change-Id: I99549065a4ef7c2d76356228a58b687d7cb8877c
2022-10-05 07:47:44 -04:00
Alex Kavanagh 75b0a960ab 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: I44232d2e3e98a759ff6a92cbf28e6cd68c2d10aa
2022-04-04 16:20:06 +01:00
Corey Bryant 50d1212f88 Additional test updates
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: I1741b5717ef359bdf2e2a5027164bfd093a672b2
2021-11-17 14:49:13 -05:00
Alex Kavanagh b9b859c023 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: I64167411f7909a189ae3e88a571afbfc0169a577
2021-09-27 16:32:28 +01:00
Aurelien Lourot b0f58fcd78 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: Idf2b26d7e78e19152868e43646dd09861d8b6b94
2021-07-22 14:59:22 +02:00
Alex Kavanagh 8ccc8f32e3 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: I526d58c3eb602c539957f9212e9279526544ea42
2021-04-03 20:32:02 +01:00
Alex Kavanagh 41fd7a0311 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: I9b7019639e329f99f844c237136009051c3e2729
2021-02-17 12:16:29 +00:00
Alex Kavanagh 3aa5646ef3 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: I74430fd836d132cdcac8a52438cb4477dfdf392d
2020-09-26 18:37:58 +01:00
Alex Kavanagh e7443c7438 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: Icec73224db6d61370af014d1e0a38f9efac8a070
2020-07-27 20:57:30 +01:00
Ryan Beisner 1397777b05
Sync charm/ceph helpers, tox, and requirements
Change-Id: Ie2d9438b1d4f772007bdf96cde81b1b89164e94c
2019-09-30 20:59:32 -05:00
Camille Rodriguez 5f0aa265db 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: I538625c1be05cd4538336a28882f4664cfc31899
2019-08-30 19:33:30 +00:00
Corey Bryant 321a5a2f76 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: Ic7d63d16cec69ffcbd8fa826007998d92385d16d
Story: #2005924
Task: #34228
2019-07-30 10:15:09 -04:00
Pete Vander Giessen e4755415d7 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I33f509c6f7d914492be4240674dce4e0ab4d3521
2019-03-07 17:12:46 -05:00
Paul Goins b49d419f4a 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: I6e574ad480d3164b408cd14cf15a645c9663c0d8
2019-03-01 14:43:01 +01:00
Frode Nordahl 4d66c30ef4 Purge neutron-lbaas dashboard on install
Remove unnecessary config publish.

Remove unused build time policy generation.

Change-Id: I7616c7aaec8bdd60160e6bc7481ea41b5a71cd3c
2018-11-21 16:35:08 +00:00
Frode Nordahl e7707cd2cd
Initial commit of Octavia Dashboard plugin subordinate 2018-11-06 11:33:41 +01:00