Skip to content

AI Unit Tests & Type Check #23

AI Unit Tests & Type Check

AI Unit Tests & Type Check #23

Triggered via schedule May 18, 2026 01:17
Status Failure
Total duration 33s
Artifacts

ai-tests.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
test
Process completed with exit code 1.
src/sql/functions.test.ts > title > title matches content: packages/ai-commands/src/sql/functions.ts#L167
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.3_zod@3.25.76/node_modules/openai/src/error.ts:76:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.3_zod@3.25.76/node_modules/openai/src/core.ts:462:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.3_zod@3.25.76/node_modules/openai/src/core.ts:526:24 ❯ titleSql src/sql/functions.ts:167:32 ❯ src/sql/functions.test.ts:50:36 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'access-control-expose-headers': 'CF-Ray, CF-Ray', 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9fd705f10ee1d2e2-FRA', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 18 May 2026 01:17:36 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=ZbrYs485OAkDErwwDlKv8_Nz8YNAtj1OcbnSGRHIL9I-1779067056.8105147-1.0.1.1-6bzf8z3bZTR4gEG6C7QuXlH10TQb3VjcHRHT2vuAllIHai_4Brn0n0pkpvW5YRKHuzGRA2KHYMv7sr5VR3NnJTW_PJCl1yQjGzNlLPnOvQ9jEkHAa3ISojhrXNqZ.ibq; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 18 May 2026 01:47:36 GMT, _cfuvid=5FP6el9b_PKZCzQhZoEiieT2ctiHnSaWtAZx8Fxnd1c-1779067056.8105147-1.0.1.1-fd3VDaqfvHI59xqbsTVnjaDJT5V11aFRxkWXxnfzf8Y; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_93de67d4e2f2411c9db17059e6653822' }, request_id: 'req_93de67d4e2f2411c9db17059e6653822', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/functions.test.ts > debug > fix typos: packages/ai-commands/src/sql/functions.ts#L107
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.3_zod@3.25.76/node_modules/openai/src/error.ts:76:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.3_zod@3.25.76/node_modules/openai/src/core.ts:462:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.3_zod@3.25.76/node_modules/openai/src/core.ts:526:24 ❯ debugSql src/sql/functions.ts:107:32 ❯ src/sql/functions.test.ts:35:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'access-control-expose-headers': 'CF-Ray, CF-Ray', 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9fd705f05dd5d2e2-FRA', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 18 May 2026 01:17:36 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=nkXkDQGDbEiZ5IFkwME2oDJibt5xwCjFFgwrfvHD8ks-1779067056.693986-1.0.1.1-AZO0uuTlA1CYWqSvVRCAsNLKMZ7H5.CkmQzCMJg_eDGu0aHDQR6hl1.QDPggYZSqZl2AQ8aUJXEtZ9vCsn09YjSVGlN2ushsfVjZKSoWWhpGxnHiND6Wck7MhbqdM_1z; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 18 May 2026 01:47:36 GMT, _cfuvid=G7lBAVwwOHS8SFbSs0DL6OduomYa2LVRXLsCBafn8aM-1779067056.693986-1.0.1.1-IqrIFc5e.3THS_3toK8dStvIICkKiWivpSGTOYt.Jd4; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_ae9bc6a21be6409a8475c4f5c286c949' }, request_id: 'req_ae9bc6a21be6409a8475c4f5c286c949', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/functions.test.ts > debug > fix order of operations: packages/ai-commands/src/sql/functions.ts#L107
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.3_zod@3.25.76/node_modules/openai/src/error.ts:76:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.3_zod@3.25.76/node_modules/openai/src/core.ts:462:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.104.0_encoding@0.1.13_ws@8.18.3_zod@3.25.76/node_modules/openai/src/core.ts:526:24 ❯ debugSql src/sql/functions.ts:107:32 ❯ src/sql/functions.test.ts:13:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'access-control-expose-headers': 'CF-Ray, CF-Ray', 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9fd705f0599adc92-FRA', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 18 May 2026 01:17:36 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=sZjB2rzdBHlPtPKJ8sVylQ6ofz6amWeMXf.UCFItNQY-1779067056.6908488-1.0.1.1-FquDMc13mD77uyWaRnFke8HcZoQh1Wcrj62qrnEIVWJsaOsCxO9pX6Fr._pV0Fx0LS_gEwdxrXeDxUqy6kAlW3IgeEABP3A5BLxnjzOsuGl7Z1wU2pQQ5jKf6DvZU6gk; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 18 May 2026 01:47:36 GMT, _cfuvid=wseHxN8Abgn3gZEhJTghR_odGuD8Yxwtb9EOFz2NqjU-1779067056.6908488-1.0.1.1-X4nSVMex0uJUx4ZaLvcT60WwA.aGbAtrXSI3Fto6aZ8; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_43cc2f094ba24e5aaae7bc4b34294bf7' }, request_id: 'req_43cc2f094ba24e5aaae7bc4b34294bf7', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 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/