Commit Graph

30 Commits

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

Change-Id: I61f3e21566b6df67ec5cb631041203ed970565a6
2024-02-24 20:11:03 +00:00
Corey Bryant 83f29f5f89 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: I2df3dc8ec86a5e41fab7e5bd463a9d708d95fe88
2023-03-07 23:01:06 +00:00
Liam Young a557ef0ec7 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Ia99b036f893d425265a91e41bc4fe4853c2918b2
2023-01-13 14:00:18 +00:00
Corey Bryant ac5e1fdc7f 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: I5a88bdb17a93074921b3aa13a3bd0d56478b5bfb
2022-08-31 18:41:31 +01:00
Alex Kavanagh 2ee4b81a48 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: Ideb0b18808ef8ccd17ee8e6c8cb399b3e9798ecc
2022-04-04 15:48:36 +01:00
Alex Kavanagh b44e3bd667 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: Ic5d06e404f307409db960a98538310e1e0e80308
2022-02-01 17:47:21 +00:00
Corey Bryant ac03d84490 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: I484a23091ebaf2fea90e2d89c138208e03367137
2021-11-17 13:44:46 -05:00
Alex Kavanagh fb30411a8c Add xena bundles
- add focal-xena bundle
- add impish-xena bundle
- remove groovy-victoria bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0
- add missing nrpe charm to wallaby+ bundles
- add missing aodh openstack-origin option for ussuri+ bundles

Change-Id: I3eaf6f66d3ac57f992e15cd26dd76e19bb399674
2021-09-28 17:45:39 +00:00
Aurelien Lourot be7624f36d 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: I73e9a017fa9a0218dc7ff2e107ffe52eddd79483
2021-07-22 14:51:18 +02:00
Alex Kavanagh 945e2f44bb 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: Ibe9da7a3f7ae9e364291c28c111404678e7e2f62
2021-04-03 20:20:17 +01:00
Alex Kavanagh 376726c8d1 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: I90d72e403eea235cd91018cbff488acfccca3ec9
2021-02-17 12:06:38 +00:00
Alex Kavanagh 0e6c47a625 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: I464fa7903727af1e8f6d6d888c6d30f2b9d4ad79
2020-09-28 13:13:35 +01:00
Alex Kavanagh a39f4738c3 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: Ib02fc1203d1e20f4cdc21a3a5e0bbdb7b590b182
2020-07-27 20:48:13 +01:00
Ryan Beisner b0d6fb8eb0
Sync charm/ceph helpers, tox, and requirements
Change-Id: Ibaa8c4dbcb2a484f7dd4d71a0aec78161c6d230f
2019-10-04 11:49:07 -05:00
Camille Rodriguez e7b916b908 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:
- changed the location of memcached dur to an issue with the charm store
- 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: Idf5e729fcde85ff7442282a711130f4132e17a85
2019-09-04 14:54:15 -04:00
Corey Bryant f3af5771d7 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: Ieab6102178a09d43e97453c85b2fb19c87ca6ef6
Story: #2005924
Task: #34228
2019-07-30 10:16:11 -04:00
Ghanshyam Mann ec33cadf4c 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: I3039e25e4d8f77e4e64fbb63cd924c37c0739887
2019-05-24 09:12:58 +00:00
Chris MacNaughton b38c275a94 Remove deps installation from py27 job
Change-Id: I90a87b5b7b847d2ad71ce1bd5acb38d1bad5ac53
2019-05-24 11:12:41 +02:00
Pete Vander Giessen 19cff5fe21 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I984b12aab612f447333f429bb8201aa3fd9f2714
2019-03-07 16:32:12 -05:00
Paul Goins d58172de87 Excluding unit_tests from coverage
Unit tests generally will all be executed, and measuring them will
skew the overall coverage numbers.  Thus, I'm excluding the unit_tests
folder.

Change-Id: If4b6a2425ee62ff6dfd66d612fcca2a928c8f707
2019-03-01 15:03:22 +01:00
Paul Goins dc0cfc8ec9 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: I253e35de7ba72fb2f6a3ad018a45924771443465
2019-03-01 11:07:03 +01:00
Doug Hellmann dc34cf6e97 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: Ie9e474841921c8dad130d4aabe5e637bd5023c09
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:37:10 -04:00
Nguyen Van Duc cd27246f9f 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: Id2170ab5cba2cc84a790f7d7dfb9be8abb0a9b78
2018-07-12 18:00:25 +07:00
shangxiaobj baa189fa5b Update and replace http with https for doc links
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: I573b751b613cd7a4eea6dc309a52555b6c6fc810
2017-08-18 20:59:56 -07:00
Ryan Beisner 91d8d10382 Update tox.ini for py27 requirement
Reactive source charms are Python3-only, but have py27 unit tests
declared in project-config.

The Tox tool recently changed behavior.  It used to pass when a tox
target was missing commands.  Now it fails in that case.

This commit places a py27 no-op shim to allow gate tests to pass,
effectively restoring the original behavior for these py3x-only repos.

Fix unit tests after underlying changes in charms.openstack which
set_config_defined_certs_and_keys and added oncigure_source to
the default install method.

Change-Id: I82445240c49a2d58c6eb39da4f49d21350d8d8b4
Partial-Bug: 1642981
2016-12-01 15:38:07 +00:00
Ryan Beisner 43d1bdc2b7 Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Also create empty dirs with .keep files where necessary.
Some classic charms have actions and/or lib dirs, and some
do not. In all classic charms, flake will now check those
dirs to ensure lint coverage of existing or future content.

Resolve existing lint which was discovered by the updated
coverage.

Change-Id: Ibdb8309fdd7a907826d783e04b8a9650fe35035f
2016-09-08 22:20:27 +00:00
James Page 1576b2027c Refresh requirements, drop lint 2016-06-22 09:47:47 +01:00
James Page cc4e04e0eb Add unit test targets 2016-06-20 16:56:42 +01:00
James Page d960d6ddcf Update tox and requirements 2016-06-20 15:41:14 +01:00
James Page 83a5a34c7c Re-baseline aodh charm based on new charm layer work 2016-06-20 15:36:08 +01:00