refactor: avoid computing stats and conclusion #2994
Annotations
10 errors and 1 warning
Test:
apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts#L120
AssertionError: expected { Object (error) } to deeply equal { builds: [ { id: '89', …(4) } ] }
- Expected
+ Received
Object {
- "builds": Array [
- Object {
- "id": "89",
- "notification": Object {
- "context": "argos",
- "description": "Everything's good!",
- "github": Object {
- "state": "success",
- },
- "gitlab": Object {
- "state": "success",
- },
- },
- "number": 1,
- "status": "no-changes",
- "url": "http://localhost:3000/awesome-team/awesome-project/builds/1",
- },
- ],
+ "error": "[
+ {
+ \"code\": \"invalid_union\",
+ \"unionErrors\": [
+ {
+ \"issues\": [
+ {
+ \"received\": \"complete\",
+ \"code\": \"invalid_enum_value\",
+ \"options\": [
+ \"accepted\",
+ \"rejected\"
+ ],
+ \"path\": [],
+ \"message\": \"Invalid enum value. Expected 'accepted' | 'rejected', received 'complete'\"
+ }
+ ],
+ \"name\": \"ZodError\"
+ },
+ {
+ \"issues\": [
+ {
+ \"received\": \"complete\",
+ \"code\": \"invalid_enum_value\",
+ \"options\": [
+ \"no-changes\",
+ \"changes-detected\"
+ ],
+ \"path\": [],
+ \"message\": \"Invalid enum value. Expected 'no-changes' | 'changes-detected', received 'complete'\"
+ }
+ ],
+ \"name\": \"ZodError\"
+ },
+ {
+ \"issues\": [
+ {
+ \"received\": \"complete\",
+ \"code\": \"invalid_enum_value\",
+ \"options\": [
+ \"expired\",
+ \"pending\",
+ \"progress\",
+ \"error\",
+ \"aborted\"
+ ],
+ \"path\": [],
+ \"message\": \"Invalid enum value. Expected 'expired' | 'pending' | 'progress' | 'error' | 'aborted', received 'complete'\"
+ }
+ ],
+ \"name\": \"ZodError\"
+ }
+ ],
+ \"path\": [],
+ \"message\": \"Invalid input\"
+ }
+ ]",
}
❯ apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts:120:28
❯ processTicksAndRejections node:internal/process/task_queues:105:5
This error originated in "apps/backend/src/web/middlewares/repoAuth.e2e.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "apps/backend/src/web/middlewares/repoAuth.e2e.test.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Test:
apps/backend/src/build-notification/notification.ts#L127
Error: Invariant failed: Build should be concluded
❯ getBuildStatsMessage apps/backend/src/build-notification/notification.ts:127:3
❯ getNotificationDescription apps/backend/src/build-notification/notification.ts:147:28
❯ Module.getNotificationPayload apps/backend/src/build-notification/notification.ts:187:23
❯ apps/backend/src/build-notification/notification.e2e.test.ts:42:29
|
Test:
apps/backend/src/build-notification/notification.ts#L127
Error: Invariant failed: Build should be concluded
❯ getBuildStatsMessage apps/backend/src/build-notification/notification.ts:127:3
❯ getNotificationDescription apps/backend/src/build-notification/notification.ts:147:28
❯ Module.getNotificationPayload apps/backend/src/build-notification/notification.ts:187:23
❯ apps/backend/src/build-notification/notification.e2e.test.ts:76:29
|
Test:
apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts#L68
AssertionError: expected { Object (error) } to deeply equal { builds: [ { id: '87', …(4) } ] }
- Expected
+ Received
Object {
- "builds": Array [
- Object {
- "id": "87",
- "notification": Object {
- "context": "argos",
- "description": "Everything's good!",
- "github": Object {
- "state": "success",
- },
- "gitlab": Object {
- "state": "success",
- },
- },
- "number": 1,
- "status": "no-changes",
- "url": "http://localhost:3000/awesome-team/awesome-project/builds/1",
- },
- ],
+ "error": "[
+ {
+ \"code\": \"invalid_union\",
+ \"unionErrors\": [
+ {
+ \"issues\": [
+ {
+ \"received\": \"complete\",
+ \"code\": \"invalid_enum_value\",
+ \"options\": [
+ \"accepted\",
+ \"rejected\"
+ ],
+ \"path\": [],
+ \"message\": \"Invalid enum value. Expected 'accepted' | 'rejected', received 'complete'\"
+ }
+ ],
+ \"name\": \"ZodError\"
+ },
+ {
+ \"issues\": [
+ {
+ \"received\": \"complete\",
+ \"code\": \"invalid_enum_value\",
+ \"options\": [
+ \"no-changes\",
+ \"changes-detected\"
+ ],
+ \"path\": [],
+ \"message\": \"Invalid enum value. Expected 'no-changes' | 'changes-detected', received 'complete'\"
+ }
+ ],
+ \"name\": \"ZodError\"
+ },
+ {
+ \"issues\": [
+ {
+ \"received\": \"complete\",
+ \"code\": \"invalid_enum_value\",
+ \"options\": [
+ \"expired\",
+ \"pending\",
+ \"progress\",
+ \"error\",
+ \"aborted\"
+ ],
+ \"path\": [],
+ \"message\": \"Invalid enum value. Expected 'expired' | 'pending' | 'progress' | 'error' | 'aborted', received 'complete'\"
+ }
+ ],
+ \"name\": \"ZodError\"
+ }
+ ],
+ \"path\": [],
+ \"message\": \"Invalid input\"
+ }
+ ]",
}
❯ apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts:68:10
❯ apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts:69:28
❯ node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:308:13
❯ Test._assertFunction node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:285:13
❯ Test.assert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:164:23
❯ Server.localAssert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:120:14
|
Test:
apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts#L137
Error: expected 200 "OK", got 500 "Internal Server Error"
❯ apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts:137:10
❯ Test._assertStatus node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:252:14
❯ node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:308:13
❯ Test._assertFunction node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:285:13
❯ Test.assert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:164:23
❯ Server.localAssert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:120:14
|
Test:
apps/backend/src/api/handlers/getAuthProjectBuilds.e2e.test.ts#L48
Error: expected 200 "OK", got 500 "Internal Server Error"
❯ apps/backend/src/api/handlers/getAuthProjectBuilds.e2e.test.ts:48:8
❯ Test._assertStatus node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:252:14
❯ node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:308:13
❯ Test._assertFunction node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:285:13
❯ Test.assert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:164:23
❯ Server.localAssert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:120:14
|
Test:
apps/backend/src/api/handlers/getAuthProjectBuilds.e2e.test.ts#L65
Error: expected 200 "OK", got 500 "Internal Server Error"
❯ apps/backend/src/api/handlers/getAuthProjectBuilds.e2e.test.ts:65:10
❯ Test._assertStatus node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:252:14
❯ node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:308:13
❯ Test._assertFunction node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:285:13
❯ Test.assert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:164:23
❯ Server.localAssert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:120:14
|
Test:
apps/backend/src/api/handlers/getAuthProjectBuilds.e2e.test.ts#L92
Error: expected 200 "OK", got 500 "Internal Server Error"
❯ apps/backend/src/api/handlers/getAuthProjectBuilds.e2e.test.ts:92:10
❯ Test._assertStatus node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:252:14
❯ node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:308:13
❯ Test._assertFunction node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:285:13
❯ Test.assert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:164:23
❯ Server.localAssert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:120:14
|
Test:
apps/backend/src/api/handlers/getAuthProjectBuilds.e2e.test.ts#L121
Error: expected 200 "OK", got 500 "Internal Server Error"
❯ apps/backend/src/api/handlers/getAuthProjectBuilds.e2e.test.ts:121:10
❯ Test._assertStatus node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:252:14
❯ node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:308:13
❯ Test._assertFunction node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:285:13
❯ Test.assert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:164:23
❯ Server.localAssert node_modules/.pnpm/[email protected]/node_modules/supertest/lib/test.js:120:14
|
Test:
apps/backend/src/graphql/testing.ts#L6
AssertionError: expected [ { …(4) } ] to deeply equal []
- Expected
+ Received
- Array []
+ Array [
+ Object {
+ "extensions": Object {
+ "code": "INTERNAL_SERVER_ERROR",
+ },
+ "locations": Array [
+ Object {
+ "column": 19,
+ "line": 15,
+ },
+ ],
+ "message": "[
+ {
+ \"code\": \"invalid_union\",
+ \"unionErrors\": [
+ {
+ \"issues\": [
+ {
+ \"received\": \"complete\",
+ \"code\": \"invalid_enum_value\",
+ \"options\": [
+ \"accepted\",
+ \"rejected\"
+ ],
+ \"path\": [],
+ \"message\": \"Invalid enum value. Expected 'accepted' | 'rejected', received 'complete'\"
+ }
+ ],
+ \"name\": \"ZodError\"
+ },
+ {
+ \"issues\": [
+ {
+ \"received\": \"complete\",
+ \"code\": \"invalid_enum_value\",
+ \"options\": [
+ \"no-changes\",
+ \"changes-detected\"
+ ],
+ \"path\": [],
+ \"message\": \"Invalid enum value. Expected 'no-changes' | 'changes-detected', received 'complete'\"
+ }
+ ],
+ \"name\": \"ZodError\"
+ },
+ {
+ \"issues\": [
+ {
+ \"received\": \"complete\",
+ \"code\": \"invalid_enum_value\",
+ \"options\": [
+ \"expired\",
+ \"pending\",
+ \"progress\",
+ \"error\",
+ \"aborted\"
+ ],
+ \"path\": [],
+ \"message\": \"Invalid enum value. Expected 'expired' | 'pending' | 'progress' | 'error' | 'aborted', received 'complete'\"
+ }
+ ],
+ \"name\": \"ZodError\"
+ }
+ ],
+ \"path\": [],
+ \"message\": \"Invalid input\"
+ }
+ ]",
+ "path": Array [
+ "project",
+ "builds",
+ "edges",
+ 0,
+ "status",
+ ],
+ },
+ ]
❯ Module.expectNoGraphQLError apps/backend/src/graphql/testing.ts:6:29
❯ apps/backend/src/graphql/tests/queryRepository.e2e.test.ts:82:7
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading