<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git/buildstream/_artifactcache/cascache.py, branch jennis/docs_patch</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>Split up artifact cache and CAS cache</title>
<updated>2018-11-05T17:18:12+00:00</updated>
<author>
<name>Jürg Billeter</name>
<email>j@bitron.ch</email>
</author>
<published>2018-10-17T10:02:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=626d20aefb52d25d987c61f377cc1ce3172da8c3'/>
<id>626d20aefb52d25d987c61f377cc1ce3172da8c3</id>
<content type='text'>
This changes CASCache from a subclass to a delegate object of
ArtifactCache. As the lower layer, CASCache no longer deals with
elements or projects.

Fixes #659.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This changes CASCache from a subclass to a delegate object of
ArtifactCache. As the lower layer, CASCache no longer deals with
elements or projects.

Fixes #659.
</pre>
</div>
</content>
</entry>
<entry>
<title>_artifactcache/cascache.py: Cleanup lint warning about indexing</title>
<updated>2018-10-25T14:43:52+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-24T10:28:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=1445a901fcf4a91ef867183e4685b526aad916a6'/>
<id>1445a901fcf4a91ef867183e4685b526aad916a6</id>
<content type='text'>
In order to quieten the linter, and to make a more correct comparison,
we switch to using the `Code.OK` enumeration from `google.rpc.Code`

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>
In order to quieten the linter, and to make a more correct comparison,
we switch to using the `Code.OK` enumeration from `google.rpc.Code`

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>_artifactcache/cascache.py: Remove unused imports</title>
<updated>2018-10-25T14:43:52+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-24T10:18:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=ad8271f0add42e089f19a7b055a0edfcdd903c03'/>
<id>ad8271f0add42e089f19a7b055a0edfcdd903c03</id>
<content type='text'>
The imports of `Message` and `MessageType` were unused.

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>
The imports of `Message` and `MessageType` were unused.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>_artifactcache/cascache.py: Prepare attributes in __init__</title>
<updated>2018-10-25T14:43:52+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-24T10:17:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=fa740402f56bb0172ae1a44e24fd182c80c68ee6'/>
<id>fa740402f56bb0172ae1a44e24fd182c80c68ee6</id>
<content type='text'>
Python linters prefer that attributes are defined in __init__ rather
than left to later routines.

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>
Python linters prefer that attributes are defined in __init__ rather
than left to later routines.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>_artifactcache/cascache.py: Silence len(SEQUENCE) as condition warnings</title>
<updated>2018-10-25T14:43:52+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-24T10:12:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=d73d965b736c50bafa019a343707e73ef5c1aa90'/>
<id>d73d965b736c50bafa019a343707e73ef5c1aa90</id>
<content type='text'>
The lint tool dislikes the use of `if len(SEQ) == 0` type statements
because nominally `len(SEQ)` may be more expensive than `bool(SEQ)`.

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>
The lint tool dislikes the use of `if len(SEQ) == 0` type statements
because nominally `len(SEQ)` may be more expensive than `bool(SEQ)`.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>_artifactcache/cascache.py: Refactor slightly for indentation</title>
<updated>2018-10-25T14:43:52+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>daniel.silverstone@codethink.co.uk</email>
</author>
<published>2018-10-24T10:09:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=5087f5c5c33ff83e15bb9e8340bb900d4d052115'/>
<id>5087f5c5c33ff83e15bb9e8340bb900d4d052115</id>
<content type='text'>
Correct some multi-line conditional indentation by slight refactor
if necessary.

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>
Correct some multi-line conditional indentation by slight refactor
if necessary.

Signed-off-by: Daniel Silverstone &lt;daniel.silverstone@codethink.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>_artifactcache: Fix ref in update_mtime()</title>
<updated>2018-10-22T17:05:41+00:00</updated>
<author>
<name>Jürg Billeter</name>
<email>j@bitron.ch</email>
</author>
<published>2018-10-17T16:11:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=a7a28d14a71b4c343c4c7605779912e0d5a7c1fa'/>
<id>a7a28d14a71b4c343c4c7605779912e0d5a7c1fa</id>
<content type='text'>
get_artifact_fullname() is required to construct the ref. The cache key
alone does not suffice.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
get_artifact_fullname() is required to construct the ref. The cache key
alone does not suffice.
</pre>
</div>
</content>
</entry>
<entry>
<title>_artifactcache: Rename update_atime() to update_mtime()</title>
<updated>2018-10-22T17:05:41+00:00</updated>
<author>
<name>Jürg Billeter</name>
<email>j@bitron.ch</email>
</author>
<published>2018-10-17T16:08:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=12719f0db161358013f3995e2fe83385630c7c4e'/>
<id>12719f0db161358013f3995e2fe83385630c7c4e</id>
<content type='text'>
os.utime() updates both, however, list_artifacts() sorts refs by mtime,
i.e., atime is irrelevant.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
os.utime() updates both, however, list_artifacts() sorts refs by mtime,
i.e., atime is irrelevant.
</pre>
</div>
</content>
</entry>
<entry>
<title>_artifactcache: Fix crash in push_directory() without artifact server</title>
<updated>2018-10-15T11:07:05+00:00</updated>
<author>
<name>Jürg Billeter</name>
<email>j@bitron.ch</email>
</author>
<published>2018-10-11T17:57:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=b39d87b4b52cfd64a56c152a09bd2bc15588e943'/>
<id>b39d87b4b52cfd64a56c152a09bd2bc15588e943</id>
<content type='text'>
Fixes #708.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #708.
</pre>
</div>
</content>
</entry>
<entry>
<title>_artifactcache/cascache.py: Don't create temporary files in the CAS storage</title>
<updated>2018-10-03T13:44:02+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2018-10-03T12:57:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=3e797bb9b4d41346fae35eeed7c903062780f8ad'/>
<id>3e797bb9b4d41346fae35eeed7c903062780f8ad</id>
<content type='text'>
Use the designated tempdir when creating refs, we expect that temporary
files are not created in the storage directory ever, they should be
only ever created in the designated temporary directory.

This fixes race conditions where utils._get_dir_size() throws an
unhandled exception when attempting to stat the file which inadvertantly
disappears.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the designated tempdir when creating refs, we expect that temporary
files are not created in the storage directory ever, they should be
only ever created in the designated temporary directory.

This fixes race conditions where utils._get_dir_size() throws an
unhandled exception when attempting to stat the file which inadvertantly
disappears.
</pre>
</div>
</content>
</entry>
</feed>
