<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git, branch sam/test-source-caching-fix</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>integration-tests: Fix `run-tests.sh --sources DIR` when DIR doesn't exist</title>
<updated>2017-11-06T10:49:38+00:00</updated>
<author>
<name>Sam Thursfield</name>
<email>sam.thursfield@codethink.co.uk</email>
</author>
<published>2017-11-06T10:46:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=2ec4203c2306b566e624499f95ac037f53ecadc8'/>
<id>2ec4203c2306b566e624499f95ac037f53ecadc8</id>
<content type='text'>
We need to canonicalize the path using the `realpath -m` or
`realpath --canonicalize-missing`, otherwise if the directory doesn't
exist we get an error:

    realpath: /tmp/foo/bar/: No such file or directory

The tests still work if this happens but the sources go into the
default location because the BST_SOURCE_CACHE variable goes unset.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need to canonicalize the path using the `realpath -m` or
`realpath --canonicalize-missing`, otherwise if the directory doesn't
exist we get an error:

    realpath: /tmp/foo/bar/: No such file or directory

The tests still work if this happens but the sources go into the
default location because the BST_SOURCE_CACHE variable goes unset.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugins/sources/tar.py: Ignore leading ./ in tarball paths</title>
<updated>2017-11-03T12:33:15+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2017-11-02T10:21:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=5192c83a9ed6b42e17f199bdfcefb6b7b96e5244'/>
<id>5192c83a9ed6b42e17f199bdfcefb6b7b96e5244</id>
<content type='text'>
This makes buildstream behave the same way with tarballs which
were encoded with a leading `.` and those encoded without one.

This fixes issue #145
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes buildstream behave the same way with tarballs which
were encoded with a leading `.` and those encoded without one.

This fixes issue #145
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/sources/tar.py: Converted tar test to use the CLI and enhanced</title>
<updated>2017-11-03T12:32:10+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2017-11-03T11:51:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=069dcb4f43e64197224fd9d9bc56c6d6d54ac847'/>
<id>069dcb4f43e64197224fd9d9bc56c6d6d54ac847</id>
<content type='text'>
Now test to also ensure that base-dir expressions always behave
the same way regardless of whether the tarball was created with
a leading '.' or not.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now test to also ensure that base-dir expressions always behave
the same way regardless of whether the tarball was created with
a leading '.' or not.
</pre>
</div>
</content>
</entry>
<entry>
<title>doc/source/pluginindex.rst: Added zip source to the plugins index</title>
<updated>2017-11-03T10:50:54+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2017-11-03T10:50:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=45501e618079245e22f5f337cd0d77a939bbfeef'/>
<id>45501e618079245e22f5f337cd0d77a939bbfeef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a new zip source</title>
<updated>2017-11-03T06:57:24+00:00</updated>
<author>
<name>Mathieu Bridon</name>
<email>bochecha@daitauha.fr</email>
</author>
<published>2017-10-30T17:03:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=958d118a380a4785e26f4542532216c33bad408d'/>
<id>958d118a380a4785e26f4542532216c33bad408d</id>
<content type='text'>
This is equivalent to the tar source, but for Zip archives.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is equivalent to the tar source, but for Zip archives.
</pre>
</div>
</content>
</entry>
<entry>
<title>tar: Move most of the code to a new base class</title>
<updated>2017-11-03T06:35:21+00:00</updated>
<author>
<name>Mathieu Bridon</name>
<email>bochecha@daitauha.fr</email>
</author>
<published>2017-10-30T16:25:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=3f25bb99437b17e627c26719c83c14294fe25e80'/>
<id>3f25bb99437b17e627c26719c83c14294fe25e80</id>
<content type='text'>
The new DownloadableFileSource will be used as a base for all sources
which just download a file to use as source.

The existing TarSource just keeps the code responsible to manage a Tar
archive.

This will help implemeting other types of single file downloaded
sources, for example Zip archives.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new DownloadableFileSource will be used as a base for all sources
which just download a file to use as source.

The existing TarSource just keeps the code responsible to manage a Tar
archive.

This will help implemeting other types of single file downloaded
sources, for example Zip archives.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Reuse utils.sha256sum</title>
<updated>2017-11-03T06:35:21+00:00</updated>
<author>
<name>Mathieu Bridon</name>
<email>bochecha@daitauha.fr</email>
</author>
<published>2017-11-02T08:20:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=f330024d640f340e92ea221ff26a343bf26a0115'/>
<id>f330024d640f340e92ea221ff26a343bf26a0115</id>
<content type='text'>
The utility function was added in 08da7cc7, but it never was removed
from here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The utility function was added in 08da7cc7, but it never was removed
from here.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/testutils/repo/tar.py: Fixed for changed tar behavior</title>
<updated>2017-11-02T09:58:37+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2017-11-02T09:58:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=557a08d0b3f6101f8452cce25096b310de0f596e'/>
<id>557a08d0b3f6101f8452cce25096b310de0f596e</id>
<content type='text'>
This test was encoding tarballs with '.', so the change of
ignoring '.' breaks this - now we just make the tar test
scaffolding use an empty string for the base-dir.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This test was encoding tarballs with '.', so the change of
ignoring '.' breaks this - now we just make the tar test
scaffolding use an empty string for the base-dir.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugins/sources/tar.py: Ignore possible leading '.' directory.</title>
<updated>2017-11-02T09:55:32+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2017-11-02T09:55:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=9870257fd81299c282f909d04b88d821f90b3743'/>
<id>9870257fd81299c282f909d04b88d821f90b3743</id>
<content type='text'>
To extract the full tarball, one should set base-dir to an
empty string.

By ignoring the leading '.' in any archive, we make the 'base-dir'
API more predictable and reliable - the default behavior of '*' is
to pickup the first directory in the tarball (usually source code
tarballs are encoded with one leading directory) - in the off chance
that a source tarball has a leading '.' in it; that would cause
the 'base-dir' default '*' glob to extract the whole thing.

It seems undesirable to behave differently depending on whether
a tarball was encoded with, or without a leading '.'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To extract the full tarball, one should set base-dir to an
empty string.

By ignoring the leading '.' in any archive, we make the 'base-dir'
API more predictable and reliable - the default behavior of '*' is
to pickup the first directory in the tarball (usually source code
tarballs are encoded with one leading directory) - in the off chance
that a source tarball has a leading '.' in it; that would cause
the 'base-dir' default '*' glob to extract the whole thing.

It seems undesirable to behave differently depending on whether
a tarball was encoded with, or without a leading '.'
</pre>
</div>
</content>
</entry>
<entry>
<title>Clean old Platform.get_platform references</title>
<updated>2017-11-01T10:01:42+00:00</updated>
<author>
<name>Tristan Maat</name>
<email>tristan.maat@codethink.co.uk</email>
</author>
<published>2017-10-31T13:31:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=6c0fa8445b849680300d407efe8bca691d4e680e'/>
<id>6c0fa8445b849680300d407efe8bca691d4e680e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
