Skip to content

Conversation

@stainless-app
Copy link
Contributor

@stainless-app stainless-app bot commented Apr 10, 2025

Automated Release PR

2.0.0 (2025-06-04)

Full Changelog: v1.71.5...v2.0.0

Features

Chores

  • ci: add timeout thresholds for CI jobs (8105c78)
  • ci: bump node version for release workflows (3699b40)
  • ci: only use depot for staging repos (ab0758f)
  • client: minor internal fixes (0403a6f)
  • docs: grammar improvements (0c3e348)
  • docs: use top-level-await in example snippets (c9eee6c)
  • improve publish-npm script --latest tag logic (5805fb3)
  • internal: codegen related update (bca6b03)
  • internal: reduce CI branch coverage (bad37ea)
  • internal: upload builds and expand CI branch coverage (e2feb58)
  • update SDK settings (a64ff32)

Documentation


This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

@qodo-merge-for-open-source
Copy link

qodo-merge-for-open-source bot commented Apr 10, 2025

CI Feedback 🧐

(Feedback updated until commit 4c487af)

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: test

Failed stage: Run tests [❌]

Failed test name: Multiple tests failed due to timeout

Failure summary:

The action failed because multiple tests timed out, exceeding the default timeout of 5000 ms.
Specifically:

1. In tests/api-resources/agents/tools.test.ts:
- Test at line 12: create: only required params

- Test at line 94: list: request options instead of params are passed correctly

2. In tests/api-resources/users/users.test.ts:
- Test at line 34: list
- Test at line 45:
list: request options instead of params are passed correctly

3. There were also failures in tests/api-resources/sessions.test.ts (mentioned in line 257)

In total, 4 test suites failed with 7 failed tests out of 297 total tests.

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

