<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitlab.git, branch jlvillal/reset_gitlab</title>
<subtitle>github.com: gpocentek/python-gitlab.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/'/>
<entry>
<title>chore: make reset_gitlab() better</title>
<updated>2021-12-31T21:14:47+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-31T21:14:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=67dd7b495c83911b9718aa07cb21626400992e80'/>
<id>67dd7b495c83911b9718aa07cb21626400992e80</id>
<content type='text'>
Saw issues in the CI where reset_gitlab() would fail. It would fail to
delete the group that is created when GitLab starts up. Extending the
timeout didn't fix the issue.

Changed the code so now it will check if the item is deleted and if it
isn't it will call the delete() method again to ensure that GitLab
knows it should be deleted. Since making this change I have not been
able to reproduce the failure in reset_gitlab().

Also added some logging functionality that can be seen if logging is
turned on in pytest.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Saw issues in the CI where reset_gitlab() would fail. It would fail to
delete the group that is created when GitLab starts up. Extending the
timeout didn't fix the issue.

Changed the code so now it will check if the item is deleted and if it
isn't it will call the delete() method again to ensure that GitLab
knows it should be deleted. Since making this change I have not been
able to reproduce the failure in reset_gitlab().

Also added some logging functionality that can be seen if logging is
turned on in pytest.
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: add logging to `tests/functional/conftest.py`</title>
<updated>2021-12-31T21:14:35+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-31T21:14:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=3264aa65b18f623f972be38672f085c288b82839'/>
<id>3264aa65b18f623f972be38672f085c288b82839</id>
<content type='text'>
I have found trying to debug issues in the functional tests can be
difficult. Especially when trying to figure out failures in the CI
running on Github.

Add logging to `tests/functional/conftest.py` to have a better
understanding of what is happening during a test run which is useful
when trying to troubleshoot issues in the CI.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I have found trying to debug issues in the functional tests can be
difficult. Especially when trying to figure out failures in the CI
running on Github.

Add logging to `tests/functional/conftest.py` to have a better
understanding of what is happening during a test run which is useful
when trying to troubleshoot issues in the CI.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1773 from python-gitlab/jlvillal/pagination</title>
<updated>2021-12-31T20:50:37+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-31T20:50:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=a3eafab725ed0a30d1d35207f4941937f0aab886'/>
<id>a3eafab725ed0a30d1d35207f4941937f0aab886</id>
<content type='text'>
fix: handle situation where gitlab.com does not return values</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fix: handle situation where gitlab.com does not return values</pre>
</div>
</content>
</entry>
<entry>
<title>fix: handle situation where GitLab does not return values</title>
<updated>2021-12-30T20:34:50+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-30T20:34:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=cb824a49af9b0d155b89fe66a4cfebefe52beb7a'/>
<id>cb824a49af9b0d155b89fe66a4cfebefe52beb7a</id>
<content type='text'>
If a query returns more than 10,000 records than the following values
are NOT returned:
  x.total_pages
  x.total

Modify the code to allow no value to be set for these values. If there
is not a value returned the functions will now return None.

Update unit test so no longer `xfail`

https://docs.gitlab.com/ee/user/gitlab_com/index.html#pagination-response-headers

Closes #1686
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a query returns more than 10,000 records than the following values
are NOT returned:
  x.total_pages
  x.total

Modify the code to allow no value to be set for these values. If there
is not a value returned the functions will now return None.

Update unit test so no longer `xfail`

https://docs.gitlab.com/ee/user/gitlab_com/index.html#pagination-response-headers

Closes #1686
</pre>
</div>
</content>
</entry>
<entry>
<title>test: reproduce missing pagination headers in tests</title>
<updated>2021-12-30T19:26:38+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-30T14:35:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=501f9a1588db90e6d2c235723ba62c09a669b5d2'/>
<id>501f9a1588db90e6d2c235723ba62c09a669b5d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test: drop httmock dependency in test_gitlab.py</title>
<updated>2021-12-30T17:20:39+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-30T11:08:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=c764bee191438fc4aa2e52d14717c136760d2f3f'/>
<id>c764bee191438fc4aa2e52d14717c136760d2f3f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1783 from python-gitlab/jlvillal/sidekiq</title>
<updated>2021-12-29T00:13:49+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-29T00:13:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=f26bf7d3a86e4d5d1a43423476a46a381e62e8f9'/>
<id>f26bf7d3a86e4d5d1a43423476a46a381e62e8f9</id>
<content type='text'>
chore: ensure reset_gitlab() succeeds</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
chore: ensure reset_gitlab() succeeds</pre>
</div>
</content>
</entry>
<entry>
<title>chore: ensure reset_gitlab() succeeds</title>
<updated>2021-12-29T00:02:28+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-29T00:02:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=0aa0b272a90b11951f900b290a8154408eace1de'/>
<id>0aa0b272a90b11951f900b290a8154408eace1de</id>
<content type='text'>
Ensure reset_gitlab() succeeds by waiting to make sure everything has
been deleted as expected. If the timeout is exceeded fail the test.

Not using `wait_for_sidekiq` as it didn't work. During testing I
didn't see any sidekiq processes as being busy even though not
everything was deleted.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensure reset_gitlab() succeeds by waiting to make sure everything has
been deleted as expected. If the timeout is exceeded fail the test.

Not using `wait_for_sidekiq` as it didn't work. During testing I
didn't see any sidekiq processes as being busy even though not
everything was deleted.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1782 from python-gitlab/jlvillal/repository_func_tests</title>
<updated>2021-12-27T23:17:06+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-27T23:17:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=d65ce365ff69a6bec2aa8d306800f6f76cbef842'/>
<id>d65ce365ff69a6bec2aa8d306800f6f76cbef842</id>
<content type='text'>
chore: skip a functional test if not using &gt;= py3.9</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
chore: skip a functional test if not using &gt;= py3.9</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1781 from python-gitlab/jlvillal/docker_compose</title>
<updated>2021-12-27T23:14:31+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-27T23:14:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=171df891bc3153ae4dd79eac82c57675a0758e4b'/>
<id>171df891bc3153ae4dd79eac82c57675a0758e4b</id>
<content type='text'>
chore: update version in docker-compose.yml</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
chore: update version in docker-compose.yml</pre>
</div>
</content>
</entry>
</feed>
