stable

Clone or download

Read-only

Replace process_system_events.php by tuleap process-system-event

This is driven by the need of running Tuleap backend (hence system events) on centos7 containers without systemd but with supervisord+crond. As there are no dependencies on /usr/bin/php, it's not deployed and the cron fails because they start with /usr/bin/php mt_rand... I could have fixed it by replacing the exec by php72 from remi but even me find that really too ugly (and needless to say that it will break at some points when we move to php73). The rational here is to integrate all lonely .php scripts as tuleap commands and to have the "random delay" as a primary feature of the command. This is part of request #13394 tuleap-aio should run on centos7 Change-Id: I00f77379fe0348c97cc2608e7dc2306b7a3e0716

Modified Files

Name
A src/common/CLI/Command/ProcessSystemEventsCommand.php +80 −0 Go to diff View file
M src/common/system_event/SystemEventProcess.class.php +28 −8 Go to diff View file
M src/common/system_event/SystemEventProcessApplicationOwnerDefaultQueue.class.php +7 −4 Go to diff View file
M src/common/system_event/SystemEventProcessCustomQueue.class.php +7 −4 Go to diff View file
M src/common/system_event/SystemEventProcessManager.class.php +14 −13 Go to diff View file
M src/common/system_event/SystemEventProcessRootDefaultQueue.class.php +7 −4 Go to diff View file
M src/common/system_event/SystemEventProcessorMutex.class.php +2 −6 Go to diff View file
M src/common/system_event/SystemEventProcessor_Root.class.php +3 −3 Go to diff View file
M src/utils/cron.d/codendi +19 −16 Go to diff View file
M src/utils/cron.d/codendi-stop +2 −2 Go to diff View file
M src/utils/process_system_events.php +15 −7 Go to diff View file
M src/utils/systemd/tuleap-process-system-events-default.service +1 −1 Go to diff View file
M src/utils/systemd/tuleap-process-system-events-git.service +1 −1 Go to diff View file
M src/utils/tuleap.php +10 −3 Go to diff View file
A tests/phpunit/common/SystemEvent/SystemEventProcessManagerTest.php +92 −0 Go to diff View file
M tests/rest/bin/setup.sh +3 −0 Go to diff View file
M tests/simpletest/common/system_event/SystemEventProcessor_RootTest.php +3 −2 Go to diff View file