1387 Commits

Author SHA1 Message Date
Sybren A. Stüvel
f16c62abc0 Make: fix publishing of packages
Fix some path inconsistencies between Windows package and the others.
2022-08-31 12:34:09 +02:00
Sybren A. Stüvel
5ff13265a0 Website: bump latest available Flamenco version to 3.0-beta2 2022-08-31 12:26:10 +02:00
Sybren A. Stüvel
fae82d32fc Website: add upgrade information
Add steps on how to upgrade to the download page. This is aimed at
upgrading beta1 to beta2, and thus suggests nuking the install and
starting afresh.
2022-08-31 12:26:01 +02:00
Sybren A. Stüvel
db3e3f0d12 Update CHANGELOG.md
Add a few links to commits, and mark 3.0-beta2 as released today.
2022-08-31 12:15:56 +02:00
Sybren A. Stüvel
de8da6eac5 Bumped version to 3.0-beta2 2022-08-31 12:10:02 +02:00
Sybren A. Stüvel
3ecdeacc80 Add-on: fix wrong parameter being passed 2022-08-31 12:08:46 +02:00
Sybren A. Stüvel
31cf0a4ecc Implement getSharedStorage operation & use it in the add-on
Implement the `getSharedStorage` operation in the Manager, and use it in
the add-on to get the shared storage location in a way that makes sense
for the platform of the user.

Manifest task: T100196
2022-08-31 11:44:37 +02:00
Sybren A. Stüvel
31769bcdf2 Manager: always set config.currentGOOS
This variable is used in tests to mock the current OS, but wasn't set
during normal operation of the Manager. This caused issues with the
two-way variable system.
2022-08-31 11:43:28 +02:00
Sybren A. Stüvel
0a1e1efc41 OAPI: regenerate code 2022-08-31 11:42:46 +02:00
Sybren A. Stüvel
48a1c06277 OAPI: add operation to get the shared storage, for current platform
Add an operation `getSharedStorage` that can return the shared storage
location, adjusted for the given audience & platform. This uses the
two-way variables system to adjust the Manager's configuration.
2022-08-31 11:38:14 +02:00
Sybren A. Stüvel
bb377e7572 Add-on: fix typo causing an AttributeError 2022-08-31 11:37:16 +02:00
Sybren A. Stüvel
413e5c71e2 Add-on: fix mypy warning
No functional changes.
2022-08-31 11:35:31 +02:00
Sybren A. Stüvel
59f41d0546 Add-on: show warning when versions are not matching
Before submitting a job, the add-on now checks the version of the Manager.
If this is not the same version of the add-on, a warning is shown and a
"Force Submit" button appears. This makes it both explicit that something
is iffy and still allows for pushing forward.

This is important when upgrading Flamenco, because I'm sure many people
will forget to actually redownload and reinstall the add-on.
2022-08-31 09:27:50 +02:00
Sybren A. Stüvel
2eae682b9a Manager: actually return the short version in the GetVersion operation 2022-08-31 08:58:59 +02:00
Sybren A. Stüvel
ffaaf78c8c OAPI: regenerate code 2022-08-31 08:58:47 +02:00
Sybren A. Stüvel
f7366c87ce OAPI: include "short version" in the FlamencoVersion schema
Include a `shortversion` property in the `FlamencoVersion` schema, which
will just be the version number with the release phase (and not the git
hash, the number of commits since the last tag, and the `-dirty` suffix).
2022-08-31 08:58:05 +02:00
Sybren A. Stüvel
0b176eda96 Add-on: include error cause in "Error performing BAT pack" message
The error can get cryptic, but without opening the terminal people
otherwise would have no idea what's going on.
2022-08-31 08:09:11 +02:00
Sybren A. Stüvel
a7510f4042 Cleanup: addon, split ping_manager() into two functions
Split the `comms.ping_manager()` function into two: one that returns the
version & config of the Manager, and the other that reports on it.

This will make it possible to do the former without the latter in certain
other situations where we want to refresh the manager info in the
background.
2022-08-31 08:08:06 +02:00
Sybren A. Stüvel
4761e3d76e Website: replace note-hint with 'expand' block
It's slightly less distracting now.
2022-08-30 18:03:17 +02:00
Sybren A. Stüvel
d88587f989 Website: split up variables section & adjust for argument split
Split up the "Variables" section, and adjust the wording for the splitting
of `{blender}` into `{blender}` and `{blenderArgs}` (rFe5a20425c474).
2022-08-30 18:01:10 +02:00
Sybren A. Stüvel
5634ed3a6b Website: some more info about the Windows installation of NodeJS 2022-08-30 17:15:49 +02:00
Sybren A. Stüvel
ab14c97b2e Manager: fix tests on Windows
Fix some tests that were failing because some parts of Flamenco now use
native path separators instead of always-forward ones.
2022-08-30 15:44:14 +02:00
Sybren A. Stüvel
cbd8754595 Website: add link to 7Zip, necessary to get MingW-W64 installed 2022-08-30 15:43:39 +02:00
Sybren A. Stüvel
c499105424 Website: small wording change 2022-08-30 15:27:21 +02:00
Sybren A. Stüvel
fde1403c22 Website: fix header number 2022-08-30 15:25:30 +02:00
Sybren A. Stüvel
2dccfd195a Website: document how to get make
This is now only written for Debian/Ubuntu and Windows, and not for other
Linux flavours or macOS. Also the Windows documentation is very minimal,
but at least contains the info I always tend to forget.
2022-08-30 15:23:59 +02:00
Sybren A. Stüvel
e5a20425c4 Separate variables for Blender executable and its arguments.
Split "executable" from "its arguments" in blender & ffmpeg commands.

