stable

Clone or download

Read-only

Cap the maximum time given to retrieve data for a batch of jobs

In the worst scenario, the retrieval of a batch of jobs can now take MAX_BATCH_TIME + TIMEOUT_HTTP_CLIENT - 1s. The maximum time given to process a batch of jobs has been arbitrarily set to 5 seconds. In the future this should be dropped in favor of multiple HTTP queries processed in parallel. This is part of request #11415: Displaying all CI jobs can be slow Change-Id: I4f1fe8875fdb7ddfc6abba6aae4bb49f4c20432d

Modified Files

Name
M plugins/hudson/include/HudsonJobBuilder.php +30 −0 Go to diff View file
A plugins/hudson/include/HudsonJobLazyExceptionHandler.php +56 −0 Go to diff View file
A plugins/hudson/include/HudsonJobRetrievalTooLongException.php +25 −0 Go to diff View file
M plugins/hudson/include/autoload.php +4 −2 Go to diff View file
M plugins/hudson/include/hudsonPlugin.class.php +4 −1 Go to diff View file
M plugins/hudson/include/hudsonViews.class.php +29 −16 Go to diff View file
M plugins/hudson/include/hudson_Widget_MyMonitoredJobs.class.php +54 −31 Go to diff View file
M plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php +20 −6 Go to diff View file
M plugins/hudson/phpunit/HudsonJobBuilderTest.php +23 −0 Go to diff View file
A plugins/hudson/phpunit/HudsonJobLazyExceptionHandlerTest.php +62 −0 Go to diff View file
A plugins/hudson/site-content/fr_FR/LC_MESSAGES/tuleap-hudson.po +23 −0 Go to diff View file
A plugins/hudson/site-content/tuleap-hudson.pot +11 −0 Go to diff View file