196:  11 | describe('resource tools', () => {
197:  > 12 |   test('create: only required params', async () => {
198:  |   ^
199:  13 |     const responsePromise = client.agents.tools.create('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
200:  14 |       name: 'name',
201:  15 |       type: 'function',
202:  at test (tests/api-resources/agents/tools.test.ts:12:3)
203:  at Object.describe (tests/api-resources/agents/tools.test.ts:11:1)
204:  ● resource tools › list: request options instead of params are passed correctly
205:  thrown: "Exceeded timeout of 5000 ms for a test.
206:  Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
207:  92 |   });
208:  93 |
209:  > 94 |   test('list: request options instead of params are passed correctly', async () => {
210:  |   ^
211:  95 |     // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
212:  96 |     await expect(
...

221:  33 |
222:  > 34 |   test('list', async () => {
223:  |   ^
224:  35 |     const responsePromise = client.users.list();
225:  36 |     const rawResponse = await responsePromise.asResponse();
226:  37 |     expect(rawResponse).toBeInstanceOf(Response);
227:  at test (tests/api-resources/users/users.test.ts:34:3)
228:  at Object.describe (tests/api-resources/users/users.test.ts:11:1)
229:  ● resource users › list: request options instead of params are passed correctly
230:  thrown: "Exceeded timeout of 5000 ms for a test.
231:  Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
232:  43 |   });
233:  44 |
234:  > 45 |   test('list: request options instead of params are passed correctly', async () => {
235:  |   ^
236:  46 |     // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
237:  47 |     await expect(client.users.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
238:  48 |       Julep.NotFoundError,
239:  at test (tests/api-resources/users/users.test.ts:45:3)
...

241:  PASS tests/api-resources/agents/docs.test.ts
242:  PASS tests/api-resources/users/docs.test.ts
243:  PASS tests/api-resources/executions/transitions.test.ts
244:  PASS tests/api-resources/secrets.test.ts
245:  PASS tests/api-resources/executions/executions.test.ts
246:  PASS tests/api-resources/files.test.ts
247:  PASS tests/api-resources/projects.test.ts
248:  PASS tests/uploads.test.ts
249:  PASS tests/api-resources/executions/status.test.ts
250:  PASS tests/api-resources/docs.test.ts
251:  PASS tests/form.test.ts
252:  PASS tests/api-resources/jobs.test.ts
253:  PASS tests/responses.test.ts
254:  PASS tests/api-resources/healthz.test.ts
255:  PASS tests/stringifyQuery.test.ts
256:  Summary of all failing tests
257:  FAIL tests/api-resources/sessions.test.ts (9.317 s)
...

300:  11 | describe('resource tools', () => {
301:  > 12 |   test('create: only required params', async () => {
302:  |   ^
303:  13 |     const responsePromise = client.agents.tools.create('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
304:  14 |       name: 'name',
305:  15 |       type: 'function',
306:  at test (tests/api-resources/agents/tools.test.ts:12:3)
307:  at Object.describe (tests/api-resources/agents/tools.test.ts:11:1)
308:  ● resource tools › list: request options instead of params are passed correctly
309:  thrown: "Exceeded timeout of 5000 ms for a test.
310:  Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
311:  92 |   });
312:  93 |
313:  > 94 |   test('list: request options instead of params are passed correctly', async () => {
314:  |   ^
315:  95 |     // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
316:  96 |     await expect(
...

325:  33 |
326:  > 34 |   test('list', async () => {
327:  |   ^
328:  35 |     const responsePromise = client.users.list();
329:  36 |     const rawResponse = await responsePromise.asResponse();
330:  37 |     expect(rawResponse).toBeInstanceOf(Response);
331:  at test (tests/api-resources/users/users.test.ts:34:3)
332:  at Object.describe (tests/api-resources/users/users.test.ts:11:1)
333:  ● resource users › list: request options instead of params are passed correctly
334:  thrown: "Exceeded timeout of 5000 ms for a test.
335:  Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
336:  43 |   });
337:  44 |
338:  > 45 |   test('list: request options instead of params are passed correctly', async () => {
339:  |   ^
340:  46 |     // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
341:  47 |     await expect(client.users.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
342:  48 |       Julep.NotFoundError,
343:  at test (tests/api-resources/users/users.test.ts:45:3)
344:  at Object.describe (tests/api-resources/users/users.test.ts:11:1)
345:  Test Suites: 4 failed, 19 passed, 23 total
346:  Tests:       7 failed, 290 passed, 297 total
347:  Snapshots:   3 passed, 3 total
348:  Time:        25.115 s
349:  Ran all test suites.
350:  Stopped 2355.
351:  ##[error]Process completed with exit code 1.
352:  Post job cleanup.

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from db44d85 to bad37ea Compare April 10, 2025 02:39
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 5e08522 to 0403a6f Compare April 15, 2025 02:14
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from df5e792 to 8105c78 Compare April 23, 2025 02:41
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 1c0e37d to bca6b03 Compare April 24, 2025 02:09
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from f31ee77 to ab0758f Compare April 24, 2025 02:14
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from e2ba577 to fb227ad Compare May 1, 2025 02:26
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from c6e97f1 to 3699b40 Compare May 7, 2025 02:57
@stainless-app stainless-app bot changed the title release: 1.71.6 release: 2.0.0 May 12, 2025
@stainless-app
Copy link
Contributor Author

stainless-app bot commented May 12, 2025

Release version edited manually

The Pull Request version has been manually set to 2.0.0 and will be used for the release.

If you instead want to use the version number 1.71.6 generated from conventional commits, just remove the label autorelease: custom version from this Pull Request.

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from aac6eaa to 3699b40 Compare May 12, 2025 08:12
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 3f9a371 to a64ff32 Compare May 12, 2025 08:14
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 69e5883 to f3745b7 Compare May 12, 2025 16:15
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 812c78f to 416d225 Compare May 14, 2025 13:57
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from b78d24d to c6d39e0 Compare May 19, 2025 06:50
@stainless-app
Copy link
Contributor Author

stainless-app bot commented May 19, 2025

🧪 Testing

To try out this version of the SDK, run:

npm install 'https://pkg.stainless.com/s/julep-node/438c09b9c17666d96f9508b23cb07254f8987123'

Last updated: Fri, 30 May 2025 16:16:32 GMT

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 9a21351 to 0c3e348 Compare May 22, 2025 02:30
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 48bc2b2 to 6532e7a Compare May 24, 2025 12:15
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from a12a764 to 889138d Compare May 24, 2025 13:15
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 952c919 to 21f7dc0 Compare May 24, 2025 17:15
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 35e75fb to e6bcf45 Compare May 26, 2025 10:15
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 8d01627 to 7661970 Compare May 26, 2025 12:15
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 575603d to 5805fb3 Compare May 28, 2025 04:07
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from c0026cb to c5154b0 Compare May 30, 2025 05:16
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 91af7f9 to edcc09c Compare May 30, 2025 06:16
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 355f744 to a7894e2 Compare May 30, 2025 11:55
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from b20f943 to 438c09b Compare May 30, 2025 16:15
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next--components--sdk branch from 4c487af to c9eee6c Compare June 4, 2025 03:56
@Ahmad-mtos Ahmad-mtos merged commit d24d5be into main Jun 12, 2025
3 of 4 checks passed
@Ahmad-mtos Ahmad-mtos deleted the release-please--branches--main--changes--next--components--sdk branch June 12, 2025 09:49
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Jun 12, 2025

🤖 Release is at https://github.com/julep-ai/node-sdk/releases/tag/v2.0.0 🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants