Commit Graph

27 Commits

Author SHA1 Message Date
Andreas Jaeger 0ec5a78f66 Sync with governance
Run script generate-gitmodules.py to sync with governace repository to
add new repositories and remove retired ones.

Change-Id: Ia42b717ad242958ba4a9689ac814c956f460712f
2020-06-07 16:15:34 +02:00
Sorin Sbarnea 11a1c811b5 Update git submodules
* Update gerritlib from branch 'master'
  - Fixed linting issues
    
    Newer versions of flake8 identify these valid violations.
    N802 added as skip because the entire library uses camelcase.
    
    Change-Id: Ia687b05bb8d0590eb30a970a710a2639548dbc60
2020-05-27 19:23:10 +00:00
Sorin Sbarnea ee73796b8c Update git submodules
* Update gerritlib from branch 'master'
  - Replace testrepository with stestr
    
    Replace outdated testrepository with its newer sibling, which
    is maintained.
    
    Change-Id: I9755b82d8a2a82f146e71fdc0f32e3f6002e804d
2020-05-21 14:19:17 +00:00
Sorin Sbarnea 53a3748028 Update git submodules
* Update gerritlib from branch 'master'
  - Enable py36-py38 testing
    
    - updates tox.ini, also fixing a typo
    - enables new jobs, which would at least test ability to install
      package under these versions.
    - updates Trove metadata
    - replace fake sole-survivor unittest with a bit more practical one
    
    Change-Id: Iae224a19850489ba3563ad5a40d358002dacdb97
2020-05-21 14:06:30 +00:00
Sorin Sbarnea 178272621f Update git submodules
* Update gerritlib from branch 'master'
  - Added missing retry_delay instance variable
    
    Found exception at line 179, where self.retry_delay was references
    without being assigned.
    
    Change-Id: I6d00fe9478ed3467120e0441bed3c32f68e20bca
2020-05-20 17:37:58 +00:00
vass 1efeb3a1fe Update git submodules
* Update gerritlib from branch 'master'
  - Use ensure-* roles
    
    The install-* roles in zuul-jobs have been renamed to ensure-*, follow
    the rename.
    
    Change-Id: Ia5dffd38399142d9f17a1123b3e4a46bdbca7662
2020-04-27 20:02:45 +00:00
Zuul 0434440f88 Update git submodules
* Update gerritlib from branch 'master'
  - Merge "Return lists from listing functions"
  - Return lists from listing functions
    
    We use filter to filter out entries when listing items like groups. This
    returns a list in python2 but an iterable in python3. Return a
    consistent list via forced coersion.
    
    Change-Id: Iad84f6f383fb85363f3ef51c4bd1da05b8069e43
2020-03-30 17:35:16 +00:00
Monty Taylor 483d82bd9a Update git submodules
* Update gerritlib from branch 'master'
  - Run gerritlib integration tests with python3
    
    Now that we're running manage-projects in a python3 container,
    we should switch our integration tests to use python3.
    
    Depends-On: https://review.opendev.org/715527
    Change-Id: I33a6daf92906d9087c4a31f11966e5037445cd68
2020-03-28 00:09:46 +00:00
Zuul 72995eac7d Update git submodules
* Update gerritlib from branch 'master'
  - Merge "Add integration testing with jeepyb and gerrit"
  - Add integration testing with jeepyb and gerrit
    
    This adds integration testing to gerritlib with jeepyb and gerrit.
    
    Depends-On: https://review.opendev.org/704660
    Change-Id: I1815e63693656d52c10a9cb9bf60f999e036dfed
2020-03-22 14:06:04 +00:00
Clark Boylan 0b35073c74 Update git submodules
* Update gerritlib from branch 'master'
  - Pass Gerrit not GerritConnection to GerritWatcher
    
    We want to call addEvent on the 'gerrit' arg passed to GerritWatcher.
    For that to work it needs to be of type Gerrit not GerritConnection.
    
    Update the location of username, port, etc data to the connection
    details in the gerrit object.
    
    Change-Id: Ic739ddc970f6761f5587ab8fcba3e619a98a4379
2020-01-29 00:05:36 +00:00
Zuul 7157e1d7de Update git submodules
* Update gerritlib from branch 'master'
  - Merge "Convert gerrit output to utf8 unicode"
  - Convert gerrit output to utf8 unicode
    
    We get back bytestrings from paramiko when it talks to gerrit. Make this
    a bit more user friendly for python3 and decode these bytestrings into
    utf8 unicode.
    
    Change-Id: I1866de53d0978f805faef0933ef37e68454ff5f3
2020-01-28 02:28:47 +00:00
Zuul 746746fb9f Update git submodules
* Update gerritlib from branch 'master'
  - Merge "Use newer paramiko"
  - Use newer paramiko
    
    Old paramiko uses pycrypto which is out of date and insecure. Switch to
    new paramiko and cryptography instead.
    
    Change-Id: I651244d549d10a848643d1e3b96438833a5954bd
2020-01-28 02:00:56 +00:00
Darragh Bailey 569a432ac8 Update git submodules
* Update gerritlib from branch 'master'
  - Support querying for single group info
    
    Allow querying to check if a single group entry exists, which when
    combined with 'verbose=True' will return the UUID for a single group.
    
    Change-Id: I851ab29999c0d059c9cb71bd38a821c035ae98f7
2020-01-28 01:32:22 +00:00
Darragh Bailey 301671dd8f Update git submodules
* Update gerritlib from branch 'master'
  - Reuse same paramiko connection recreating on errors
    
    Move connection related code to a common object to allow reuse of the
    connection setup code. This helps avoiding unnecessary recreation of
    the connection where it is being used multiple times within the same
    process for multiple calls.
    
    Change-Id: Idf318ce5c36100e550182e773ce55da69fe35063
    
  - OpenDev Migration Patch
    
    This commit was bulk generated and pushed by the OpenDev sysadmins
    as a part of the Git hosting and code review systems migration
    detailed in these mailing list posts:
    
    http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
    http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html
    
    Attempts have been made to correct repository namespaces and
    hostnames based on simple pattern matching, but it's possible some
    were updated incorrectly or missed entirely. Please reach out to us
    via the contact information listed at https://opendev.org/ with any
    questions you may have.
2020-01-28 01:32:21 +00:00
Ian Wienand 0a44e59f5a Update git submodules
* Update gerritlib from branch 'master'
  - Replace openstack.org git:// URLs with https://
    
    This is a mechanically generated change to replace openstack.org
    git:// URLs with https:// equivalents.
    
    This is in aid of a planned future move of the git hosting
    infrastructure to a self-hosted instance of gitea (https://gitea.io),
    which does not support the git wire protocol at this stage.
    
    This update should result in no functional change.
    
    For more information see the thread at
    
     http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
    
    Change-Id: I194eaf19074655822776b2e533519607622738c8
    
  - Merge "Updated list of Python versions in tox"
  - Close ssh connections when done with them
    
    Newer paramiko leaks connections if they are not explicitly closed. Add
    a finally handler to always close the ssh connections when we are done
    with it to avoid leaking these connections.
    
    Change-Id: Ia2e53998d362683a42bda074d82e3a3a75f380b4
    
  - Updated list of Python versions in tox
    
    Change-Id: I40118820d7eb0956dc012556aa1d5767f40d652e
    Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2019-03-27 00:15:09 +00:00
Clark Boylan c28ca49aa0 Update git submodules
* Update gerritlib from branch 'master'
  - Add group membership management functions
    
    Add functions to list group members and add and remove users from
    groups.
    
    Change-Id: Id5d8915f2c0bf6f6057b414785b8ec1b18e810f2
2017-09-22 21:11:59 +00:00
Clark Boylan 8262e3194c Update git submodules
* Update gerritlib from branch 'master'
  - Handle different gerrit versions with create-project
    
    Gerrit < 2.12 used a --name argument on create-project. Newer Gerrit
    simply takes the project name as an arg. Check the Gerrit version before
    constructing the create-project command.
    
    Change-Id: I59ca051627d54a11ef6524cce9b5a4414fd2193d
2017-09-19 23:47:29 +00:00
Khai Do 9b0ce0e394 Updated openstack/openstack
Project: openstack-infra/gerritlib  d9478fcc08c9b4b9bdcccf5a4ac7fc3d685d8b56

Remove pyflakes environment

There are no test jobs for flake8 so this is not neeeded.

Change-Id: I63c7ae85510a86d0667b96da6526fa0df5aa621a
2017-06-15 13:37:33 +00:00
Sorin Sbarnea a2f0158270 Updated openstack/openstack
Project: openstack-infra/gerritlib  2c8298394fba83dc30c4e1adb32bb78fa7e82fe8

Removed pbr<2.0.0 to resolve depencency conflicts

Change-Id: Ia96cef693d82b42320561df80eb5a571085cda93
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2017-04-02 13:02:23 +00:00
Khai Do 5ba3883ef1 Updated openstack/openstack
Project: openstack-infra/gerritlib  4527edd4ad7e01e887be8227db756d83e243919a

Remove deprecated create-project '--name' option

The create-project '--name' option was removed[1] in Gerrit 2.12.
Update gerritlib to match the command for Gerrit-2.12+. This is also
compatible with Gerrit 2.11

[1] https://gerrit-review.googlesource.com/#/c/69738/

Change-Id: Ie70d938501cbf88dbbb0e9ab22abcc921f89ccdc
2016-12-09 14:14:00 +00:00
Khai Do 53fc1db477 Updated openstack/openstack
Project: openstack-infra/gerritlib  33feeb837bbceabc4b636c1bc331fd0dab8b0c60

Allow creating projects with spaces

Gerrit supports creating projects that contain spaces in it.
Quote the project name otherwise the command will fail when user
attempts to create a project with spaces in it.

Change-Id: Ie1db92812355b4d8f7603c3b4b8d20434ca54bb3
2016-12-09 14:13:00 +00:00
Jeremy Stanley 243262d5c3 Updated openstack/openstack
Project: openstack-infra/gerritlib  fba7102ae48b17d40ec242719c6e61a19664e877

Specify testenv command for tox>=2.5

As of the tox 2.5.0 release, failure to specify a default commands
key in the fallback testenv section of tox.ini instantly fails with
"ERROR: Commands not specified. Please update relevant section of
.../tox.ini".

Copy the testenv.commands entry from the openstack/cookiecutter
repo's template. While at it, copy the boilerplate placeholder test
from the cookiecutter templates so that jobs don't freak out when
they discover (and then run) no tests.

Change-Id: Ifb8fcfbb6d76edd8c7dcf814a705ee7eff3a9819
2016-12-09 14:12:53 +00:00
Paul Belanger a02f8ee67a Updated openstack/openstack
Project: openstack-infra/gerritlib  11647ed384eebc4438db29db8da8dd658190f5f7

Cap paramiko<2.0.0

Until we have a good migration plan for paramika, lets cap at <2.0.0.
Otherwise we need to install libffi-dev and other dependencies for the
version bump.

Change-Id: Iad29f93814c798fc2c4204e08e940011ad1428dc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-25 15:22:29 +00:00
Khai Do e17f08ea78 Updated openstack/openstack
Project: openstack-infra/gerritlib  cd183a4f43692db8e2cc271313df87aafb47882d

Stop specifying requirements.txt in tox.ini

As PBR already injects the contents of requirements.txt into
setup_requires, there is no need for tox to explicitly install them.
http://lists.openstack.org/pipermail/openstack-dev/2015-July/069663.html

Change-Id: I5fc4de208e6c2f6926238f6942bf4ca9804748e4
2016-02-09 14:44:59 +00:00
Monty Taylor 9f462d9147 Updated openstack/openstack
Project: openstack-infra/gerritlib  24de1df8dfd7dafe79a53c144f3940ecb868f864

Bump pbr and hacking version

Bumping pbr required a bump to hacking otherwise build will fail
with VersionConflict error.

Change-Id: I3d2a031c175dcd25b309bd3cbf15f5ebad0c4744
2016-02-09 14:44:51 +00:00
Khai Do 5ee1589082 Updated openstack/openstack
Project: openstack-infra/gerritlib  58ca447785cbfe82d16cd415b28deaca23736843

Update project docs

This change does the following:
  Update docs with more info
  Add an example usage of this library
  Add pbr versioning to docs
  Updates the requirements
  Rarrange the docs to look better on pypi

Lots of the elements to do above were borrowed from
python-jenkins and jenkins-job-builder projects.

Change-Id: Idc7dfc88cc26e1147b027fd55d41229c4bf3910f
2015-07-08 13:51:40 +00:00
Jenkins 01b7e9274a Updated openstack/openstack
Project: openstack-infra/gerritlib  0a3531b43201c28d6378ab928d2869ad06fb51d0

Doc generation support

Based on cookiecutter and slightly tweaked afterward.

* conf.py has autoclass_content = 'both' to generate the __init__
  documentation.
* bumped doc copyright to 2015.
* adds in tox environement 'docs' as a convenience

Change-Id: I69bb4179be343ab7c8a44f6fb80d5a428fe30e17
2015-03-13 02:42:05 +00:00