refactor: migrate user repository to kysely #28936
test.yml
on: pull_request
pre-job
6s
ShellCheck
4s
OpenAPI Clients
1m 25s
TypeORM Checks
1m 28s
Test & Lint Server
1m 52s
Unit Test CLI
0s
Unit Test CLI (Windows)
0s
Test & Lint Web
4m 43s
End-to-End Lint
0s
Medium Tests (Server)
2m 6s
End-to-End Tests (Server & CLI)
3m 53s
End-to-End Tests (Web)
3m 39s
Unit Test Mobile
0s
Unit Test ML
0s
Annotations
22 errors and 6 warnings
TypeORM Checks
Process completed with exit code 1.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
Test & Lint Server
Argument of type 'null' is not assignable to parameter of type 'UserEntity | undefined'.
|
src/api/specs/library.e2e-spec.ts > /libraries > POST /libraries/:id/scan > should not set an asset offline if its file exists, is in an import path, and not covered by an exclusion pattern:
e2e/src/api/specs/library.e2e-spec.ts#L715
AssertionError: expected { total: 2, count: 2, …(3) } to deeply equal { total: 2, count: 2, …(3) }
- Expected
+ Received
Object {
"count": 2,
"facets": Array [],
"items": Array [
Object {
"checksum": "M2FwQNSs1Ni7hYZDAvy1Fl9YXKs=",
"deviceAssetId": "assetB.png",
"deviceId": "Library Import",
"duplicateId": null,
"duration": "0:00:00.00000",
"fileCreatedAt": "2025-01-13T03:12:33.434Z",
"fileModifiedAt": "2025-01-13T03:12:33.434Z",
"hasMetadata": true,
"id": "ba8534c5-c19b-4b43-a6ab-1ddf9baff01b",
"isArchived": false,
"isFavorite": false,
"isOffline": false,
"isTrashed": false,
"libraryId": "e66ed8c8-5330-4bfa-98c4-64a39a20d493",
"livePhotoVideoId": null,
"localDateTime": "2025-01-13T03:12:33.434Z",
"originalFileName": "assetB.png",
"originalMimeType": "image/png",
"originalPath": "/test-assets/temp/directoryB/assetB.png",
"ownerId": "65f696f8-ed91-4002-b292-9d9ac80264cb",
"people": Array [],
"resized": true,
- "thumbhash": null,
+ "thumbhash": "wAcCBwAI9wiIh4hwj3CI+AiIcH/4AAAA",
"type": "IMAGE",
"updatedAt": "2025-01-13T03:12:44.650Z",
},
Object {
"checksum": "hNpZqb2K/xOq4imfDL1cjDcsFUc=",
"deviceAssetId": "assetA.png",
"deviceId": "Library Import",
"duplicateId": null,
"duration": "0:00:00.00000",
"fileCreatedAt": "2025-01-13T03:12:33.434Z",
"fileModifiedAt": "2025-01-13T03:12:33.434Z",
"hasMetadata": true,
"id": "9e7d4606-942a-49e1-8db7-9913817b8463",
"isArchived": false,
"isFavorite": false,
"isOffline": false,
"isTrashed": false,
"libraryId": "e66ed8c8-5330-4bfa-98c4-64a39a20d493",
"livePhotoVideoId": null,
"localDateTime": "2025-01-13T03:12:33.434Z",
"originalFileName": "assetA.png",
"originalMimeType": "image/png",
"originalPath": "/test-assets/temp/directoryA/assetA.png",
"ownerId": "65f696f8-ed91-4002-b292-9d9ac80264cb",
"people": Array [],
"resized": true,
- "thumbhash": null,
+ "thumbhash": "AAgCBwAAAAAAAAAAAAAAAAAAAAAAAAAA",
"type": "IMAGE",
"updatedAt": "2025-01-13T03:12:44.649Z",
},
],
"nextPage": null,
"total": 2,
}
❯ src/api/specs/library.e2e-spec.ts:715:22
|
src/api/specs/user-admin.e2e-spec.ts > /admin/users > PUT /admin/users/:id/preferences > should update memories enabled:
e2e/src/api/specs/user-admin.e2e-spec.ts#L240
AssertionError: expected { …(9) } to match object { memories: { enabled: false } }
(23 matching properties omitted from actual)
- Expected
+ Received
Object {
"memories": Object {
- "enabled": false,
+ "enabled": true,
},
}
❯ src/api/specs/user-admin.e2e-spec.ts:240:21
|
src/api/specs/user-admin.e2e-spec.ts > /admin/users > PUT /admin/users/:id/preferences > should update download archive size:
e2e/src/api/specs/user-admin.e2e-spec.ts#L266
AssertionError: expected { …(9) } to match object { download: { archiveSize: 1234567 } }
(23 matching properties omitted from actual)
- Expected
+ Received
Object {
"download": Object {
- "archiveSize": 1234567,
+ "archiveSize": 4294967296,
},
}
❯ src/api/specs/user-admin.e2e-spec.ts:266:21
|
src/api/specs/user.e2e-spec.ts > /users > GET /users/me > should get my user with license info:
e2e/src/api/specs/user.e2e-spec.ts#L92
AssertionError: expected { …(17) } to match object { …(4) }
(13 matching properties omitted from actual)
- Expected
+ Received
Object {
"email": "[email protected]",
"id": "1d83791d-b219-46ea-9d5d-cb9d38ace1f6",
- "license": Object {
- "activationKey": "KuX8KsktrBSiXpQMAH0zLgA5SpijXVr_PDkzLdWUlAogCTMBZ0I3KCHXK0eE9EEd7harxup8_EHMeqAWeHo5VQzol6LGECpFv585U9asXD4Zc-UXt3mhJr2uhazqipBIBwJA2YhmUCDy8hiyiGsukDQNu9Rg9C77UeoKuZBWVjWUBWG0mc1iRqfvF0faVM20w53czAzlhaMxzVGc3Oimbd7xi_CAMSujF_2y8QpA3X2fOVkQkzdcH9lV0COejl7IyH27zQQ9HrlrXv3Lai5Hw67kNkaSjmunVBxC5PS0TpKoc9SfBJMaAGWnaDbjhjYUrm-8nIDQnoeEAidDXVAdPw",
- "licenseKey": "IMCL-FF69-TUK1-RWZU-V9Q8-QGQS-S5GC-X4R2-UFK4",
- },
+ "license": "{\"licenseKey\":\"IMCL-FF69-TUK1-RWZU-V9Q8-QGQS-S5GC-X4R2-UFK4\",\"activationKey\":\"KuX8KsktrBSiXpQMAH0zLgA5SpijXVr_PDkzLdWUlAogCTMBZ0I3KCHXK0eE9EEd7harxup8_EHMeqAWeHo5VQzol6LGECpFv585U9asXD4Zc-UXt3mhJr2uhazqipBIBwJA2YhmUCDy8hiyiGsukDQNu9Rg9C77UeoKuZBWVjWUBWG0mc1iRqfvF0faVM20w53czAzlhaMxzVGc3Oimbd7xi_CAMSujF_2y8QpA3X2fOVkQkzdcH9lV0COejl7IyH27zQQ9HrlrXv3Lai5Hw67kNkaSjmunVBxC5PS0TpKoc9SfBJMaAGWnaDbjhjYUrm-8nIDQnoeEAidDXVAdPw\",\"activatedAt\":\"2025-01-13T03:13:21.961Z\"}",
"quotaUsageInBytes": 0,
}
❯ src/api/specs/user.e2e-spec.ts:92:20
|
src/api/specs/user.e2e-spec.ts > /users > PUT /users/me/preferences > should update memories enabled:
e2e/src/api/specs/user.e2e-spec.ts#L198
AssertionError: expected { …(9) } to match object { memories: { enabled: false } }
(23 matching properties omitted from actual)
- Expected
+ Received
Object {
"memories": Object {
- "enabled": false,
+ "enabled": true,
},
}
❯ src/api/specs/user.e2e-spec.ts:198:21
|
src/api/specs/user.e2e-spec.ts > /users > PUT /users/me/preferences > should update avatar color:
e2e/src/api/specs/user.e2e-spec.ts#L211
AssertionError: expected { …(9) } to match object { avatar: { color: 'blue' } }
(23 matching properties omitted from actual)
- Expected
+ Received
Object {
"avatar": Object {
- "color": "blue",
+ "color": "orange",
},
}
❯ src/api/specs/user.e2e-spec.ts:211:21
|
src/api/specs/user.e2e-spec.ts > /users > PUT /users/me/preferences > should update download archive size:
e2e/src/api/specs/user.e2e-spec.ts#L237
AssertionError: expected { …(9) } to match object { download: { archiveSize: 1234567 } }
(23 matching properties omitted from actual)
- Expected
+ Received
Object {
"download": Object {
- "archiveSize": 1234567,
+ "archiveSize": 4294967296,
},
}
❯ src/api/specs/user.e2e-spec.ts:237:21
|
src/api/specs/user.e2e-spec.ts > /users > PUT /users/me/preferences > should update download include embedded videos:
e2e/src/api/specs/user.e2e-spec.ts#L263
AssertionError: expected { …(9) } to match object { download: { …(1) } }
(23 matching properties omitted from actual)
- Expected
+ Received
Object {
"download": Object {
- "includeEmbeddedVideos": true,
+ "includeEmbeddedVideos": false,
},
}
❯ src/api/specs/user.e2e-spec.ts:263:21
|
src/api/specs/user.e2e-spec.ts > /users > GET /server/license > should return the user license:
e2e/src/api/specs/user.e2e-spec.ts#L306
AssertionError: expected {} to deeply equal { …(3) }
- Expected
+ Received
- Object {
- "activatedAt": Any<String>,
- "activationKey": "KuX8KsktrBSiXpQMAH0zLgA5SpijXVr_PDkzLdWUlAogCTMBZ0I3KCHXK0eE9EEd7harxup8_EHMeqAWeHo5VQzol6LGECpFv585U9asXD4Zc-UXt3mhJr2uhazqipBIBwJA2YhmUCDy8hiyiGsukDQNu9Rg9C77UeoKuZBWVjWUBWG0mc1iRqfvF0faVM20w53czAzlhaMxzVGc3Oimbd7xi_CAMSujF_2y8QpA3X2fOVkQkzdcH9lV0COejl7IyH27zQQ9HrlrXv3Lai5Hw67kNkaSjmunVBxC5PS0TpKoc9SfBJMaAGWnaDbjhjYUrm-8nIDQnoeEAidDXVAdPw",
- "licenseKey": "IMCL-FF69-TUK1-RWZU-V9Q8-QGQS-S5GC-X4R2-UFK4",
- }
+ Object {}
❯ src/api/specs/user.e2e-spec.ts:306:20
|
src/api/specs/user.e2e-spec.ts > /users > PUT /users/me/license > should set the user license:
e2e/src/api/specs/user.e2e-spec.ts#L331
AssertionError: expected {} to deeply equal { …(3) }
- Expected
+ Received
- Object {
- "activatedAt": Any<String>,
- "activationKey": "KuX8KsktrBSiXpQMAH0zLgA5SpijXVr_PDkzLdWUlAogCTMBZ0I3KCHXK0eE9EEd7harxup8_EHMeqAWeHo5VQzol6LGECpFv585U9asXD4Zc-UXt3mhJr2uhazqipBIBwJA2YhmUCDy8hiyiGsukDQNu9Rg9C77UeoKuZBWVjWUBWG0mc1iRqfvF0faVM20w53czAzlhaMxzVGc3Oimbd7xi_CAMSujF_2y8QpA3X2fOVkQkzdcH9lV0COejl7IyH27zQQ9HrlrXv3Lai5Hw67kNkaSjmunVBxC5PS0TpKoc9SfBJMaAGWnaDbjhjYUrm-8nIDQnoeEAidDXVAdPw",
- "licenseKey": "IMCL-FF69-TUK1-RWZU-V9Q8-QGQS-S5GC-X4R2-UFK4",
- }
+ Object {}
❯ src/api/specs/user.e2e-spec.ts:331:27
|
End-to-End Tests (Web)
Process completed with exit code 1.
|
ShellCheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
pre-job
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
|
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
|