Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dummy-job mode to improve testing #156

Open
in03 opened this issue Jun 5, 2022 · 0 comments
Open

Add dummy-job mode to improve testing #156

in03 opened this issue Jun 5, 2022 · 0 comments
Labels
feature New feature or request

Comments

@in03
Copy link
Owner

in03 commented Jun 5, 2022

It's not currently possible to queue jobs through Resolve Proxy Encoder without Resolve installed, since we get the job metadata through Resolve's API. While this may seem fair considering targeted use cases, it means development is more difficult. Resolve is not a cheap piece of software and its hardware requirements make development machines expensive too. Beyond development platform requirements, it puts a spanner in the works for CI/CD.

To get around this and still accurately test all down-stream code, we can add a dummy-data mode that mimcs Resolve's API response. We can even ship real test files that the dummy-data references to test the Celery/encoding pipeline. This could be a CLI flag, e.g. --use-dummy-jobs or maybe an environment variable, e.g. RproxUseDummyJobs

If we wanted to bring easier/automated Resolve API testing into the fold too, we could potentially host a local GitHub actions runner on a production machine, or there may be a workflow that allows a GitHub action to run within a pre-provisioned virtual machine. I'm not sure if Resolve would allow itself to be installed and interfaced with in a headless environment though. If not, the local GitHub runner would be the best bet.

@in03 in03 added the feature New feature or request label Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant