-
Bug
-
Resolution: Incomplete
-
Critical
-
None
-
Win2003 64-bit, with 64-bit JVM, Hudson 1.338
Win7 64-bit, Jenkins 1.514, Execute concurrent builds enabled
One executor on one machine: Finishes job A, starts the post-build-actions of job A and while they are still running starts job B.
We have one Hudson master and several Hudson clients. They all only have 1 executor per machine so on one machine officially only one job runs at a time.
Example of the timing of two subsequent jobs with all Hudson nodes offline except one (and remember we only have 1 executor per machine!):
0:59am: putting two jobs into the queue: Job1 and Job2
1:00am: Job1 starts ...
2:00am: Job1 finished executing all build steps
2:00am: Job1 post build actions start ...
2:01am: Job2 starts ...
2:03am: Job1 post build actions finished.
...
As you can see from 2:01am till 2:03am Job2 and the post-build-actions of Job1 are running in parallel on the same executor! That's the problem I am talking about.
We have the following post-build actions enabled:
- Archive the artifacts
- Publish JUnit test result report (This is the one which tried to access files which were no longer there then.)
- E-mail Notification
As far as I understand locks+latches won't do what we want to happen because we want to have Job1 and Job2 run in parallel in different executors/machines if there are more executors/machines online.
The first thing a job does is to delete all the workspaces on that machine except his own one. We do that because the clients disks are too small to hold all jobs workspaces. (Each jobs workspace is about 10 GB and we have about 100 jobs, but the disk of the Hudson machine is just 100 GB.)
But this deletion is actually just what made us realize about the parallelism.
The bug I want to report is that Job1-post-build-actions run in parallel with Job2 on the same machine with just one executor.
you might want to see the discussion on the users list regarding the issue:
http://jenkins.361315.n4.nabble.com/Post-actions-still-run-while-next-job-already-started-td1013097.html