AI Unit Tests & Type Check #22
Annotations
4 errors and 1 warning
|
Run tests
Process completed with exit code 1.
|
|
Run tests:
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: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9f9d5464eb2665c5-FRA', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 11 May 2026 01:14:56 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=XmTAG.nrf3UtIiNxkwOyLLmVjkoOaY7cnnKITTbLpDA-1778462096.1460073-1.0.1.1-pFsi50fnwyC1vMI98dgd1EFKR5.mug2uIq63wyMQVwD6nss3nd7pS5K6kVhk9k1S_Shgtk43araCNURQ.6DbcVLNWLEx0Fv5yZ6G7.zD9cDDiI1.c8CBHjgzWWNMoKpr; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 11 May 2026 01:44:56 GMT, _cfuvid=OH2nlGmd0MqCFvUWdcO7KbJg6_SiNvWearOZjOcVeA4-1778462096.1460073-1.0.1.1-RH3mtMHakQcIl3e3GTg5dvKyGabdO40WPgwqpigU9Og; 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_8d78bc0437e944e9acb6bc57d528f2e6' }, request_id: 'req_8d78bc0437e944e9acb6bc57d528f2e6', 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 }
|
|
Run tests:
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: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9f9d5463de39dc80-FRA', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 11 May 2026 01:14:56 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=_pKD1mrzUidP193o0ms9X7AeLYV3nhQ.A73hJ3tLWlE-1778462095.9769807-1.0.1.1-Fi4TWNdxU8inbpULEAgQmk23gAHkN24nd1XBSu20W_1b.WD_8MtCgMyL8AtAx6kBJv6eTX.VtgPVDuP.MKmtaZzKNMoTYN.PnQM1wsTPoV.bNnPdL8_HB7n3oIEYh3x9; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 11 May 2026 01:44:56 GMT, _cfuvid=GHIosTxTjkRnF15IN5IcO3Iv1TIBxWFCQCttRtnpf5Q-1778462095.9769807-1.0.1.1-h1dHSaUJom2I6k.PaXbCh_8.fWDehKtbe0Zg1nP4vGU; 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_e9d298bc8f434ac589a0e598ca133f1d' }, request_id: 'req_e9d298bc8f434ac589a0e598ca133f1d', 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 }
|
|
Run tests:
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: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9f9d5463da8a65c5-FRA', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 11 May 2026 01:14:56 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=n3ElIIyfKCP_rAtxdNjUSJmuIk_cja7.ASRJjuv1el4-1778462095.9788866-1.0.1.1-gkt6Hja7mUPygaR4JRhTPiegRyW795U9isBzV0Qtsp9VA1i_987.ih0dPqk3ws4swGtV2Q2SNWmabOKkPQWKPVpZieWZOWSIBd9bSENU.UeasEHnIUt0mt96Rzv1o3yY; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 11 May 2026 01:44:56 GMT, _cfuvid=NE2XFv9gzoEkH_EXtdfAMhtGRNuWMm4S.TR_k6wwLk4-1778462095.9788866-1.0.1.1-_3eoFu9VWDw6kNXcgmwRM2MNfbGSniVhr40lelsTT_Q; 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_0e9f02e7a632454c9d6c6262904dc577' }, request_id: 'req_0e9f02e7a632454c9d6c6262904dc577', 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 }
|
|
Complete job
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/
|
background
wait
wait-all
cancel
parallel
Loading