feat: add configurable parallel video uploads
Allow up to four video upload connections while keeping one connection as the default. Preserve existing messaging interfaces and add configuration controls, reliable failure handling, and upload diagnostics. Closes #569
This commit is contained in:
18 files changed
+1182
-217
No files matched your search
@@ -679,6 +679,23 @@ describe('prepareRestorePlan — strict semantic preflight', () => {
|
||||
expect(canonical.webuiTls.enabled).toBe(false);
|
||||
});
|
||||
|
||||
it('preserves video concurrency in backups and rejects invalid restored values', () => {
|
||||
const prepare = (videoUploadConcurrency: number) =>
|
||||
prepareRestorePlan(
|
||||
backupWith({
|
||||
'snowluma.json': {
|
||||
encoding: 'utf8',
|
||||
data: JSON.stringify({ videoUploadConcurrency }),
|
||||
},
|
||||
}),
|
||||
{ restoreCredentials: false, readCurrent: () => null },
|
||||
);
|
||||
expect(JSON.parse(prepare(4).restore[0].data.toString('utf8')).videoUploadConcurrency).toBe(
|
||||
4,
|
||||
);
|
||||
expect(() => prepare(5)).toThrow(/videoUploadConcurrency/);
|
||||
});
|
||||
|
||||
it('accepts owner-supported whitespace trimming without accepting changed values', () => {
|
||||
const prepared = prepareRestorePlan(
|
||||
backupWith({
|
||||
|
||||
Reference in new issue
Block a user