<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python-jenkins-job-builder.git/tests/parallel, 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>Rename "parallelize" decorator to "concurrent"</title>
<updated>2016-08-19T02:47:48+00:00</updated>
<author>
<name>Wayne Warren</name>
<email>waynr+launchpad@sdf.org</email>
</author>
<published>2016-06-23T05:43:19+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=dfc0efb79c66785c9e4d0bca825330654bb208af'/>
<id>dfc0efb79c66785c9e4d0bca825330654bb208af</id>
<content type='text'>
It came to my attention when I was deciding whether or not to use the
jenkins_jobs.parallel.parallelize decorator to parallelize things in
jenkins_jobs.parser that because it is using the Python threading
library nothing is actually parallelized, only concurrentized (at least
for CPython).

I actually think concurrency is fine for the original use case since
that (ie, updating Jenkins jobs) is primarily I/O bound on network
connections to a Jenkins instance. However, the "parallel" name really
is misleading and could actually be harmful for users of this API who
may mistakenly have the impression that it can be used to speed up
CPU-bound tasks.

Also removes seemingly unnecessary usages of this decorator. ie,
jenkins_jobs.builder.Jenkins.changed that is never actually calle
with a list of arguments.

Change-Id: I996f9dea440e2d6b67ea70870d22942d6eef3ec7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It came to my attention when I was deciding whether or not to use the
jenkins_jobs.parallel.parallelize decorator to parallelize things in
jenkins_jobs.parser that because it is using the Python threading
library nothing is actually parallelized, only concurrentized (at least
for CPython).

I actually think concurrency is fine for the original use case since
that (ie, updating Jenkins jobs) is primarily I/O bound on network
connections to a Jenkins instance. However, the "parallel" name really
is misleading and could actually be harmful for users of this API who
may mistakenly have the impression that it can be used to speed up
CPU-bound tasks.

Also removes seemingly unnecessary usages of this decorator. ie,
jenkins_jobs.builder.Jenkins.changed that is never actually calle
with a list of arguments.

Change-Id: I996f9dea440e2d6b67ea70870d22942d6eef3ec7
</pre>
</div>
</content>
</entry>
<entry>
<title>Add parallelization options</title>
<updated>2015-12-01T15:05:04+00:00</updated>
<author>
<name>David Caro</name>
<email>dcaroest@redhat.com</email>
</author>
<published>2014-02-21T19:59:24+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=333fdc65a11484f6c1690224f62b20d222a5fba8'/>
<id>333fdc65a11484f6c1690224f62b20d222a5fba8</id>
<content type='text'>
* Only update_jobs uses the parallel features right now
* --workers N
    - If set to 0, it will use parallel execution and
      use the number of cores in the machine as thread count
    - Any other value enables the parallel extensions and sets the
      number of concurrent threads to that value
    - Will use 1 by default

Add some tests to make sure the parallel execution helpers work as
expected.

Change-Id: Ib0abd34ea7525f75fff4ff480287a6e589deba90
Signed-off-by: David Caro &lt;dcaroest@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Only update_jobs uses the parallel features right now
* --workers N
    - If set to 0, it will use parallel execution and
      use the number of cores in the machine as thread count
    - Any other value enables the parallel extensions and sets the
      number of concurrent threads to that value
    - Will use 1 by default

Add some tests to make sure the parallel execution helpers work as
expected.

Change-Id: Ib0abd34ea7525f75fff4ff480287a6e589deba90
Signed-off-by: David Caro &lt;dcaroest@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Added parallelization options"</title>
<updated>2015-05-05T18:30:03+00:00</updated>
<author>
<name>James E. Blair</name>
<email>corvus@inaugust.com</email>
</author>
<published>2015-05-05T18:07:37+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=f74ce34d36415368090bb00598d0068b0e73ccf2'/>
<id>f74ce34d36415368090bb00598d0068b0e73ccf2</id>
<content type='text'>
This reverts commit 7100a7f225e60936f23d24c757c1b14c9b136ec4.

The referenced commit, in addition to what it advertises, also
filters the result of update_jobs to include only changed jobs.
If there are no change jobs, then, if the user specifies
--delete-old, there are no jobs in the list of jobs to keep
which comes from the result of update_jobs.  In that case, all
jobs are deleted.  Or in other words, the logic in this change
is that all jobs not updated are deleted.

Proposing as a revert because this is currently causing serious
problems for continuously deployed JJB instances, and the very
common --delete-old code path should be properly tested with
this change before it lands again.

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

The referenced commit, in addition to what it advertises, also
filters the result of update_jobs to include only changed jobs.
If there are no change jobs, then, if the user specifies
--delete-old, there are no jobs in the list of jobs to keep
which comes from the result of update_jobs.  In that case, all
jobs are deleted.  Or in other words, the logic in this change
is that all jobs not updated are deleted.

Proposing as a revert because this is currently causing serious
problems for continuously deployed JJB instances, and the very
common --delete-old code path should be properly tested with
this change before it lands again.

Change-Id: I98443f0c085e27ed8dfece6409434015ac24b306
</pre>
</div>
</content>
</entry>
<entry>
<title>Added parallelization options</title>
<updated>2015-04-30T19:33:08+00:00</updated>
<author>
<name>David Caro</name>
<email>dcaroest@redhat.com</email>
</author>
<published>2014-02-21T19:59:24+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ktdreyer/public_git/python-jenkins-job-builder.git/commit/?id=7100a7f225e60936f23d24c757c1b14c9b136ec4'/>
<id>7100a7f225e60936f23d24c757c1b14c9b136ec4</id>
<content type='text'>
* Only update_jobs uses the parallel features right now
* --workers N
    - if set to 0, it will use parallel execution and
      use the number of cores in the machine as thread count
    - Any other value enables the paralllel extensions and sets the
      number of concurrent threads to that value
    - Will use 1 by default

Added some tests to make sure the parallel execution helpers work as
expected

Change-Id: Iee8426ff2dc4c5b4ebec4c15bdd21cae5b47eb83
Signed-off-by: David Caro &lt;dcaroest@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Only update_jobs uses the parallel features right now
* --workers N
    - if set to 0, it will use parallel execution and
      use the number of cores in the machine as thread count
    - Any other value enables the paralllel extensions and sets the
      number of concurrent threads to that value
    - Will use 1 by default

Added some tests to make sure the parallel execution helpers work as
expected

Change-Id: Iee8426ff2dc4c5b4ebec4c15bdd21cae5b47eb83
Signed-off-by: David Caro &lt;dcaroest@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
