<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git/tests/format/project, branch master</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/plugins/loading.py: Migrate tests for found/not found plugins</title>
<updated>2020-05-03T04:30:13+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2020-04-29T07:22:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=e13275bdd92aae182d7e93f5b916c4fc4fd280f8'/>
<id>e13275bdd92aae182d7e93f5b916c4fc4fd280f8</id>
<content type='text'>
This new test replaces the test in tests/format/project.py.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This new test replaces the test in tests/format/project.py.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin.py/pluginfactory.py: Implementing BST_MIN_VERSION</title>
<updated>2020-04-29T07:24:59+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2020-04-28T10:23:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=a311a14f4b0a649b5f872ab020885b0a1d6e09d1'/>
<id>a311a14f4b0a649b5f872ab020885b0a1d6e09d1</id>
<content type='text'>
The BST_MIN_VERSION guards assert that the BuildStream core which
loaded the plugin is compatible with the plugin itself.

This commit adds BST_MIN_VERSION to the base plugin.py with documentation
informing Plugin authors how to set the minimum version, and also adds
the assertions at plugin loading time in pluginfactory.py.

This commit also:

  * Adds the BST_MIN_VERSION specification to all current core plugins
  * Adds the BST_MIN_VERSION specification to plugins used in test cases
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The BST_MIN_VERSION guards assert that the BuildStream core which
loaded the plugin is compatible with the plugin itself.

This commit adds BST_MIN_VERSION to the base plugin.py with documentation
informing Plugin authors how to set the minimum version, and also adds
the assertions at plugin loading time in pluginfactory.py.

This commit also:

  * Adds the BST_MIN_VERSION specification to all current core plugins
  * Adds the BST_MIN_VERSION specification to plugins used in test cases
</pre>
</div>
</content>
</entry>
<entry>
<title>Plugin loading refactor, removing all versioning</title>
<updated>2020-04-29T07:24:58+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2020-04-24T09:12:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=d63bd7e9def528d3ed59a2798452ac1da58ebea4'/>
<id>d63bd7e9def528d3ed59a2798452ac1da58ebea4</id>
<content type='text'>
Plugin format versioning was decided to be removed for local
plugins and any plugins for which we do not load an explicitly
provided plugin. For pip, this will be handled with a standard
distutils/setuptools approach, allowing users to specify pip
style version boundaries in the plugin origins.

This patch refactors plugin loading so that all related code
goes into the private _pluginfactory module, a new small
PluginOrigin type was added to better manipulate loaded
origins.

Test cases have been removed and will be readded in a following
commit, adjusted to new expectations.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Plugin format versioning was decided to be removed for local
plugins and any plugins for which we do not load an explicitly
provided plugin. For pip, this will be handled with a standard
distutils/setuptools approach, allowing users to specify pip
style version boundaries in the plugin origins.

This patch refactors plugin loading so that all related code
goes into the private _pluginfactory module, a new small
PluginOrigin type was added to better manipulate loaded
origins.

Test cases have been removed and will be readded in a following
commit, adjusted to new expectations.
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace format-version with min-version</title>
<updated>2020-04-24T15:16:01+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2020-04-20T11:30:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=6ef6be52c1cd66245fc7f13a3c472024e10c3c1a'/>
<id>6ef6be52c1cd66245fc7f13a3c472024e10c3c1a</id>
<content type='text'>
  * "min-version" is specified as a &lt;major&gt;.&lt;minor&gt; point version
    and uses the installed BuildStream version instead of having
    a separate versioning number for the format.

  * The presence of "format-version" is now used to indicate
    that we might be loading a BuildStream 1 project.

  * For now, where parsing the version at startup is concerned, and
    also where `bst init` is concerned, we artificially bump the
    detected BuildStream version to 2.0 if we detect a version &lt; 2.0,
    these exceptions can be removed once 2.0 is tagged and released.

