<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git/tests/testutils, branch remove-dead-code</title>
<subtitle>gitlab.com: buildstream/buildstream.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/'/>
<entry>
<title>tests: Remove unused imports</title>
<updated>2019-03-01T19:05:30+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-03-01T09:10:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=29f8df922fabd350b535f3949cf138b193b409f3'/>
<id>29f8df922fabd350b535f3949cf138b193b409f3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Remove unused parameters in functions</title>
<updated>2019-03-01T19:05:30+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-02-28T19:35:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=402cc7af5464f34d29909148dfb0876e56f97124'/>
<id>402cc7af5464f34d29909148dfb0876e56f97124</id>
<content type='text'>
For parameters that are required as part of an API, prefix them
by "_" to make it clear they are unused
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For parameters that are required as part of an API, prefix them
by "_" to make it clear they are unused
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Remove unused variables</title>
<updated>2019-03-01T19:05:30+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-02-28T19:31:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=d6d33c94751bd47ca77d2b2e4ac246a2dd1328a6'/>
<id>d6d33c94751bd47ca77d2b2e4ac246a2dd1328a6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/testutils/repo/git.py: Use _run_git wrapper instead of git directly</title>
<updated>2019-03-01T10:00:23+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-03-01T09:51:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=99e37b6df848257d46fa60ccaf699cf95922049a'/>
<id>99e37b6df848257d46fa60ccaf699cf95922049a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: always use host tools from sites.py</title>
<updated>2019-03-01T10:00:23+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-03-01T09:48:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=a2947e503c5c99386ba6e10be8f3d6b9e8a39cbb'/>
<id>a2947e503c5c99386ba6e10be8f3d6b9e8a39cbb</id>
<content type='text'>
This allows tests importing them to have access to the commands
directly and removes the need from calling this multiple times

This also fixes multiple bugs where the paths of the tests runners
might not be canonical and tools would not get found correctly
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows tests importing them to have access to the commands
directly and removes the need from calling this multiple times

This also fixes multiple bugs where the paths of the tests runners
might not be canonical and tools would not get found correctly
</pre>
</div>
</content>
</entry>
<entry>
<title>CASQuota: Move cache check methods into new Class</title>
<updated>2019-02-19T17:05:17+00:00</updated>
<author>
<name>Raoul Hidalgo Charman</name>
<email>raoul.hidalgocharman@codethink.co.uk</email>
</author>
<published>2019-01-25T16:43:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=5e10e2e81bee10bab56ed5b8190f8332170d7096'/>
<id>5e10e2e81bee10bab56ed5b8190f8332170d7096</id>
<content type='text'>
This sits in Context allowing artifact cache to check the cas quota
while not being used for CASServer.

A lot of code that checks cache quota has been touched.

Part of #870
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This sits in Context allowing artifact cache to check the cas quota
while not being used for CASServer.

A lot of code that checks cache quota has been touched.

Part of #870
</pre>
</div>
</content>
</entry>
<entry>
<title>Expose basic api for testing external plugins.</title>
<updated>2019-02-08T14:27:54+00:00</updated>
<author>
<name>Phil Dawson</name>
<email>phil.dawson@codethink.co.uk</email>
</author>
<published>2019-01-16T14:03:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=b4d4c4f59c12c9b500f83d8cd4381418e1124f67'/>
<id>b4d4c4f59c12c9b500f83d8cd4381418e1124f67</id>
<content type='text'>
We want external plugins to be able to make use of the core testing utils.
This commit exposes the basic utilities which are currently in use in
bst-external plugins. If necessary, more utilities could be exposed in the
future.

Moves the following files from tests/testutils/ to
buildstream/plugintestingutils/:
o runcli.py
o integration.py

As part of this, this commit makes the following changes to runcli.py
and integration.py:
o runcli.py: Fix linting errors
o runcli.py: Add user facing documentation
o Integration.py: Add user facing documentation
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We want external plugins to be able to make use of the core testing utils.
This commit exposes the basic utilities which are currently in use in
bst-external plugins. If necessary, more utilities could be exposed in the
future.

Moves the following files from tests/testutils/ to
buildstream/plugintestingutils/:
o runcli.py
o integration.py

As part of this, this commit makes the following changes to runcli.py
and integration.py:
o runcli.py: Fix linting errors
o runcli.py: Add user facing documentation
o Integration.py: Add user facing documentation
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Fix test failures caused by unix sockets' path length limit</title>
<updated>2019-02-06T10:45:34+00:00</updated>
<author>
<name>Jonathan Maw</name>
<email>jonathan.maw@codethink.co.uk</email>
</author>
<published>2019-01-25T11:08:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=f4c8a0ecf76a303d76979bb5867f3537b12a815b'/>
<id>f4c8a0ecf76a303d76979bb5867f3537b12a815b</id>
<content type='text'>
The unix specification for unix sockets only allocates ~100 characters
for the length of the path. This may be longer than the path for a CI
runner, or the path to a user's buildstream directory.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The unix specification for unix sockets only allocates ~100 characters
for the length of the path. This may be longer than the path for a CI
runner, or the path to a user's buildstream directory.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Skip tests that use sandboxes on WSL</title>
<updated>2019-02-06T10:45:34+00:00</updated>
<author>
<name>Jonathan Maw</name>
<email>jonathan.maw@codethink.co.uk</email>
</author>
<published>2019-01-28T11:11:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=d4d2f89793ab6b361883b844e5e6b547fa714ca3'/>
<id>d4d2f89793ab6b361883b844e5e6b547fa714ca3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>testutils/site.py: Support parsing more exotic git versions</title>
<updated>2019-01-31T14:32:44+00:00</updated>
<author>
<name>Chandan Singh</name>
<email>csingh43@bloomberg.net</email>
</author>
<published>2019-01-29T14:58:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=dd791373f684c1faed8829ef426477b76185364e'/>
<id>dd791373f684c1faed8829ef426477b76185364e</id>
<content type='text'>
We use output of `git --version` to determine if we can run some tests
that rely on features from newer git versions. Usually, we expect the
output to be like:

    git version 2.17.2

On some platforms, like MacOS, there could be a suffix after the version
string, so that it looks something like:

    git version 2.17.2 (Apple Git-113)

This causes things to fail like so:

    ValueError: invalid literal for int() with base 10: '2 (Apple Git-113)\n'

Fix logic around `HAVE_OLD_GIT` such that we split the output of
`git --version` without limit on how many times we split. Previously we
used to split only twice so the suffixes like `(Apple Git-113)` are not
part of the parsed version.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We use output of `git --version` to determine if we can run some tests
that rely on features from newer git versions. Usually, we expect the
output to be like:

    git version 2.17.2

On some platforms, like MacOS, there could be a suffix after the version
string, so that it looks something like:

    git version 2.17.2 (Apple Git-113)

This causes things to fail like so:

    ValueError: invalid literal for int() with base 10: '2 (Apple Git-113)\n'

Fix logic around `HAVE_OLD_GIT` such that we split the output of
`git --version` without limit on how many times we split. Previously we
used to split only twice so the suffixes like `(Apple Git-113)` are not
part of the parsed version.
</pre>
</div>
</content>
</entry>
</feed>
