Skip to content

chore: add tests for WithTransformation methods #26210

chore: add tests for WithTransformation methods

chore: add tests for WithTransformation methods #26210

Triggered via pull request June 4, 2025 14:10
Status Cancelled
Total duration 9m 29s
Artifacts 2

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

25 errors
client java@11
Process completed with exit code 1.
client java@8
Process completed with exit code 1.
client java@17
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
Error: tests/output/ruby/test/client/search_test.rb#L914
NoMethodError: undefined method 'save_objects_with_transformation' for an instance of Algolia::SearchClient /home/runner/work/api-clients-automation/api-clients-automation/tests/output/ruby/test/client/search_test.rb:914:in 'TestClientSearchClient#test_save_objects_with_transformation0'
Error: tests/output/ruby/test/client/search_test.rb#L641
NoMethodError: undefined method 'partial_update_objects_with_transformation' for an instance of Algolia::SearchClient /home/runner/work/api-clients-automation/api-clients-automation/tests/output/ruby/test/client/search_test.rb:641:in 'TestClientSearchClient#test_partial_update_objects_with_transformation0'
client java@21
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
client [email protected]: tests/output/csharp/src/generated/client/Search.test.cs#L1076
'SearchClient' does not contain a definition for 'SaveObjectsWithTransformationAsync' and no accessible extension method 'SaveObjectsWithTransformationAsync' accepting a first argument of type 'SearchClient' could be found (are you missing a using directive or an assembly reference?)
client [email protected]: tests/output/csharp/src/generated/client/Search.test.cs#L731
'SearchClient' does not contain a definition for 'PartialUpdateObjectsWithTransformationAsync' and no accessible extension method 'PartialUpdateObjectsWithTransformationAsync' accepting a first argument of type 'SearchClient' could be found (are you missing a using directive or an assembly reference?)
client [email protected]
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
client [email protected]
Process completed with exit code 1.
client [email protected]
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: 1749046716787, 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: 1749046716747, isUp: 'Function<isUp>', isTimedOut: 'Function<isTimedOut>' }, triesLeft: +0 } ] }
client [email protected]
Process completed with exit code 1.
Checks
Canceling since a higher priority waiting request for refs/pull/4936/merge exists
check_green
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size Digest
clients-dart Expired
1000 KB
sha256:72abedffe32f11f896f83a7a00ecd4f03c23b28afae2a12592004299f625cac3
specs Expired
219 KB
sha256:5b315a6be53db6b339db0b2b91320327c6f1049f83a1352a8f63442cee0cc74f