Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-02-16 | phpdoc and scrutinizer warning fixes | Matthieu Napoli | |
2015-01-12 | Simplified get from container with new shorter method | Matthieu Napoli | |
2014-12-28 | #6881 Disable logging in 'climulti:request' | Matthieu Napoli | |
The `climulti:request` commands now run in "quiet" mode so it will not log to the output. | |||
2014-11-27 | Merge branch 'di-config' into tmp-path | Matthieu Napoli | |
Conflicts: tests/PHPUnit/Integration/LogTest.php | |||
2014-11-13 | refs #6617 if process or output size is too large, declare it as finished | Thomas Steur | |
Declares a process as finished as soon as a PID file is > 500bytes (contains only PID) and output file is > 100MB (which should usually not be larger than 100KB or 1MB) to prevent files growing up to many GBs. I added unit and integration tests for the file size detection. It is now possible to mock the methods file_exists and filesize although very simple so far. Later we can allow to define callbacks or to define different return values for different files or we can use something like vfsStream | |||
2014-11-13 | Moved the `tmp/` path into the config (was hardcoded everywhere) | Matthieu Napoli | |
The `tmp/` path was hardcoded everywhere, which resulted in using `SettingsPiwik::rewriteTmpPathWithInstanceId()` to rewrite it for specific use cases. I've moved that path into the config, and replaced all hardcoded usage (and calls to `rewriteTmpPathWithInstanceId()`) by a `get()` from the container. Getting entries from the container is a bad practice and dependency injection should be preferred, but we do baby steps. When refactoring those classes to DI, we'll replace calls to the container with proper dependency injection. Another thing we'll need to do too is move the hardcoded *sub-path* of `tmp/` (e.g. `tmp/sessions/`) into the config also (but again: baby steps). Another future step would be to remove completely instance ID and let it be handled by a plugin (or by end-user config). Having the `tmp/` path in the config means that plugins or users can override it and know it will be taken into account everywhere in Piwik. | |||
2014-11-04 | Add note about CliMulti URL encoding to method docs. | diosmosis | |
2014-10-21 | file_exists check instead of suppressing filemtime | mgriego | |
2014-10-20 | Suppress errors while performing file cleanup during simultaneous cron runs. | mgriego | |
2014-09-30 | coding style fixes, some PHPStorm inspection fixes, improved readability of ↵ | Thomas Steur | |
code, few refactorings, all as part of our code cleanup strategy | |||
2014-08-18 | refs #6012 if the current script is run as type CGI, it is most likely that ↵ | Thomas Steur | |
we will find a CGI php binary and we should fallback to use curl / web instead of executing a console command which does not support CGI. We would otherwise not detect whether the binary is CGI in case the php binary is named php54 etc. and not php54-cgi | |||
2014-07-23 | reduced multiple empty lines to exactly one | Christian Raue | |
2014-07-11 | Fix HHVM support for CLI | Diftraku | |
HHVM 3.0.1 doesn't like the -q flag used in the PHP command-line. Moving the flag into findPhpBinary() in CliPhp adds compatibility with HHVM. Previously mentioned in piwik/piwik/#5263 | |||
2014-07-07 | Merge pull request #345 from craue/more-useful-error-message | Matthieu Aubry | |
provide a more useful error message on exception | |||
2014-07-06 | Add log call to CliMulti class. | diosmosis | |
2014-07-05 | provide a more useful error message on exception | Christian Raue | |
2014-06-13 | Fixes #5343 Cron core:archive: make sure the PHP cli binary is at least 5.3.2 | mattab | |
2014-06-10 | Piwik is a free/libre analytics platform. Refs #4455 GNU Package requirement ↵ | mattab | |
to use free/libre instead of open source | |||
2014-06-03 | refs #5007 try to find a non cgi and non fpm php binary | Thomas Steur | |
2014-05-21 | Fixes #5204 Add new system check whether the Piwik server supports managing ↵ | mattab | |
processes in CLI | |||
2014-05-19 | Fixes #5181 Renamed method | mattab | |
2014-04-23 | Fixes #5035 CliMulti can now trigger a limited number of concurrent requests. | mattab | |
This is set to three concurrent processes in core:archive command. Refs #4903 | |||
2014-04-01 | next try to fix the web archive test, do not use fpm when called from web | Thomas Steur | |
2014-03-08 | This may fix the bug: PHP Warning: Invalid argument supplied for foreach() ↵ | mattab | |
in /[piwikdir]/core/CliMulti.php on line 176 reported on forums | |||
2014-03-07 | Fixes #4824 Use HTTP API instead of async CLI when shell_exec is disabled | mattab | |
2014-02-18 | Finishing clearing the console command to allow piwik domain | mattab | |
2014-02-18 | Add new piwik-domain generic option to the console. | mattab | |
2014-02-17 | check whether the command ps is executable which is not the case if there is ↵ | Thomas Steur | |
no access to proc/version, see http://forum.piwik.org/read.php?2,111608 | |||
2014-02-13 | Fixes #4673 In case the PHP binary used is php-cgi instead of PHP cli, add ↵ | mattab | |
-q flag to hide http headers from output. | |||
2014-02-12 | refs #4610 make sure to rewrite tmp path if needed | Thomas Steur | |
2014-02-12 | refs #4610 fix tests | Thomas Steur | |
2014-02-12 | refs #4610 another way to get the php binary | Thomas Steur | |
2014-02-12 | refs #4610 some code tweaks and optimizations | Thomas Steur | |
2014-02-12 | refs #4610 simplified, delete old files that were not cleaned up | Thomas Steur | |
2014-02-12 | refs #4610 simplified some logic, fallback to http on windows, redirect the ↵ | Thomas Steur | |
output of php to get output even if piwik exits | |||
2014-02-11 | refs #4610 if a process does not start after 8 seconds, finish it as the ↵ | Thomas Steur | |
process probably will not start anyway | |||
2014-02-11 | refs #4610 prevent some notices like "failed to read from stream" which ↵ | Thomas Steur | |
happens if a subprocess tries to write to a file and the archiver just tries to file_get_content at the same time. So file_exists returned true just a few ms before but while trying to read it fails | |||
2014-02-11 | refs #4610 store everything in climulti folder for easier cleanup later, ↵ | Thomas Steur | |
some other optimizations | |||
2014-02-11 | refs #4610 make sure the command awk exist | Thomas Steur | |
2014-02-11 | refs #4610 use a command to execute a request, this way we do not have to ↵ | Thomas Steur | |
bootstrap everything again and we already make sure it is only executed from the command line | |||
2014-02-11 | refs #4610 make sure the fallback mode works in case async is not supported | Thomas Steur | |
2014-02-11 | refs #4610 Pid => Process | Thomas Steur | |
2014-02-11 | refs #4610 tests for cliMulti and loads of bugfixes | Thomas Steur | |
2014-02-11 | refs #4610 I moved the Lock class to CliMulti as it does not 100% work on ↵ | Thomas Steur | |
windows and is only used in CliMulti so far. As the Lock class can be quite useful and maybe needed in other use cases it would be nice to have it somewhere under core or so as it is not directly related to CLI. We might have to move it later again. Need to find a better solution for windows | |||
2014-02-10 | refs #4610 fix headers | Thomas Steur | |
2014-02-10 | refs #4610 simplified the fallback if async is not supported, tests and ↵ | Thomas Steur | |
fixes for output class | |||
2014-02-10 | refs #4610 worked on executing cli commands in parallel but not tested yet | Thomas Steur | |