Use `{blenderArgs}` variable to hold the default Blender arguments,
instead of having both the executable and its arguments in `{blender}`.

The reason for this is to support backslashes in the Blender executable
path. These were interpreted as escape characters by the shell lexer.
The shell lexer based splitting is now only performed on the default
arguments, with the result that `C:\Program Files\Blender
Foundation\3.3\blender.exe` is now a valid value for `{blender}`.

This does mean that this is backward incompatible change, and that it
requires setting up Flamenco Manager again, and that older jobs will not
be able to be rerun.

It is recommended to remove `flamenco-manager.yaml`, restart Flamenco
Manager, and reconfigure via the setup assistant.
2022-08-30 14:58:16 +02:00
Sybren A. Stüvel
db9aca4a37 Add-on: allow setting job priority when submitting
The job priority was always intended to be settable when submitting, and
editable afterwards. This commit implements the former.
2022-08-30 14:51:48 +02:00
Sybren A. Stüvel
87684a0d92 Worker: change "running command" to "running Flamenco command" in log
There are Flamenco "commands" and CLI "commands", and it's nice to be
explicit about which is which. I'm sure this is needed in some other
areas as well.
2022-08-30 10:34:40 +02:00
Sybren A. Stüvel
afdbbcc1d8 Cleanup: explain a bit more in a comment 2022-08-30 10:34:05 +02:00
Sybren A. Stüvel
84cff6919a Worker: also log job UUID when running a task
Having both the job and task UUIDs in the log output helps when debugging.
2022-08-30 10:18:32 +02:00
Sybren A. Stüvel
c504e68d8e Manager: store the jobs implicit variable in platform-native notation
Don't change backslashes to forward slashes on Windows. Trying to use
forward slashes everywhere was a mistake, and this is one of the steps to
make it right.
2022-08-29 17:51:20 +02:00
Sybren A. Stüvel
20395e0e26 Manager: always start the variable lookup table with a fresh map
If the loaded config doesn't define the default variables, the latter
should not be found in the lookup table any more; this is now fixed.
2022-08-29 17:44:47 +02:00
Sybren A. Stüvel
4a201d47b4 Cleanup: add unit test for parsing backslashes in variable values
Backslashes can be included in two ways, as-is (which works fine) and
between double quotes (in which case they need escaping). This test checks
for both.
2022-08-29 17:28:40 +02:00
Sybren A. Stüvel
0c91fe93d0 Manager: only do pathsep localisation on two-way variables
By accident the Manager was performing slash localisation on all
command parameters, causing some math expressions for FFmpeg to fail.
2022-08-25 15:02:56 +02:00
Sybren A. Stüvel
3d2bdddffa Fix VSCode debugger config
Since some code from the `cmd/flamenco-xxx` packages moved out of
`main.go`, the package should be targeted to run, not a single `.go` file.
2022-08-25 15:01:50 +02:00
Sybren A. Stüvel
9d828e5d08 Webapp: make Job and Task ID fields click-to-copy
Click on a job or task ID to copy it to the clipboard.
2022-08-25 13:59:31 +02:00
Sybren A. Stüvel
6b4b205c1c Manager: allow backslashes in variables
Windows machines should be able to simply use backslashes.
2022-08-25 13:59:02 +02:00
Sybren A. Stüvel
f82ebea11d Add-on: handle submission errors more gracefully 2022-08-25 13:28:45 +02:00
Sybren A. Stüvel
22aa041ec1 Allow relative render output root paths
Add a new `abspath(path)` function to the add-on, for use in job type
settings. With this, the "simple blender render" job can support relative
paths for the "render output root" setting, and still have an absolute
final "render output path".
2022-08-25 13:14:48 +02:00
Sybren A. Stüvel
945e3060f4 Website: document location of custom job type scripts 2022-08-25 12:32:29 +02:00
Sybren A. Stüvel
97243d15f1 Website: document path separator replacement in two-way vars docs
Document the path separator replacement introduced in
rF63c60a5b15b362e5a951345962d0a6fcbc81c101
2022-08-25 12:27:41 +02:00
Sybren A. Stüvel
63c60a5b15 Two-way variable replacement: change path separators to target platform
Two-way variable replacement now also changes the path separators. Since
the two-way replacement is made for paths, it makes sense to also clean up
the path for the target platform.
2022-08-25 12:19:30 +02:00
Sybren A. Stüvel
d239350ee4 Website: cleanup, reformat markdown table 2022-08-25 11:11:51 +02:00
Sybren A. Stüvel
0c69b5c41b Website: document variables 2022-08-25 11:11:00 +02:00
Sybren A. Stüvel
e0395e73bf Web: fix worker status filter not updating
Fix the status filter dots not updating when a worker changes status.
2022-08-12 11:29:12 -07:00
Sybren A. Stüvel
1355ec5e1d Worker: Change how the worker shuts down
Instead of sending the current process an interrupt signal, use a dedicated
channel to signal the wish to shut down. The main function responds to that
channel closing by performing the shutdown.

This solves an issue where the Worker would not cleanly shut down on
Windows when `offline` state was requested by the Manager.
2022-08-12 11:15:19 -07:00
Sybren A. Stüvel
6de5c9e7fa Web: add worker removal
Add "remove worker" button to the worker details panel. It will
show a little warning when the worker is still running, and also has an
explanation of what removing a worker actually means.
2022-08-12 10:30:27 -07:00
Sybren A. Stüvel
ea82dbfead Web: show notification when worker was removed 2022-08-11 17:50:50 -07:00
Sybren A. Stüvel
b4194e32e9 Web: respond to worker updates that indicate a worker was removed
The code isn't the prettiest, but it works ;-)
2022-08-11 17:45:12 -07:00