Skip to content

feat(api): improve builds API #4526

feat(api): improve builds API

feat(api): improve builds API #4526

Triggered via pull request March 15, 2026 09:05
Status Failure
Total duration 2m 38s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 4 warnings
integration-test
Process completed with exit code 1.
apps/backend/src/api/handlers/getBuild.e2e.test.ts > getBuild > with a valid build > returns the build: apps/backend/src/api/handlers/getBuild.e2e.test.ts#L88
AssertionError: expected { id: '123', number: 1, …(8) } to match object { id: '123', number: 1, …(8) } - Expected + Received @@ -1,10 +1,7 @@ { - "base": { - "branch": "develop", - "sha": "7c96c8120dc539201c9ef3e2db8a1671585ac69e", - }, + "base": null, "conclusion": "no-changes", "head": { "branch": "master", "sha": "91d4f24b71c2ef18fb8a5f5f4d2e9d3dcb1a4d6a", }, ❯ apps/backend/src/api/handlers/getBuild.e2e.test.ts:88:24
apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts > finalizeBuilds > with a valid build > returns 200 status code: apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts#L136
AssertionError: expected { builds: [ { id: '134', …(9) } ] } to deeply equal { builds: [ { id: '134', …(7) } ] } - Expected + Received @@ -1,9 +1,14 @@ { "builds": [ { + "base": null, "conclusion": "no-changes", + "head": { + "branch": "master", + "sha": "2b86776feb09dec71598b00d5fb612b81182af5e", + }, "id": "134", "metadata": null, "notification": { "context": "argos", "description": "Everything's good!", ❯ apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts:136:24
apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts > finalizeBuilds > with a bucket already complete > returns 200 with the finalized build: apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts#L71
AssertionError: expected { builds: [ { id: '132', …(9) } ] } to deeply equal { builds: [ { id: '132', …(7) } ] } - Expected + Received @@ -1,9 +1,14 @@ { "builds": [ { + "base": null, "conclusion": "no-changes", + "head": { + "branch": "master", + "sha": "74d2cf42a78e6e134df64a2176a58cffb9f7c861", + }, "id": "132", "metadata": null, "notification": { "context": "argos", "description": "Everything's good!", ❯ apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts:71:10 ❯ apps/backend/src/api/handlers/finalizeBuilds.e2e.test.ts:72:28 ❯ node_modules/.pnpm/supertest@7.2.2/node_modules/supertest/lib/test.js:365:13 ❯ Test._assertFunction node_modules/.pnpm/supertest@7.2.2/node_modules/supertest/lib/test.js:342:13 ❯ Test.assert node_modules/.pnpm/supertest@7.2.2/node_modules/supertest/lib/test.js:195:23 ❯ localAssert node_modules/.pnpm/supertest@7.2.2/node_modules/supertest/lib/test.js:138:14 ❯ Server.<anonymous> node_modules/.pnpm/supertest@7.2.2/node_modules/supertest/lib/test.js:152:11
unit-test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
static-analysis
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
e2e-test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
integration-test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/