Commit Graph

23 Commits

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

Change-Id: Ie75c1d068e2d605e0c64ed4aaf832d224d8c1f3b
2024-02-24 20:11:53 +00:00
Liam Young 90ecf6f7ee Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I954b322c10a8aa8eae9485a0bc1b406da22ceccc
2023-01-19 09:46:13 +00:00
Corey Bryant d2e6c1fcad 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: I0776bad299d133b61dc8e2941c40eeb572f5af78
2022-08-31 20:08:18 +01:00
Alex Kavanagh c712bf74ee 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: I2d1e40430286b49de7aaeb53366b8c4601c5451d
2022-04-07 17:33:33 +01:00
Alex Kavanagh b688766a50 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: If7fb628e65be3398e7ecb808d564b585fd41fb82
2022-02-01 20:11:21 +00:00
Corey Bryant 58fa3cf59d 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

Change-Id: I749b089783627ccbca648c65649cb22e9f471b05
2021-11-17 13:50:57 -05:00
Alex Kavanagh ea13d2827f 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: I2586f92b458a79d4efc9d7ccb12e5a986c959dfd
2021-09-27 10:59:21 +01:00
Aurelien Lourot 15f85f4ec4 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: I6cc20b2ff83886a8878ba0a2972999e5a7b51412
2021-07-22 14:55:32 +02:00
Alex Kavanagh 0d4bf2d224 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: I72b4edfd23f386af964698e32f7f3aa2db4d8dac
2021-04-03 20:26:40 +01:00
Alex Kavanagh fa478aee7e 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: Ie84d7489c03c40392fb5d8eb7e13bae09c9ff9d7
2021-02-17 12:12:00 +00:00
Alex Kavanagh 174687b7e2 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: I4414348e78930fa9562c6adab058ada8ae57a958
2020-09-26 18:34:05 +01:00
Alex Kavanagh 6ac9ddf3d7 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: Icce2e9b80970bd8987bec1c0f68efd3ed22599bd
2020-07-30 12:05:52 +01:00
Ryan Beisner cb32d0a740
Sync charm/ceph helpers, tox, and requirements
Change-Id: I694431b985a0fb8d7c6a945d7f11f6fea1164574
2019-09-30 22:41:51 -05:00
Corey Bryant 542f2de97e 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

Change-Id: Ib911b336f15586e61fc9dd3e60673450f5a45866
Story: #2005924
Task: #34228
2019-07-30 10:17:40 -04:00
Ghanshyam Mann 51923f1429 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I8bee3444a9ac00616de764ff97bcc1dca92f5dd5
2019-04-23 22:39:00 +00:00
Pete Vander Giessen 76e9fc4da9 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I1ef9e8dd7da8ffafc672f98d6a70f2e66c1639dc
2019-03-07 17:11:44 -05:00
Paul Goins d2a257b020 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: Idf6550cdbe28b118d00340d31c97d41d6db1d051
2019-03-01 14:41:03 +01:00
Zuul a354e2efc4 Merge "fix tox python3 overrides" 2018-10-12 10:52:18 +00:00
Ryan Beisner 2eefce0f51 Update requirements
Fixup existing lint.

Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Iab32fd02667ae96dc5cc929b52e12c27d01d10c1
2018-10-04 14:00:32 -05:00
Doug Hellmann b0c27e0ed0 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: Id3620868462d4d8aee3d11777ea83b1d28543043
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:39:25 -04:00
Vu Cong Tuan 4b8afc6f11 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: If753532c704946bd6c43ae42140e6edcde173017
2018-06-28 08:25:24 +07:00
James Page 33f4796ec6 Add basic amulet tests, with AMULET overrides for configuration 2017-01-30 12:33:13 +00:00
James Page e83c2f07e5 Initial baseline of charm 2017-01-27 14:31:20 +00:00