stable

Clone or download

Read-only

feat: CCE pipeline saves logs in db

Part of story #35093 execute custom code as artifact post action Tracker administrator can know if its WASM module run well or not by looking at logs. Currently logs are saved in db. A future contribution will display them in tracker module administration *Testing:* Create/Update an artifact of a tracker with a WASM module, table `tracker_cce_module_log` should have a new entry telling if execution has passed or not with some details. Change-Id: Ia56911905de9e7797029f0297368e77bbae6fd4a

Modified Files

Name
M plugins/tracker_cce/composer.json +1 −1 Go to diff View file
A plugins/tracker_cce/db/install.sql +13 −0 Go to diff View file
A plugins/tracker_cce/db/mysql/updates/2024/202401171155_add_table_plugin_tracker_cce_module_log.php +52 −0 Go to diff View file
A plugins/tracker_cce/db/uninstall.sql +1 −0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/CustomCodeExecutionTask.php +26 −5 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Logs/ModuleLogDao.php +35 −0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Logs/ModuleLogLine.php +96 −0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Logs/SaveModuleLog.php +28 −0 Go to diff View file
M plugins/tracker_cce/include/tracker_ccePlugin.php +2 −0 Go to diff View file
A plugins/tracker_cce/tests/integration/TrackerCCE/Logs/ModuleLogDaoTest.php +83 −0 Go to diff View file
A plugins/tracker_cce/tests/unit/Stub/Logs/SaveModuleLogStub.php +50 −0 Go to diff View file
M plugins/tracker_cce/tests/unit/TrackerCCE/CustomCodeExecutionTaskTest.php +15 −0 Go to diff View file
M tests/integration/bin/setup.sh +2 −1 Go to diff View file