diff options
| author | Zuul <zuul@review.opendev.org> | 2025-01-24 15:32:07 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2025-01-24 15:32:07 +0000 |
| commit | 1db94519c3fed7dc085f337eb06f74fd259d9792 (patch) | |
| tree | a9c5b7697c3e77f35b10a23dac350cc8b1b62def | |
| parent | e70c58e35d0c6c1dbeca09c07190347bd5db461a (diff) | |
| parent | d3bb06d5ce3fb9df53fd6e043a3fea9bb1faeae0 (diff) | |
| download | kolla-1db94519c3fed7dc085f337eb06f74fd259d9792.tar.gz kolla-1db94519c3fed7dc085f337eb06f74fd259d9792.zip | |
Merge "Fix genconfig"
| -rw-r--r-- | .zuul.d/project.yaml | 6 | ||||
| -rw-r--r-- | .zuul.d/tox.yaml | 12 | ||||
| -rw-r--r-- | kolla/common/config.py | 21 | ||||
| -rw-r--r-- | tox.ini | 3 |
4 files changed, 34 insertions, 8 deletions
diff --git a/.zuul.d/project.yaml b/.zuul.d/project.yaml index 23250fd57..c35dacc86 100644 --- a/.zuul.d/project.yaml +++ b/.zuul.d/project.yaml @@ -8,3 +8,9 @@ - publish-openstack-docs-pti - release-notes-jobs-python3 - periodic-stable-jobs + check: + jobs: + - kolla-tox-genconfig + gate: + jobs: + - kolla-tox-genconfig diff --git a/.zuul.d/tox.yaml b/.zuul.d/tox.yaml new file mode 100644 index 000000000..fb52e06d4 --- /dev/null +++ b/.zuul.d/tox.yaml @@ -0,0 +1,12 @@ +--- +- job: + name: kolla-tox-genconfig + parent: openstack-tox + timeout: 2400 + description: | + + Run genconfig + + Uses tox with the ``genconfig`` environment. + vars: + tox_envlist: genconfig diff --git a/kolla/common/config.py b/kolla/common/config.py index 7ac3e8617..989adcc28 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -302,20 +302,29 @@ _BASE_OPTS = [ def get_source_opts(type_=None, location=None, reference=None, enabled=True, version=None, sha256=None): - return [cfg.StrOpt('type', choices=['local', 'git', 'url'], + return [cfg.StrOpt('type', + choices=['local', 'git', 'url'], default=type_, help='Source location type'), - cfg.StrOpt('location', default=location, + cfg.StrOpt('location', + default=location, help='The location for source install'), - cfg.StrOpt('reference', default=reference, + cfg.StrOpt('reference', + default=reference, help=('Git reference to pull, commit sha, tag ' 'or branch name')), - cfg.BoolOpt('enabled', default=enabled, + cfg.BoolOpt('enabled', + default=enabled, help=('Whether the source is enabled')), - cfg.StrOpt('version', default=version, + cfg.StrOpt('version', + default=version, help=('Package version to download for GitHub ' 'sources')), - cfg.DictOpt('sha256', default=sha256)] + cfg.DictOpt('sha256', + default=sha256, + help=('Dictionary of sha256 sums for GitHub ' + 'sources')), + ] def get_user_opts(uid, gid, group): @@ -1,12 +1,11 @@ [tox] minversion = 3.18 -skipsdist = True envlist = pep8,py310-{docker,podman} ignore_basepython_conflict = True [testenv] basepython = python3 -usedevelop=True +usedevelop = True allowlist_externals = find rm deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
