Skip to content

feat(server): library refresh go brrr #28933

feat(server): library refresh go brrr

feat(server): library refresh go brrr #28933

Triggered via pull request January 12, 2025 23:45
Status Failure
Total duration 5m 0s
Artifacts

test.yml

on: pull_request
pre-job
6s
pre-job
ShellCheck
7s
ShellCheck
OpenAPI Clients
45s
OpenAPI Clients
TypeORM Checks
1m 9s
TypeORM Checks
Test & Lint Server
1m 47s
Test & Lint Server
Unit Test CLI
26s
Unit Test CLI
Unit Test CLI (Windows)
1m 1s
Unit Test CLI (Windows)
Test & Lint Web
4m 38s
Test & Lint Web
End-to-End Lint
27s
End-to-End Lint
Medium Tests (Server)
1m 29s
Medium Tests (Server)
End-to-End Tests (Server & CLI)
2m 39s
End-to-End Tests (Server & CLI)
End-to-End Tests (Web)
2m 20s
End-to-End Tests (Web)
Unit Test Mobile
1m 34s
Unit Test Mobile
Unit Test ML
0s
Unit Test ML
Fit to window
Zoom out
Zoom in

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