<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python-jenkins-job-builder.git/tests/xml_config, branch 3.2.0</title>
<subtitle>patches to python-jenkins-job-builder package in Fedora</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/'/>
<entry>
<title>Auto-generated output from python-black</title>
<updated>2019-09-09T18:23:24+00:00</updated>
<author>
<name>Thanh Ha</name>
<email>zxiiro@gmail.com</email>
</author>
<published>2019-08-23T13:14:39+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=4d90c187a945c04b9949d5ee7738a049dd634897'/>
<id>4d90c187a945c04b9949d5ee7738a049dd634897</id>
<content type='text'>
Please review the following patch containing the code changes in
the repo. This patch is a transition patch and is the auto-generated
output of the python-black tool.

Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032
Signed-off-by: Thanh Ha &lt;zxiiro@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Please review the following patch containing the code changes in
the repo. This patch is a transition patch and is the auto-generated
output of the python-black tool.

Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032
Signed-off-by: Thanh Ha &lt;zxiiro@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor duplicated code in xml_config.py</title>
<updated>2018-06-20T19:41:35+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>daniel.watkins@canonical.com</email>
</author>
<published>2018-06-20T19:39:27+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=df84460f7b2f0965a6c5307812b878d07db40850'/>
<id>df84460f7b2f0965a6c5307812b878d07db40850</id>
<content type='text'>
The view generation code was largely a copy/paste of the job generation
code.  This refactors that shared code in to a super-class that both
code paths can share.

(This has the side effect of improving the error message when an
incorrect project-type is specified; that improvement was previously
only applied to views.)

Change-Id: I1316162b885267c5e21793e59c2c3f7b95d5ce3b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The view generation code was largely a copy/paste of the job generation
code.  This refactors that shared code in to a super-class that both
code paths can share.

(This has the side effect of improving the error message when an
incorrect project-type is specified; that improvement was previously
only applied to views.)

Change-Id: I1316162b885267c5e21793e59c2c3f7b95d5ce3b
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Move macro expansion into YamlParser."</title>
<updated>2018-01-01T16:54:10+00:00</updated>
<author>
<name>Thanh Ha</name>
<email>thanh.ha@linuxfoundation.org</email>
</author>
<published>2017-10-25T14:38:29+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=eddb40babdfd1acc16b923f2542cfe191d74bed7'/>
<id>eddb40babdfd1acc16b923f2542cfe191d74bed7</id>
<content type='text'>
This reverts commit e645ac2acff34c7e58af2b4715b5bcdd2dffa31a.

Change-Id: I56e8c8282669cbc9f963056f64e9caef8104b6bb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit e645ac2acff34c7e58af2b4715b5bcdd2dffa31a.

Change-Id: I56e8c8282669cbc9f963056f64e9caef8104b6bb
</pre>
</div>
</content>
</entry>
<entry>
<title>Give an explicit error message when unsupported view type used</title>
<updated>2017-10-06T18:24:48+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>daniel.watkins@canonical.com</email>
</author>
<published>2017-08-29T15:39:41+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=e6d6c276d154afa4908c83ad90d1f8a36ffdbd92'/>
<id>e6d6c276d154afa4908c83ad90d1f8a36ffdbd92</id>
<content type='text'>
When specifying a view type that isn't supported by any modules (such as
"list-view" instead of "list"), this ensures that the user is guided
towards something correct.

This changes the error message in this case from:

AttributeError: 'NoneType' object has no attribute 'name'

to:

jenkins_jobs.errors.JenkinsJobsException: Unrecognized view type: list-view (supported types are: list, pipeline)

Change-Id: I0ee800db1c9c8aeecffcf11f1e86c03ba0590da8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When specifying a view type that isn't supported by any modules (such as
"list-view" instead of "list"), this ensures that the user is guided
towards something correct.

This changes the error message in this case from:

AttributeError: 'NoneType' object has no attribute 'name'

to:

jenkins_jobs.errors.JenkinsJobsException: Unrecognized view type: list-view (supported types are: list, pipeline)

Change-Id: I0ee800db1c9c8aeecffcf11f1e86c03ba0590da8
</pre>
</div>
</content>
</entry>
<entry>
<title>Move macro expansion into YamlParser.</title>
<updated>2017-08-24T14:14:26+00:00</updated>
<author>
<name>Wayne Warren</name>
<email>waynr+launchpad@sdf.org</email>
</author>
<published>2016-05-31T14:27:11+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=e645ac2acff34c7e58af2b4715b5bcdd2dffa31a'/>
<id>e645ac2acff34c7e58af2b4715b5bcdd2dffa31a</id>
<content type='text'>
Introduce the registry.MacroRegistry class to handle:
 * registration of macro types via setuptools' entrypoints
 * registration of individual macros for lookup by component list type
 * expansion of macros references during YAML "parsing"

As a consequence there is a reduction in performance due to moving the
expansion of macros from inline with XML generation, to requiring
multiple passes over macro component lists.

This decrease in efficiency results in approx ~30-50% increase in unit
test time. Since this will allow for jobs to be expanded from
templates/macros in parallel with future changes, it is a reasonable
short term trade-off as the most computationally expensive task is
updating the definitions on the remote master

Change-Id: I292c6b1f8472370282205426cd8ceb847eb969bd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce the registry.MacroRegistry class to handle:
 * registration of macro types via setuptools' entrypoints
 * registration of individual macros for lookup by component list type
 * expansion of macros references during YAML "parsing"

As a consequence there is a reduction in performance due to moving the
expansion of macros from inline with XML generation, to requiring
multiple passes over macro component lists.

This decrease in efficiency results in approx ~30-50% increase in unit
test time. Since this will allow for jobs to be expanded from
templates/macros in parallel with future changes, it is a reasonable
short term trade-off as the most computationally expensive task is
updating the definitions on the remote master

Change-Id: I292c6b1f8472370282205426cd8ceb847eb969bd
</pre>
</div>
</content>
</entry>
<entry>
<title>Output additional info when exceptions occur</title>
<updated>2016-12-08T15:59:12+00:00</updated>
<author>
<name>Darragh Bailey</name>
<email>daragh.bailey@gmail.com</email>
</author>
<published>2016-04-24T02:35:00+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=0f0f6810693f5f3728772beb6680dce07b36fcd5'/>
<id>0f0f6810693f5f3728772beb6680dce07b36fcd5</id>
<content type='text'>
Problems occurring deep in the code frequently need to be caught and
additional information included in the error output to help debug
issues.

Change-Id: I5aee523a3cf9e1cb7573fa6fc5a06dc3888be1ef
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problems occurring deep in the code frequently need to be caught and
additional information included in the error output to help debug
issues.

Change-Id: I5aee523a3cf9e1cb7573fa6fc5a06dc3888be1ef
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable and fix xml_config tests</title>
<updated>2016-11-21T13:56:33+00:00</updated>
<author>
<name>Darragh Bailey</name>
<email>dbailey@hpe.com</email>
</author>
<published>2016-11-21T13:50:22+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=b36474bfae5aa51a5362d5fe0bbd474a1a965dc7'/>
<id>b36474bfae5aa51a5362d5fe0bbd474a1a965dc7</id>
<content type='text'>
Insert missing __init__.py to ensure xml_config tests run and update
call to `expandYaml` to handle multiple item return.

Change-Id: I8e409126556196f09a348d98a39ae9ca16245860
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Insert missing __init__.py to ensure xml_config tests run and update
call to `expandYaml` to handle multiple item return.

Change-Id: I8e409126556196f09a348d98a39ae9ca16245860
</pre>
</div>
</content>
</entry>
<entry>
<title>Raise exception on unrecognized project type</title>
<updated>2016-09-14T17:02:16+00:00</updated>
<author>
<name>Darragh Bailey</name>
<email>dbailey@hpe.com</email>
</author>
<published>2016-05-09T14:42:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=a5bd11ed18c1deb2525a65b3a92e51c719178da9'/>
<id>a5bd11ed18c1deb2525a65b3a92e51c719178da9</id>
<content type='text'>
Change-Id: I3a9355333dfc7c3f51cd970d0c12deff24223e68
Story: 2000575
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I3a9355333dfc7c3f51cd970d0c12deff24223e68
Story: 2000575
</pre>
</div>
</content>
</entry>
</feed>
