Browse Source

[CI] Add bindep.txt

Bindep is a tool for checking the presence of binary
packages needed to use an application / library. It
started life as a way to make it easier to set up a
development environment for OpenStack projects.

Infra has been looking to drop the global
bindep_fallback.txt [1][2] file for all
OpenStack projects, they recommend that projects
maintain their own with packages as necessary.

This commit is not a clean cherry-pick.
DevStack for CentOS is currently broken. See
bug 1833696 [3]. The LVM job will be fixed
by a subsequent commit to this branch.

[1] http://lists.openstack.org/pipermail/openstack-infra/2018-April/005926.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/006888.html
[3] https://launchpad.net/bugs/1833696
Change-Id: I1824f132b0ffadc6c9179582d37295f3abed355f
(cherry picked from commit 1709fd7fc2)
(cherry picked from commit 6ac1730127)
(cherry picked from commit 4fbe70fbb6)
tags/6.3.1
Goutham Pacha Ravi 2 months ago
parent
commit
148e473006
3 changed files with 56 additions and 2 deletions
  1. 9
    2
      .zuul.yaml
  2. 35
    0
      bindep.txt
  3. 12
    0
      tox.ini

+ 9
- 2
.zuul.yaml View File

@@ -26,7 +26,11 @@
26 26
         - manila-tempest-minimal-dsvm-cephfs-nfs-centos-7:
27 27
             voting: false
28 28
         - manila-tempest-minimal-dsvm-dummy
29
-        - manila-tempest-minimal-dsvm-lvm-centos-7
29
+# TODO(gouthamr): make lvm job voting again
30
+# after https://bugs.launchpad.net/devstack/+bug/1833696
31
+# is fixed.
32
+        - manila-tempest-minimal-dsvm-lvm-centos-7:
33
+            voting: false
30 34
         - grenade-dsvm-manila:
31 35
             voting: false
32 36
         - rally-dsvm-manila-multibackend:
@@ -42,7 +46,10 @@
42 46
       jobs:
43 47
         - manila-tox-genconfig
44 48
         - manila-tempest-minimal-dsvm-dummy
45
-        - manila-tempest-minimal-dsvm-lvm-centos-7
49
+# TODO(gouthamr): make lvm job voting again
50
+# after https://bugs.launchpad.net/devstack/+bug/1833696
51
+# is fixed.
52
+#       - manila-tempest-minimal-dsvm-lvm-centos-7
46 53
     experimental:
47 54
       jobs:
48 55
         - manila-tempest-dsvm-glusterfs-nfs

+ 35
- 0
bindep.txt View File

@@ -0,0 +1,35 @@
1
+# This is a cross-platform list tracking distribution packages needed for
2
+# install and tests;
3
+# see https://docs.openstack.org/infra/bindep/ for additional information.
4
+
5
+build-essential [platform:dpkg test]
6
+gcc [platform:rpm test]
7
+# gettext and graphviz are needed by doc builds only. For transition,
8
+# have them in both doc and test.
9
+# TODO(jaegerandi): Remove test once infra scripts are updated.
10
+gettext [!platform:suse doc test]
11
+gettext-runtime [platform:suse doc test]
12
+graphviz [doc test]
13
+libffi-dev [platform:dpkg]
14
+libffi-devel [platform:redhat]
15
+libffi48-devel [platform:suse]
16
+virtual/libffi [platform:gentoo]
17
+libssl-dev [platform:dpkg]
18
+openssl-devel [platform:rpm !platform:suse]
19
+libopenssl-devel [platform:suse !platform:rpm]
20
+locales [platform:debian]
21
+mariadb [platform:rpm]
22
+mariadb-server [platform:redhat]
23
+mariadb-devel [platform:redhat]
24
+libmysqlclient-dev [platform:dpkg]
25
+libmysqlclient-devel [platform:suse]
26
+libpq-dev [platform:dpkg]
27
+mysql-client [platform:dpkg]
28
+mysql-server [platform:dpkg]
29
+postgresql
30
+postgresql-client [platform:dpkg]
31
+postgresql-devel [platform:rpm]
32
+postgresql-server [platform:rpm]
33
+libxml2-dev [platform:dpkg test]
34
+libxslt-devel [platform:rpm test]
35
+libxslt1-dev [platform:dpkg test]

+ 12
- 0
tox.ini View File

@@ -78,6 +78,18 @@ commands =
78 78
   doc8 --ignore D001 --ignore-path .tox --ignore-path doc/build --ignore-path manila.egg-info -e txt -e rst
79 79
 whitelist_externals = rm
80 80
 
81
+[testenv:bindep]
82
+# Do not install any requirements. We want this to be fast and work even if
83
+# system dependencies are missing, since it's used to tell you what system
84
+# dependencies are missing! This also means that bindep must be installed
85
+# separately, outside of the requirements files, and develop mode disabled
86
+# explicitly to avoid unnecessarily installing the checked-out repo too (this
87
+# further relies on "tox.skipsdist = True" above).
88
+basepython = python3
89
+deps = bindep
90
+commands = bindep test
91
+usedevelop = False
92
+
81 93
 [testenv:cover]
82 94
 setenv =
83 95
     {[testenv]setenv}

Loading…
Cancel
Save