Commit Graph

24 Commits

Author SHA1 Message Date
Alex Kavanagh 994906e324 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: Ic2ed85c2c4465179cf3a7c7e7d78c16a699147a1
2024-02-24 19:54:12 +00:00
Chris MacNaughton 78fa85e7f0 Fix charm for tox4 compatibility
Related-Bug: #2002788
Change-Id: I90f0631363ee72a8bbe07c262875dcbd987a062b
2023-01-20 12:15:51 -05:00
Corey Bryant e9c09f4313 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

Depends-On: https://review.opendev.org/c/openstack/charm-manila/+/858765
Change-Id: I4cae0a313230a8617beac36a2dbfe0c019c5e0de
2022-10-04 11:51:23 +00:00
Corey Bryant 10524b6ed3 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 updates manila.py to align with
charm-interface-keystone commit
9ad5cade97e14b672ac859d34040353c3a40c7aa.

This patch also drops the impish bundle.

Change-Id: Ib3aea3fb26aa3e6282989b2758bdf4913ef58c28
2022-10-04 00:20:22 +00:00
Felipe Reyes 8517f58019 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: Icced48103310c873574b47d2900066bd05c5a2dd
2022-05-05 18:21:29 -04:00
Alex Kavanagh 9f3caabb33 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: I7e48c6515f48e77a4045bc5f899e8ca963e1671a
2022-02-01 20:23:10 +00:00
Corey Bryant 9fe1f89618 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: Iaea730e035c4671d83fa65c7d74a2b31f59680cd
2021-11-24 13:42:58 -05:00
Alex Kavanagh 745fa81330 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
- updates from for templates' bug links
- gate on focal-ussuri instead of bionic-stein

Change-Id: Iaa0345ee9b6e0a16c9b6d07b54bea1eeb3a4d664
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-07 11:55:15 +02:00
Aurelien Lourot e7ed915d2b 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: Ie3883de81d5856742abcba04194fa88a6b0372fb
2021-07-22 14:56:19 +02:00
Alex Kavanagh f5dff58d92 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: I2a20459c7aee21bc1c2df77b1868b65029329982
2021-04-03 20:27:45 +01:00
Alex Kavanagh 5c2538a26b 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: Icc926631567b6a3fc6c89645e36f8c58572590cf
2021-02-17 12:12:47 +00:00
Alex Kavanagh aa39c26ce3 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

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/439
Change-Id: Ibb70a2f1971056f818c4acffcd0de2c844cca735
2020-10-08 13:32:22 +02:00
Alex Kavanagh 6b294e6037 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: Ibc2632c8371eb82b43278d8477fc29c8850211ce
2020-07-27 20:54:20 +01:00
Ryan Beisner 94841ed705
Sync charm/ceph helpers, tox, and requirements
Change-Id: I7623e044a6ef74f8444cc3fa232385fcf78e8380
2019-09-30 17:08:40 -05:00
Camille Rodriguez 15a9364e75 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: Ia78eac0582d31791fe592618758323e1db4d6d73
2019-08-27 12:45:34 -04:00
Corey Bryant 4e6e42faee 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: If0725d9735050583f9d65be3ebd37a55f705e58c
Story: #2005924
Task: #34228
2019-07-30 10:20:51 -04:00
Pete Vander Giessen 8538485200 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ic3810bf94029e5b8cae004f61ffd4ab7e9083c5f
2019-03-07 17:11:56 -05:00
Paul Goins 20e10ef7fd 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: I3ffde09df35c257bcd037182e65db6555b1d01a3
2019-03-01 14:41:13 +01:00
Doug Hellmann d90330160f 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: I285da8c7646aea35073495e16aacc70df35751e5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:39:46 -04:00
Zuul 08cf4ebc65 Merge "Update links in README" 2018-07-12 16:59:23 +00:00
Nguyen Van Duc a155188a32 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: I42a523cdf4cbb6c52dc94298609a206bd99f7b37
2018-07-12 16:16:22 +07:00
XiaojueGuan e45d847abd Update links in README
Change the outdated links to the latest links in README

Change-Id: Ie42ab99a374e2d57dcbe8d42a189f034d2a3c844
2018-06-12 15:19:40 +08:00
David Ames fcced29047 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I3ac6b300af07acd01d4e05259dac1b88b135445b
2017-04-28 14:33:10 -07:00
Alex Kavanagh 490cddccaa First commit of manila charm
This patchset contains the code/charm for a working manila fileshare
service. On its own, the fileshare the charm installs is not functional
as a backend is needed. The charm-manila-generic plugin charm is
provided separately to provide the generic NFS file share service.

This patchset also includes the amulet/bundle tests to test that the
charm installs the manila software and can get it running.  However, no
functional tests of the actual manila software are done.

This patchset is dependent on the interface-manila-plugin interface and
an updated version of charms.openstack that provides the 'options'
member. It also depends on a slight change to the
interface-neutron-plugin which adds a requires.py to allow it to be used
to plugin to principal charms: these are declared below.

Change-Id: Ie9bb7af1baab8b3bc20d26d907d9b51957eb326e
Depends-On: Ied0ad014ab7b1d4778113b0d3f2bbae08075372e
Depends-On: If6d103b4f62c95b0fa76562a18e418e0d319e987
Depends-On: I8760f2f9bec85ccc8b149b9560a6eed3e9ab418b
2016-12-02 13:50:04 +00:00