Summary of changes:

  _project.py: Now parse "min-version" and detect "format-version" to
               warn about loading a BuildStream 1 project

  _versions.py: Remove obsolete BST_FORMAT_VERSION numbers from here

  data/projectconfig.yaml: Remove old "format-version" from defaults

  utils.py: Added new private _parse_version() helper function, and another
            _get_bst_api_version() to get an adjusted API version.

  frontend/app.py, frontend/cli.py: Updated `bst init` implementation

  testing (buildstream.testing): Updated testing utilities to generate
  and use projects with min-version instead of format-version.

  tests and examples: Updated to use min-version across the board.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  * "min-version" is specified as a &lt;major&gt;.&lt;minor&gt; point version
    and uses the installed BuildStream version instead of having
    a separate versioning number for the format.

  * The presence of "format-version" is now used to indicate
    that we might be loading a BuildStream 1 project.

  * For now, where parsing the version at startup is concerned, and
    also where `bst init` is concerned, we artificially bump the
    detected BuildStream version to 2.0 if we detect a version &lt; 2.0,
    these exceptions can be removed once 2.0 is tagged and released.

Summary of changes:

  _project.py: Now parse "min-version" and detect "format-version" to
               warn about loading a BuildStream 1 project

  _versions.py: Remove obsolete BST_FORMAT_VERSION numbers from here

  data/projectconfig.yaml: Remove old "format-version" from defaults

  utils.py: Added new private _parse_version() helper function, and another
            _get_bst_api_version() to get an adjusted API version.

  frontend/app.py, frontend/cli.py: Updated `bst init` implementation

  testing (buildstream.testing): Updated testing utilities to generate
  and use projects with min-version instead of format-version.

  tests and examples: Updated to use min-version across the board.
</pre>
</div>
</content>
</entry>
<entry>
<title>source.py: Remove 'get_consistency' completely</title>
<updated>2020-01-16T16:33:19+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>bschubert15@bloomberg.net</email>
</author>
<published>2019-11-28T17:50:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=5cb2442e789d6b302f7d261ba5d2a2ad5366d7c2'/>
<id>5cb2442e789d6b302f7d261ba5d2a2ad5366d7c2</id>
<content type='text'>
This is not needed now that we have 'is_resolved' and 'is_cached'.
We can therefore drop all calling places and implementations of it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is not needed now that we have 'is_resolved' and 'is_cached'.
We can therefore drop all calling places and implementations of it.
</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/format/project.py: Added tests for missing files and missing junctions</title>
<updated>2019-03-12T07:14:58+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2019-03-09T09:51:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=f4a92e16ad2913de845ab5de866bbb0b963f349a'/>
<id>f4a92e16ad2913de845ab5de866bbb0b963f349a</id>
<content type='text'>
These also assert that the provenance of the references to missing
files are reported, guarding for regressions of issue #947
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These also assert that the provenance of the references to missing
files are reported, guarding for regressions of issue #947
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Migrate preflight error handling check to tests/format/project.py</title>
<updated>2019-01-16T23:35:21+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2019-01-11T19:16:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=de881c2ac07a072f60d0adcd5e6cc734c08b773b'/>
<id>de881c2ac07a072f60d0adcd5e6cc734c08b773b</id>
<content type='text'>
This is where other load time related plugin error handling is
checked, and is the last thing to remove in the `tests/pipeline`
directory.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is where other load time related plugin error handling is
checked, and is the last thing to remove in the `tests/pipeline`
directory.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Migrate test for load_ref() unsupporting plugins into format/project.py</title>
<updated>2019-01-16T23:35:21+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2019-01-11T19:02:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=8f2b4e9aa0631b8622804206d5742701fd3e03c0'/>
<id>8f2b4e9aa0631b8622804206d5742701fd3e03c0</id>
<content type='text'>
The tests/format/project.py test already has some tests about how
we error gracefully for bad plugins and bad plugin configurations,
lets put it there rather than tests/pipeline/load.py which we
will remove.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The tests/format/project.py test already has some tests about how
we error gracefully for bad plugins and bad plugin configurations,
lets put it there rather than tests/pipeline/load.py which we
will remove.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/format/project.py: Added new regression test for empty dependency dictionaries</title>
<updated>2018-12-07T07:57:56+00:00</updated>
<author>
<name>Tristan Van Berkom</name>
<email>tristan.vanberkom@codethink.co.uk</email>
</author>
<published>2018-12-07T07:56:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=642ae4e8ba4715023c98f24981b412ac146edb88'/>
<id>642ae4e8ba4715023c98f24981b412ac146edb88</id>
<content type='text'>
This adds a regression test for issue #803
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a regression test for issue #803
</pre>
</div>
</content>
</entry>
</feed>
