chore: add tests for WithTransformation methods #26210
check.yml
on: pull_request
setup
57s
notification
7s
Matrix: client_gen
client kotlin@21.0.6
macos
4m 24s
client swift@5.9
linux
4m 0s
push_and_release
0s
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 ruby@3.4.4
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 swift@5.9
Process completed with exit code 1.
|
|
client go@1.21.11
Process completed with exit code 1.
|
|
client php@8.3
Process completed with exit code 1.
|
|
client python@3.12
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 csharp@9.0.300
Process completed with exit code 1.
|
|
client csharp@9.0.300:
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 csharp@9.0.300:
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 python@3.11
Process completed with exit code 1.
|
|
client python@3.8
Process completed with exit code 1.
|
|
client scala@21.0.6
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: 'addObject', …(1) } to deeply equal { requests: [ { …(2) }, { …(2) } ] }<br> at file:///home/runner/work/api-clients-automation/api-clients-automation/scripts/cts/testServer/index.ts:78:12<br> at Layer.handleError (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/lib/layer.js:116:17)<br> at trimPrefix (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:340:13)<br> at /home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:297:9<br> at processParams (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:582:12)<br> at next (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:291:5)<br> at Layer.handleError (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/lib/layer.js:111:12)<br> at trimPrefix (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:340:13)<br> at /home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:297:9<br> 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: 'partialUpdateObject', …(1) } to deeply equal { requests: [ { …(2) }, { …(2) } ] }<br> at file:///home/runner/work/api-clients-automation/api-clients-automation/scripts/cts/testServer/index.ts:78:12<br> at Layer.handleError (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/lib/layer.js:116:17)<br> at trimPrefix (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:340:13)<br> at /home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:297:9<br> at processParams (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:582:12)<br> at next (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:291:5)<br> at Layer.handleError (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/lib/layer.js:111:12)<br> at trimPrefix (/home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:340:13)<br> at /home/runner/work/api-clients-automation/api-clients-automation/node_modules/router/index.js:297:9<br> 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 kotlin@21.0.6
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
|
|