feat(server): library refresh go brrr #28933
test.yml
on: pull_request
pre-job
6s
Test & Lint Server
1m 47s
Unit Test CLI
26s
Unit Test CLI (Windows)
1m 1s
Test & Lint Web
4m 38s
End-to-End Lint
27s
Medium Tests (Server)
1m 29s
End-to-End Tests (Server & CLI)
2m 39s
End-to-End Tests (Web)
2m 20s
Unit Test Mobile
1m 34s
Unit Test ML
0s
Annotations
38 errors and 9 warnings
OpenAPI Clients
Process completed with exit code 1.
|
TypeORM Checks
Process completed with exit code 1.
|
Test & Lint Server
Property 'repository' does not exist on type 'AssetRepository'.
|
Test & Lint Server
Cannot find name 'Brackets'.
|
Test & Lint Server
Parameter 'qb' implicitly has an 'any' type.
|
Test & Lint Server
Property 'repository' does not exist on type 'AssetRepository'.
|
Test & Lint Server
Parameter 'result' implicitly has an 'any' type.
|
Test & Lint Server
Property 'repository' does not exist on type 'AssetRepository'.
|
Test & Lint Server
Type 'Date | null' is not assignable to type 'Date'.
|
Test & Lint Server
Type 'Date | null' is not assignable to type 'Date'.
|
Test & Lint Server
Type 'Date | null' is not assignable to type 'string | Date'.
|
Test & Lint Server
Type 'Date | null' is not assignable to type 'string | Date'.
|
Test & Lint Server:
server/src/interfaces/asset.interface.ts#L2
'AssetFiles' is defined but never used
|
Test & Lint Server:
server/src/repositories/asset.repository.ts#L766
Async method 'getNewPaths' has no 'await' expression
|
Test & Lint Server:
server/src/repositories/asset.repository.ts#L786
Async method 'getAssetCount' has no 'await' expression
|
Test & Lint Server:
server/src/services/library.service.ts#L236
This `if` statement can be replaced by a ternary expression
|
Test & Lint Server:
server/src/services/library.service.ts#L487
Expected an assignment or function call and instead saw an expression
|
Test & Lint Server:
server/src/services/library.service.ts#L498
Expected an assignment or function call and instead saw an expression
|
Test & Lint Server:
server/src/services/library.service.ts#L508
Expected an assignment or function call and instead saw an expression
|
Test & Lint Server:
server/src/services/library.service.ts#L529
Async method 'checkOfflineAsset' has no 'await' expression
|
Test & Lint Server:
server/src/services/library.service.ts#L630
'assetsOnDiskCount' is never reassigned. Use 'const' instead
|
Test & Lint Server:
server/src/services/metadata.service.ts#L7
'file' is defined but never used
|
src/services/library.service.spec.ts > LibraryService > handleQueueSyncFiles > should queue refresh of a new asset:
server/src/services/library.service.spec.ts#L180
AssertionError: expected "spy" to be called with arguments: [ [ { …(2) } ] ]
Received:
Number of calls: 0
❯ src/services/library.service.spec.ts:180:32
|
src/services/library.service.spec.ts > LibraryService > handleQueueRemoveDeleted > should queue online check of existing assets:
server/src/services/library.service.ts#L695
TypeError: this.assetRepository.getAssetCount is not a function
❯ LibraryService.handleQueueSyncAssets src/services/library.service.ts:695:51
❯ src/services/library.service.spec.ts:230:7
|
src/services/library.service.spec.ts > LibraryService > handleSyncAsset > should skip missing assets:
server/src/services/library.service.spec.ts#L259
AssertionError: promise rejected "TypeError: Cannot read properties of unde…" instead of resolving
❯ src/services/library.service.spec.ts:259:41
Caused by: Caused by: TypeError: Cannot read properties of undefined (reading 'id')
❯ LibraryService.handleSyncAssets src/services/library.service.ts:445:102
|
src/services/library.service.spec.ts > LibraryService > handleSyncAsset > should offline assets no longer on disk:
server/src/services/library.service.spec.ts#L274
AssertionError: promise rejected "TypeError: Cannot read properties of unde…" instead of resolving
❯ src/services/library.service.spec.ts:274:41
Caused by: Caused by: TypeError: Cannot read properties of undefined (reading 'id')
❯ LibraryService.handleSyncAssets src/services/library.service.ts:445:102
|
src/services/library.service.spec.ts > LibraryService > handleSyncAsset > should offline assets matching an exclusion pattern:
server/src/services/library.service.spec.ts#L291
AssertionError: promise rejected "TypeError: Cannot read properties of unde…" instead of resolving
❯ src/services/library.service.spec.ts:291:41
Caused by: Caused by: TypeError: Cannot read properties of undefined (reading 'id')
❯ LibraryService.handleSyncAssets src/services/library.service.ts:445:102
|
src/services/library.service.spec.ts > LibraryService > handleSyncAsset > should set assets outside of import paths as offline:
server/src/services/library.service.spec.ts#L308
AssertionError: promise rejected "TypeError: Cannot read properties of unde…" instead of resolving
❯ src/services/library.service.spec.ts:308:41
Caused by: Caused by: TypeError: Cannot read properties of undefined (reading 'id')
❯ LibraryService.handleSyncAssets src/services/library.service.ts:445:102
|
src/services/library.service.spec.ts > LibraryService > handleSyncAsset > should do nothing with online assets:
server/src/services/library.service.spec.ts#L326
AssertionError: promise rejected "TypeError: Cannot read properties of unde…" instead of resolving
❯ src/services/library.service.spec.ts:326:41
Caused by: Caused by: TypeError: Cannot read properties of undefined (reading 'id')
❯ LibraryService.handleSyncAssets src/services/library.service.ts:445:102
|
src/services/library.service.spec.ts > LibraryService > handleSyncAsset > should un-trash an asset previously marked as offline:
server/src/services/library.service.spec.ts#L341
AssertionError: promise rejected "TypeError: Cannot read properties of unde…" instead of resolving
❯ src/services/library.service.spec.ts:341:41
Caused by: Caused by: TypeError: Cannot read properties of undefined (reading 'id')
❯ LibraryService.handleSyncAssets src/services/library.service.ts:445:102
|
src/services/library.service.spec.ts > LibraryService > should update file when mtime has changed:
server/src/services/library.service.spec.ts#L364
AssertionError: promise rejected "TypeError: Cannot read properties of unde…" instead of resolving
❯ src/services/library.service.spec.ts:364:39
Caused by: Caused by: TypeError: Cannot read properties of undefined (reading 'id')
❯ LibraryService.handleSyncAssets src/services/library.service.ts:445:102
|
src/services/library.service.spec.ts > LibraryService > handleSyncFile > should import a new asset:
server/src/services/library.service.spec.ts#L398
TypeError: sut.handleSyncFile is not a function
❯ src/services/library.service.spec.ts:398:24
|
Medium Tests (Server)
Process completed with exit code 17.
|
Medium Tests (Server)
Process completed with exit code 2.
|
End-to-End Tests (Server & CLI)
Process completed with exit code 17.
|
End-to-End Tests (Server & CLI)
Process completed with exit code 1.
|
End-to-End Tests (Web)
Process completed with exit code 1.
|
End-to-End Tests (Web)
Process completed with exit code 17.
|
pre-job
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ShellCheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit Test CLI
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
End-to-End Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
OpenAPI Clients
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
TypeORM Checks
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit Test Mobile
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test & Lint Server
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test & Lint Web
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|