<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git, branch valentindavid/rmtree_oserror</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>Catch correct exception from shutil.rmtree</title>
<updated>2018-10-04T14:56:09+00:00</updated>
<author>
<name>Valentin David</name>
<email>valentin.david@codethink.co.uk</email>
</author>
<published>2018-10-02T15:44:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=a79842185f3e762154002c6e928da30d6745568b'/>
<id>a79842185f3e762154002c6e928da30d6745568b</id>
<content type='text'>
Python documentation is not clear on what shutil.rmtree is supposed to
raise. However from the source code, it is obvious that OSError are
raised, but never shutil.Error.

It is not easy to test in normal condition because issues happen
usually in combination with a FUSE filesystem, a probably a race
condition where `fstatat` returns an error just before the filesystem
being unmounted.

Fixes #153.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Python documentation is not clear on what shutil.rmtree is supposed to
raise. However from the source code, it is obvious that OSError are
raised, but never shutil.Error.

It is not easy to test in normal condition because issues happen
usually in combination with a FUSE filesystem, a probably a race
condition where `fstatat` returns an error just before the filesystem
being unmounted.

Fixes #153.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'Qinusty/634-workspace-failed-builds' into 'master'</title>
<updated>2018-10-04T14:11:27+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.van.berkom@gmail.com</email>
</author>
<published>2018-10-04T14:11:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=8630bac464a9b98654485a2b8699eb38083b0eb5'/>
<id>8630bac464a9b98654485a2b8699eb38083b0eb5</id>
<content type='text'>
Do not save workspace on failed build

Closes #634

See merge request BuildStream/buildstream!812</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Do not save workspace on failed build

Closes #634

See merge request BuildStream/buildstream!812</pre>
</div>
</content>
</entry>
<entry>
<title>testing: Add regression test for workspace bug</title>
<updated>2018-10-04T13:43:10+00:00</updated>
<author>
<name>Josh Smith</name>
<email>qinusty@gmail.com</email>
</author>
<published>2018-09-20T12:19:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=788cde6a050d6d455b37ba21a0ee4a35a0872bc2'/>
<id>788cde6a050d6d455b37ba21a0ee4a35a0872bc2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>element.py: Do not save workspace on failed build</title>
<updated>2018-10-04T13:43:10+00:00</updated>
<author>
<name>Josh Smith</name>
<email>qinusty@gmail.com</email>
</author>
<published>2018-09-19T16:53:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=c5778941217fb0ebbaed6eb6d6a0b255918e01a4'/>
<id>c5778941217fb0ebbaed6eb6d6a0b255918e01a4</id>
<content type='text'>
This fixes #634, BuildStream no longer saves workspace configuration on
a failed build.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes #634, BuildStream no longer saves workspace configuration on
a failed build.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'danielsilverstone-ct/bwrap-check-runtime-only' into 'master'</title>
<updated>2018-10-04T09:45:58+00:00</updated>
<author>
<name>Jürg Billeter</name>
<email>j@bitron.ch</email>
</author>
<published>2018-10-04T09:45:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=fd6a957366e5abe3cddc225118969205000e182d'/>
<id>fd6a957366e5abe3cddc225118969205000e182d</id>
<content type='text'>
Make bwrap check runtime only

Closes #644

See merge request BuildStream/buildstream!847</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make bwrap check runtime only

Closes #644

See merge request BuildStream/buildstream!847</pre>
</div>
</content>
</entry>
<entry>
<title>setup.py: Change bwrap assertion to a warning</title>
<updated>2018-10-04T09:13:04+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-02T12:39:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=c46a7e878ad94c856083fc84dbc09fc9f6126ff3'/>
<id>c46a7e878ad94c856083fc84dbc09fc9f6126ff3</id>
<content type='text'>
Since there are use-cases where BuildStream could be installed
onto systems which do not have BubbleWrap (e.g. for remote-build-only
scenarios) it is not correct to assert a dependency on bwrap during
installation.  This patch makes the assertion a warning, and also
clarifies the message somewhat.  This should fix #644

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since there are use-cases where BuildStream could be installed
onto systems which do not have BubbleWrap (e.g. for remote-build-only
scenarios) it is not correct to assert a dependency on bwrap during
installation.  This patch makes the assertion a warning, and also
clarifies the message somewhat.  This should fix #644

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>_site.py: Reduce complexity of bwrap version comparison</title>
<updated>2018-10-04T09:04:21+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-04T08:19:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=c74bfbe502bf85fbd1dfd493101b77ffef275ebe'/>
<id>c74bfbe502bf85fbd1dfd493101b77ffef275ebe</id>
<content type='text'>
Instead of an if/else ladder which is quite complex, this patch
uses the fact that Python supports by-component tuple comparison
to simply compare two (major, minor, patch) tuples

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of an if/else ladder which is quite complex, this patch
uses the fact that Python supports by-component tuple comparison
to simply compare two (major, minor, patch) tuples

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>_site.py: Protect against failure running `bwrap --version`</title>
<updated>2018-10-04T09:04:21+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-02T12:32:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=b8421a9c86e4dc5f860516ef05163b99fd72809c'/>
<id>b8421a9c86e4dc5f860516ef05163b99fd72809c</id>
<content type='text'>
On some potentially broken systems, running `bwrap --version` might
fail with an error code.  This patch corrects the oversight ensuring
that we cleanly return False for version checking in such cases.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On some potentially broken systems, running `bwrap --version` might
fail with an error code.  This patch corrects the oversight ensuring
that we cleanly return False for version checking in such cases.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>_platform/linux.py: Refactor checks for sandboxing</title>
<updated>2018-10-04T09:04:21+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-02T10:49:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=df0d5a8b704c828357d0dbb8c37ab2c4e7d36ae6'/>
<id>df0d5a8b704c828357d0dbb8c37ab2c4e7d36ae6</id>
<content type='text'>
To better report issues in the absence of a suitable bwrap, or the
FUSE devices, this refactors the checks for sandboxing in the Linux
platform to cover the various possibilities.  The reasons are then
collated and passed to the dummy sandbox for later reporting to the
user if a local build is attempted.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To better report issues in the absence of a suitable bwrap, or the
FUSE devices, this refactors the checks for sandboxing in the Linux
platform to cover the various possibilities.  The reasons are then
collated and passed to the dummy sandbox for later reporting to the
user if a local build is attempted.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>_platform/darwin.py: Give reason for use of dummy sandbox</title>
<updated>2018-10-04T08:12:20+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-02T10:48:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=b9ddcd0e9115ce232d8641cff569f4034bac4fd3'/>
<id>b9ddcd0e9115ce232d8641cff569f4034bac4fd3</id>
<content type='text'>
Since Darwin is limited to the dummy sandbox for now due to OSXFUSE
being unsupported as yet, and there being no suitable sandboxing option
for use on OSX, give this as the reason so that it can be reported if
the user attempts a local build.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since Darwin is limited to the dummy sandbox for now due to OSXFUSE
being unsupported as yet, and there being no suitable sandboxing option
for use on OSX, give this as the reason so that it can be reported if
the user attempts a local build.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
</feed>
