Skip to content

chore: add tests for WithTransformation methods #26219

chore: add tests for WithTransformation methods

chore: add tests for WithTransformation methods #26219

Triggered via pull request June 4, 2025 19:47
Status Failure
Total duration 14m 48s
Artifacts 9

check.yml

on: pull_request
Matrix: client_gen
client kotlin@21.0.6 macos
3m 49s
client kotlin@21.0.6 macos
client swift@5.9 linux
4m 9s
client swift@5.9 linux
client javascript@22.16.0
6m 19s
client javascript@22.16.0
codegen
0s
codegen
check_green
2s
check_green
push_and_release
0s
push_and_release
Fit to window
Zoom out
Zoom in

Annotations

10 errors
client go@1.21.11
Process completed with exit code 1.
client python@3.9
Process completed with exit code 1.
client python@3.10
Process completed with exit code 1.
client python@3.11
Process completed with exit code 1.
client python@3.8
Process completed with exit code 1.
client python@3.12
Process completed with exit code 1.
client javascript@22.16.0
Process completed with exit code 1.
src/client/search.test.ts > saveObjectsWithTransformation > call saveObjectsWithTransformation without error: tests/output/javascript/src/client/search.test.ts#L787
RetryError: Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support. ❯ retry ../../../clients/algoliasearch-client-javascript/packages/client-common/src/transporter/createTransporter.ts:131:15 ❯ retry ../../../clients/algoliasearch-client-javascript/packages/client-common/src/transporter/createTransporter.ts:186:16 ❯ src/client/search.test.ts:787:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stackTrace: [ { request: { data: '{"action":"addObject","records":[{"objectID":"1","name":"Adam"},{"objectID":"2","name":"Benoit"}]}', headers: { accept: 'application/json', 'content-type': 'text/plain', 'x-algolia-api-key': '*****', 'x-algolia-application-id': 'test-app-id' }, method: 'POST', url: 'http://localhost:6689/1/push/cts_e2e_saveObjectsWithTransformation_javascript?x-algolia-agent=Algolia%20for%20JavaScript%20(1.26.0)%3B%20Ingestion%20(1.26.0)%3B%20Node.js%20(22.16.0)', connectTimeout: 180000, responseTimeout: 180000 }, response: { status: 500, content: '<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Error</title>\n</head>\n<body>\n<pre>AssertionError: expected { action: &#39;addObject&#39;, …(1) } to deeply equal { requests: [ { …(2) }, { …(2) } ] }<br> &nbsp; &nbsp;at file:///home/runner/work/api-clients-automation/api-clients-automation/scripts/cts/testServer/index.ts:78:12<br> &nbsp; &nbsp;at Layer.handleError (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/lib/layer.js:116:17)<br> &nbsp; &nbsp;at trimPrefix (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:340:13)<br> &nbsp; &nbsp;at /home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:297:9<br> &nbsp; &nbsp;at processParams (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:582:12)<br> &nbsp; &nbsp;at next (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:291:5)<br> &nbsp; &nbsp;at Layer.handleError (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/lib/layer.js:111:12)<br> &nbsp; &nbsp;at trimPrefix (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:340:13)<br> &nbsp; &nbsp;at /home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:297:9<br> &nbsp; &nbsp;at processParams (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:582:12)</pre>\n</body>\n</html>\n', isTimedOut: false }, host: { url: 'localhost', port: 6689, accept: 'readWrite', protocol: 'http', status: 'up', lastUpdate: 1749066982980, isUp: 'Function<isUp>', isTimedOut: 'Function<isTimedOut>' }, triesLeft: +0 } ] }
src/client/search.test.ts > partialUpdateObjectsWithTransformation > call partialUpdateObjectsWithTransformation with createIfNotExists=true: tests/output/javascript/src/client/search.test.ts#L531
RetryError: Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support. ❯ retry ../../../clients/algoliasearch-client-javascript/packages/client-common/src/transporter/createTransporter.ts:131:15 ❯ retry ../../../clients/algoliasearch-client-javascript/packages/client-common/src/transporter/createTransporter.ts:186:16 ❯ src/client/search.test.ts:531:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stackTrace: [ { request: { data: '{"action":"partialUpdateObject","records":[{"objectID":"1","name":"Adam"},{"objectID":"2","name":"Benoit"}]}', headers: { accept: 'application/json', 'content-type': 'text/plain', 'x-algolia-api-key': '*****', 'x-algolia-application-id': 'test-app-id' }, method: 'POST', url: 'http://localhost:6689/1/push/cts_e2e_partialUpdateObjectsWithTransformation_javascript?x-algolia-agent=Algolia%20for%20JavaScript%20(1.26.0)%3B%20Ingestion%20(1.26.0)%3B%20Node.js%20(22.16.0)', connectTimeout: 180000, responseTimeout: 180000 }, response: { status: 500, content: '<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Error</title>\n</head>\n<body>\n<pre>AssertionError: expected { action: &#39;partialUpdateObject&#39;, …(1) } to deeply equal { requests: [ { …(2) }, { …(2) } ] }<br> &nbsp; &nbsp;at file:///home/runner/work/api-clients-automation/api-clients-automation/scripts/cts/testServer/index.ts:78:12<br> &nbsp; &nbsp;at Layer.handleError (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/lib/layer.js:116:17)<br> &nbsp; &nbsp;at trimPrefix (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:340:13)<br> &nbsp; &nbsp;at /home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:297:9<br> &nbsp; &nbsp;at processParams (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:582:12)<br> &nbsp; &nbsp;at next (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:291:5)<br> &nbsp; &nbsp;at Layer.handleError (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/lib/layer.js:111:12)<br> &nbsp; &nbsp;at trimPrefix (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:340:13)<br> &nbsp; &nbsp;at /home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:297:9<br> &nbsp; &nbsp;at processParams (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:582:12)</pre>\n</body>\n</html>\n', isTimedOut: false }, host: { url: 'localhost', port: 6689, accept: 'readWrite', protocol: 'http', status: 'up', lastUpdate: 1749066982938, isUp: 'Function<isUp>', isTimedOut: 'Function<isTimedOut>' }, triesLeft: +0 } ] }
check_green
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size Digest
clients-csharp Expired
4.33 MB
sha256:48959a699ac9ed11997a4eb4712a05d45fa63958246086362978049f4da08c9f
clients-dart Expired
1000 KB
sha256:6b18993a3867d1babebba0d7f8bee39007b1db5c880baaaed1af11296c12305a
clients-java Expired
964 KB
sha256:da0d0b233319efaf7b270052ef66fbd961dc8b9ebb732342da9a7b49b2ef0c11
clients-kotlin Expired
636 KB
sha256:1271ef0beb032edd9fb402845bd14fd18534add15a2f835458c97ddd799e7730
clients-php Expired
1.19 MB
sha256:c49de1c1306b283d08a1328e45db8ba59c7380b5f38ddba8e577b5c443162b9d
clients-ruby Expired
1.33 MB
sha256:8f25907b36b2f3045facf342ecc347b2b1fa5e91aba6ee58c3428ba99c120e17
clients-scala Expired
1.18 MB
sha256:0394fdd3c722796556ea6e6feb16f5cc58cc1f98c0efe9ae3655981e2992d300
clients-swift Expired
851 KB
sha256:ef7a958ac4d51821d8a34d61c301d29694874701d3b11d47c94e21e1c8994284
specs Expired
219 KB
sha256:2bf1c4d5e84a83d00b7aadaa9a13ab2f9097ccf1f8908d1cd0600386ded406c6