Commit Graph

23 Commits

Author SHA1 Message Date
Corey Bryant e294222ae3 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: I4aba961c11a7fa774f134e65ad1a7225fbc4fd46
2023-03-14 16:25:28 +00:00
Gabriel Cocenza 5c64f4617d Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Iecd83b01980d3b9f25da1f5594a009990ef94307
2023-03-06 10:59:32 -03:00
Corey Bryant e117319dfb 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: I1a250a0591c15971840bbd6130c7cff3822eed4f
2022-09-06 17:15:36 +00:00
Alex Kavanagh 9183e9a91b 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: Ic853bb3a98d1cafba9304cf19ff2c4ecb1df1104
2022-04-07 16:03:10 -04:00
Alex Kavanagh dbfd1a6597 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: Ie6e4716482a1043d4936b1343b1050fc88e54403
2022-02-01 20:01:33 +00:00
Corey Bryant f6c9981fe8 Additional test updates
* drop xenial metadata and function tests
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: I8115cc36ef475786582be92d707a98d7f691dea1
2021-11-17 14:47:11 -05:00
Alex Kavanagh 80f5e3263e 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: I1436115f36c27ebe10b104f4c3b1b0ede5341ab5
2021-09-23 10:56:09 +01:00
Aurelien Lourot 9f4392cd5a 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: Icb581f11567d9fdc277d6cbaf5cd8ce73f469351
2021-07-22 14:54:26 +02:00
Alex Kavanagh 9fde55f92f 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: I3a9cafd1237777b4897badc8b0e00b598bcbc1e0
2021-04-08 14:38:39 +00:00
Alex Kavanagh 5fd09db09c 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: If3e84c2dd4db8643b6f3c61426fdc5ffa455faf2
2021-02-17 12:10:32 +00:00
Alex Kavanagh bedc0d7a8d 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: Icf6ef2ae4b845f4dc612a5d949144eb5c11030b1
2020-09-28 10:17:48 +01:00
Aurelien Lourot 54bfb99b8f Porting tests from Amulet to Zaza
Closes-Bug: #1828424

Change-Id: Iab72ea5d2bd06a99e0df1af1e419dc4b31e1a99e
2020-03-12 13:32:19 +01:00
Ryan Beisner 45476ae6f6 Sync charm/ceph helpers, tox, and requirements
Change-Id: Idafdd55a2dde52d0073ea869f11afc35cd91bd01
2019-10-11 11:29:24 +00:00
Corey Bryant af584a7e82 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: I1207b0298b7b9d3cbc993f8ce41b8034f4b46067
Story: #2005924
Task: #34228
2019-07-30 10:18:19 -04:00
Pete Vander Giessen 00adc4f2c8 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Iefa4a23d02aca71b6b1aba6c4369a11c054e92fa
2019-03-07 17:11:26 -05:00
Paul Goins a74c4b46e5 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: I46e3cfc0bb5a7853325b5d9351190d3687080318
2019-03-01 14:39:40 +01:00
Corey Bryant 329beab239
Rebuild for sync charm-helpers
Run ceilometer upgrade action in functional tests.

Switch to using proposed packages pending LP: #1813582

Closes-Bug: #1813982
Related-Bug: #1813582
Change-Id: Ie4bce16994fee7a3c4a546e0d7450dd44e92373d
2019-02-01 16:57:06 +01:00
Doug Hellmann db5bb519b8 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: I773bc5379de0eca8357c05084519cd1c71905d1e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:38:16 -04:00
Zuul 5884e56c18 Merge "Update links in README" 2018-07-12 17:00:44 +00:00
Vu Cong Tuan f724380603 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: I1706900eb43d8189f1302d73bc469269b003e329
2018-06-28 08:35:07 +07:00
XiaojueGuan d6bde5b738 Update links in README
Change the outdated links to the latest links in README

Change-Id: I728697f9e6ef8107e3d30039d1665bc331f5c9d9
2018-06-12 16:20:42 +08:00
James Page fb7a088089 Basic unit tests 2017-07-10 16:02:31 +01:00
James Page 1a9a8da5bd Initial charm version 2017-07-03 14:50:32 +01:00