16 Commits

Author SHA1 Message Date
8a972972ba Fix "invalid UTF-8" test failure on Windows
On Windows an extra line "exec: Process pid=... exited with status code 0"
is reported after terminating the subprocess. This isn't relevant for
the `text_exec_invalid_utf` test, so the extra line is just ignored.

No functional changes.
2021-09-24 14:49:04 +02:00
05408dc8c1 Cleanup: reformat with Black
Reformat the entire project with Black.

No functional changes.
2021-07-09 14:26:13 +02:00
e95d58c641 Moved self.log() from AbstractSubprocessCommand to AbstractCommand 2019-04-24 18:11:38 +02:00
c471a8f86b More logging to the task log, especially when killing a subprocess 2019-03-12 12:50:07 +01:00
483b99d340 Placed timing info collector in a separate class
Previously the code was spread out through the `TaskRunner` and
`AbstractCommand` classes. Now it's in a class of its own and properly
tested.

Also, the timing info is now sent as one line in the task log, making it
less spammy.
2019-02-22 10:45:04 +01:00
d25a892557 Log command & task timing information
For now every command logs its total runtime. The `AbstractBlenderCommand`
subclasses log more granular information, like starting blender, loading
the blendfile, and rendering.

This info is just sent to the task log, and not stored in the task itself
yet.
2019-02-21 16:16:06 +01:00
e0ef84e6b0 Use less shell-uoting-sensitive test values
The new values work on Windows too.
2019-01-10 16:24:09 +01:00
478344c85c Enable debug logging in flamenco_worker.commands while testing commands 2019-01-10 16:24:09 +01:00
a350ed2e5a Absolute imports for tests to make PyCharm happy 2018-11-15 13:52:05 +01:00
6acbc2cc25 Fix logging failed command 2018-11-15 12:43:22 +01:00
fe901ffd7a Log more process IDs
Also changed 'PID=...' to 'pid=...' in the logs sent to Flamenco Manager,
so that all our logs use lower-case 'pid'.
2018-11-15 10:42:04 +01:00
9e55ccd6af Moved from requirements.txt to Pipfile
This also means that we need a `tests/__init__.py` file; this file makes
py.test undertand what is our sources directory, and thus allows them to
`import flamenco_worker`. As a result, the test imports from tests/*.py
need to change to relative imports.
2018-11-13 10:00:58 +01:00
0b456b95be Include the process PID in the log lines
This will help debugging the crazy double-Blender-running we're seeing
in the studio.
2018-11-12 15:09:04 +01:00
c1bc3fc167 Write PID file for subprocesses
This prevents multiple subprocess commands running at once. They shouldn't
be doing that in the first place, but we have a strange bug where multiple
Blenders seem to be running on the same machine.
2018-11-12 15:09:04 +01:00
f4ef19ae9b Moved command implementations from runner.py to commands.py 2017-03-16 12:46:39 +01:00
4d9819c92f Removed Flamenco Server and Manager, and moved Worker to top level
This is a clone of the Flamenco repository from back in the days when
Server, Manager and Worker shared the same Git repository. This is the
commit where that ended, and they went their separate ways.
2017-03-03 16:13:09 +01:00