<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git/tests/frontend, branch bschubert/python38</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>Add tests for interactive `bst init`</title>
<updated>2019-12-05T13:46:40+00:00</updated>
<author>
<name>Chandan Singh</name>
<email>chandan@chandansingh.net</email>
</author>
<published>2019-11-12T00:47:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=23423f6bd1572003fbb1af571bf9a9758abdd79c'/>
<id>23423f6bd1572003fbb1af571bf9a9758abdd79c</id>
<content type='text'>
Add tests for interactive `bst init` command using
[pexpect](https://pexpect.readthedocs.io).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add tests for interactive `bst init` command using
[pexpect](https://pexpect.readthedocs.io).
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/frontend/pull.py: Do not use checkout --hardlinks</title>
<updated>2019-12-03T12:06:31+00:00</updated>
<author>
<name>Jürg Billeter</name>
<email>j@bitron.ch</email>
</author>
<published>2019-11-21T07:16:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=485fac0aa55f95466fedbff83ebacce38692bfa4'/>
<id>485fac0aa55f95466fedbff83ebacce38692bfa4</id>
<content type='text'>
This is not necessary and doesn't work with CASD_SEPARATE_USER.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is not necessary and doesn't work with CASD_SEPARATE_USER.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/frontend/buildcheckout.py: Cannot hardlink with CASD_SEPARATE_USER</title>
<updated>2019-12-03T12:06:31+00:00</updated>
<author>
<name>Jürg Billeter</name>
<email>j@bitron.ch</email>
</author>
<published>2019-11-21T07:06:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=b10a1cf327501271ccdeb82be9ff3eca7acf4898'/>
<id>b10a1cf327501271ccdeb82be9ff3eca7acf4898</id>
<content type='text'>
Linux does not allow hardlinks to read-only files of other users by
default since Linux 3.6 (see /proc/sys/fs/protected_hardlinks).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Linux does not allow hardlinks to read-only files of other users by
default since Linux 3.6 (see /proc/sys/fs/protected_hardlinks).
</pre>
</div>
</content>
</entry>
<entry>
<title>lint: Remove unnecessary list comprehensions</title>
<updated>2019-12-02T11:02:23+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>bschubert15@bloomberg.net</email>
</author>
<published>2019-12-02T11:02:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=069b110c866ecfd652a041d735ca6d261b8d41ba'/>
<id>069b110c866ecfd652a041d735ca6d261b8d41ba</id>
<content type='text'>
Newer version of pylint detect when a comprehension would not be needed.
Let's remove all the ones that are indeed extraneous
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Newer version of pylint detect when a comprehension would not be needed.
Let's remove all the ones that are indeed extraneous
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/frontend: Refactor tests for default targets</title>
<updated>2019-11-27T11:06:36+00:00</updated>
<author>
<name>Chandan Singh</name>
<email>csingh43@bloomberg.net</email>
</author>
<published>2019-11-11T16:01:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=75a8560c919245b7e1df37e069cf4a5b86496c76'/>
<id>75a8560c919245b7e1df37e069cf4a5b86496c76</id>
<content type='text'>
`tests/frontend/buildcheckout.py` is already very crowded with all sorts
of tests. Since this test is not really about testing `bst build` but
rather about testing whether BuildStream can detect the default targets
correctly, move it to a separate test module.

At the same time, also improve the actual tests. Currently the test
compares the number of sub-directories in BuildStream log directory with
the number of elements. Change it such that we directly query
BuildStream about what's been built rather than trying to guess.

While doing so, sanitize its project directory to make it clearer what's
being tested.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`tests/frontend/buildcheckout.py` is already very crowded with all sorts
of tests. Since this test is not really about testing `bst build` but
rather about testing whether BuildStream can detect the default targets
correctly, move it to a separate test module.

At the same time, also improve the actual tests. Currently the test
compares the number of sub-directories in BuildStream log directory with
the number of elements. Change it such that we directly query
BuildStream about what's been built rather than trying to guess.

While doing so, sanitize its project directory to make it clearer what's
being tested.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix stacktraces during element loading</title>
<updated>2019-11-22T11:41:31+00:00</updated>
<author>
<name>Tristan Maat</name>
<email>tristan.maat@codethink.co.uk</email>
</author>
<published>2019-11-18T16:50:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=176338b5cc20ac64b2b85bf83f704af7b26f3e6a'/>
<id>176338b5cc20ac64b2b85bf83f704af7b26f3e6a</id>
<content type='text'>
These were caused by unhandled errors from plugins when calling
`Source.get_consistency()`. This doesn't really solve the problem,
since that interface is still used un-wrapped elsewhere, but it
enables removing `Element.__schedule_tracking()` and fixes a bug.

Ultimately we'd like to remove `Source.get_consistency()`, so this
isn't too long-term of a problem.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These were caused by unhandled errors from plugins when calling
`Source.get_consistency()`. This doesn't really solve the problem,
since that interface is still used un-wrapped elsewhere, but it
enables removing `Element.__schedule_tracking()` and fixes a bug.

Ultimately we'd like to remove `Source.get_consistency()`, so this
isn't too long-term of a problem.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reformat code using Black</title>
<updated>2019-11-14T21:21:06+00:00</updated>
<author>
<name>Chandan Singh</name>
<email>csingh43@bloomberg.net</email>
</author>
<published>2019-11-11T17:07:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=122177153b14664a0e4fed85aa4f22b87cfabf56'/>
<id>122177153b14664a0e4fed85aa4f22b87cfabf56</id>
<content type='text'>
As discussed over the mailing list, reformat code using Black. This is a
one-off change to reformat all our codebase. Moving forward, we
shouldn't expect such blanket reformats. Rather, we expect each change
to already comply with the Black formatting style.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As discussed over the mailing list, reformat code using Black. This is a
one-off change to reformat all our codebase. Moving forward, we
shouldn't expect such blanket reformats. Rather, we expect each change
to already comply with the Black formatting style.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/frontend/completions: Fix implicit string concatenation</title>
<updated>2019-11-12T10:44:05+00:00</updated>
<author>
<name>Chandan Singh</name>
<email>csingh43@bloomberg.net</email>
</author>
<published>2019-11-11T18:51:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=7b6847cd29d9b19dd6fd11dd73d89417f2dd207e'/>
<id>7b6847cd29d9b19dd6fd11dd73d89417f2dd207e</id>
<content type='text'>
We expect `INVALID_ELEMENTS` to be a list of element names. However we
are missing a comma in between the names, so they end up being
concatenated into a single strings.

The test passes either way (which is not ideal) because it just checks
that the suggested completion is _different_ than the expected in case
of errors.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We expect `INVALID_ELEMENTS` to be a list of element names. However we
are missing a comma in between the names, so they end up being
concatenated into a single strings.

The test passes either way (which is not ideal) because it just checks
that the suggested completion is _different_ than the expected in case
of errors.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary ignore_workspaces kwarg</title>
<updated>2019-11-06T09:16:21+00:00</updated>
<author>
<name>Darius Makovsky</name>
<email>traveltissues@protonmail.com</email>
</author>
<published>2019-11-06T09:16:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=2245af28b79cf978d7eb19fdb06273a4515c62d6'/>
<id>2245af28b79cf978d7eb19fdb06273a4515c62d6</id>
<content type='text'>
Attempting to open a workspace for the same element without closing it
now raises. This makes this kwarg unnecessary and tests should close
workspaces between attempts to open.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Attempting to open a workspace for the same element without closing it
now raises. This makes this kwarg unnecessary and tests should close
workspaces between attempts to open.
</pre>
</div>
</content>
</entry>
<entry>
<title>frontend: Remove tracking options from `bst build`</title>
<updated>2019-11-04T11:01:14+00:00</updated>
<author>
<name>Chandan Singh</name>
<email>chandan@chandansingh.net</email>
</author>
<published>2019-10-26T18:07:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=576be1fc19bb58d25309a911589ceb9f08f7812d'/>
<id>576be1fc19bb58d25309a911589ceb9f08f7812d</id>
<content type='text'>
BREAKING CHANGE: Remove all tracking related options and flags from
`bst build` command, as discussed on mailing list previously.

See
https://mail.gnome.org/archives/buildstream-list/2019-October/msg00009.html
for the original proposal, and
https://mail.gnome.org/archives/buildstream-list/2019-October/msg00024.html
for a summary.

At the same time, remove use of the removed options from our test suite.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BREAKING CHANGE: Remove all tracking related options and flags from
`bst build` command, as discussed on mailing list previously.

See
https://mail.gnome.org/archives/buildstream-list/2019-October/msg00009.html
for the original proposal, and
https://mail.gnome.org/archives/buildstream-list/2019-October/msg00024.html
for a summary.

At the same time, remove use of the removed options from our test suite.
</pre>
</div>
</content>
</entry>
</feed>
