Commit Graph

14 Commits

Author SHA1 Message Date
Clark Boylan d665053fe9 Bump up to python3.10
This adds python3.10 testing on Jammy and switches the docker images to
python3.10 from 3.8.

We run sudo for postgres with -Hi to avoid non fatal errors when
postres' client attempts to write command history to Zuul's homedir (it
is running as the postgres user which can't write to zuul's homedir). We
also need to update the libffi package version for jammy to 8 in
bindep.txt. Finally, python_version values need to be quoted as "3.10"
is different than 3.10 which is equivalent to 3.1 when serialized by
yaml as a float.

Force setuptools to use stdlib (shipped by the distro) distutils to
avoid problems with virtualenvs not actually being virtualenvs.

Finally we switch the bulk of jobs over to using nodeset: ubuntu-jammy
as the default python there is 3.10.

Change-Id: I97b90bb7a23c90f108f23dda9fdd0e89f9f4dbca
2022-07-01 15:59:48 -07:00
James E. Blair 74a9c9de9b Use ZooKeeper TLS in tests
This mirrors the configuration in Nodepool for using TLS-enabled
ZooKeeper in tests.  We use the ensure-zookeeper role in order
to get a newer ZooKeeper than is supplied in bionic.

Change-Id: I14413fccbc9a6a7a75b6233d667e2a1d2856d894
2021-03-08 06:49:57 -08:00
Jan Kubovy d518e56208 Prepare Zookeeper for scale-out scheduler
This change is a common root for other
Zookeeper related changed regarding
scale-out-scheduler. Zookeeper becoming
a central component requires to increase
"maxClientCnxns".

Since the ZooKeeper class is expected to grow
significantly (ZooKeeper is becoming a central part
of Zuul) a split of the ZooKeeper class (zk.py) into
zk module is done here to avoid the current god-class.

Also the zookeeper log is copied to the "zuul_output_dir".

Change-Id: I714c06052b5e17269a6964892ad53b48cf65db19
Story: 2007192
2021-02-15 14:44:18 +01:00
Tristan Cacqueray 1f7d3a879b tests: use a more inclusive word for the default password
This change removes problematic language in the test environment.

Change-Id: I6f81ab68314902f0239babf887de04f8e30d8954
2020-07-09 13:38:20 +00:00
Riccardo Pittau b5e894ec56 Correct syntax to be compatible with mysql8
Starting from mysql version 8 it's not possible to create a user
implicitely when using GRANT.
This patch makes the behavior compatible with that.

Change-Id: I1dc25194de384bf14607aff4e0f230e394f00582
2020-06-11 17:16:19 +02:00
Antoine Musso 6eb3753dde On CI, use a tmpfs for ZUUL_TEST_ROOT
Profiling shows git operations take significant time. They are done in
sub directories of a temporary directory optionally set via environment
variable ZUUL_TEST_ROOT.

Set ZUUL_TEST_ROOT at the jobs level.
When set, have test-setup to create a tmpfs.

Change-Id: I7923448aed1543593ace2cd9458b6c1b3ea60737
2020-01-24 16:04:55 +01:00
Clark Boylan 9e2beeef5e Run zookeeper datadir on tmpfs during testing
We may be experiencing iops performance issues resulting in unreliable
tests due to broken zookeeper connections. Run zookeeper under tmpfs to
mitigate this problem.

Other alternatives include using a system like eatmydata to make write
return early.

Change-Id: I8fbb3e243ae5974d243036b06c6b481872efffb3
2018-10-23 10:31:58 -07:00
Paul Belanger 9d6c0a9307 Add tox-py36 jobs
Now that we have ubuntu-bionic images online, we can start gating for
python3.6.

We only need to install bubblewrap PPA for ubuntu-xenial,
ubuntu-bionic already has bubblewrap packaged.

Update bindep.txt skipping ubuntu-xenial for bubblewrap.

Change-Id: Ic850a07001a9adef9cc459fcb107e0ebaaddf8ab
Depends-On: https://review.openstack.org/565884
Depends-On: https://review.openstack.org/565948
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-05-07 15:07:40 +10:00
Tobias Henkel f8f4cc9752 Don't create ci test admin login unencrypted in postgres
Newer postgres don't allow unencrypted passwords so just remove that
setting from the test setup script.

Change-Id: I2ab89c42a028fb0b5c07b44bcf86f97314a84f34
2018-04-13 11:43:42 +02:00
Tobias Henkel 267d134b7e
Add tests for postgresql
Some deployments use postgres as database backend. In order to have
official support for that we need to add tests for it.

Change-Id: I36408c27ccb36fd0826d97f34d98b211ee075f4e
Depends-On: https://review.openstack.org/535718
2018-04-10 15:51:25 +02:00
Paul Belanger ca10f85fed
Avoid using apt-add-repository
It always downloads the GPG key from the interwebs. Stop doing that
because depending on the network is bad.

Change-Id: Ia7c1a5e06d7698c15b22e80c328b9bb368a687e4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-11 16:41:52 -04:00
Paul Belanger 2989672aad Add bubblewrap to bindep / test-setup.sh
Bubblewrap is a setuid wrapper for unprivileged chroot and namespace
manipulation. We'll be using this to run ansible-playbook from.

Change-Id: I7c6414281724d066812094d02a726df357978076
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-16 09:01:32 -07:00
Paul Belanger 6a766dccd6 Make sure services are running for test-setup.sh
Add a check to confirm mysql and zookeeper are running.

Change-Id: I5c46b0c33bfd6c474793900b296dedf07ca28164
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-22 08:53:41 -04:00
Joshua Hesketh d78b44878c Add support for sqlalchemy reporter
This will allow us to enter results from all jobs for
use with the openstack-health dashboard.

Depends-On: I08dbbb64b3daba915a94e455f75eef61ab392852
Change-Id: I28056d84a3f6abcd8d9038a91a6c9a3902142f90
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-06 12:47:29 -05:00