Skip to content

Conversation

@benzekrimaha
Copy link
Contributor

@benzekrimaha benzekrimaha commented Oct 22, 2025

Issue: CLDSRV-724

@codecov
Copy link

codecov bot commented Oct 22, 2025

❌ 56 Tests Failed:

Tests completed Failed Passed Skipped
7310 56 7254 0
View the top 3 failed test(s) by shortest run time
"after all" hook for "should list buckets"::GET Service - AWS.S3.listBuckets With default signature when user has credential "after all" hook for "should list buckets"
Stack Traces | 0s run time
s3.deleteBucket is not a function
"after all" hook for "should list buckets"::GET Service - AWS.S3.listBuckets With v4 signature when user has credential "after all" hook for "should list buckets"
Stack Traces | 0s run time
s3.deleteBucket is not a function
"before all" hook for "should list buckets concurrently"::GET Service - AWS.S3.listBuckets With default signature when user has credential "before all" hook for "should list buckets concurrently"
Stack Traces | 0s run time
s3.config.update is not a function
"before all" hook for "should list buckets concurrently"::GET Service - AWS.S3.listBuckets With v4 signature when user has credential "before all" hook for "should list buckets concurrently"
Stack Traces | 0s run time
s3.config.update is not a function
should abort a multipart upload::aws-node-sdk test suite as registered user should abort a multipart upload
Stack Traces | 0s run time
error aborting multipart upload: MissingRequiredParameter: Missing required key 'UploadId' in params
should show us-east-1 as bucket location sinceIP address endpoint was not in config thereby defaulting to us-east-1::Requests to ip endpoint not in config With default signature should show us-east-1 as bucket location sinceIP address endpoint was not in config thereby defaulting to us-east-1
Stack Traces | 0.002s run time
Expected values to be strictly equal:

undefined !== ''
should show us-east-1 as bucket location sinceIP address endpoint was not in config thereby defaulting to us-east-1::Requests to ip endpoint not in config With v4 signature should show us-east-1 as bucket location sinceIP address endpoint was not in config thereby defaulting to us-east-1
Stack Traces | 0.002s run time
Expected values to be strictly equal:

undefined !== ''
should return error if pattern is invalid::Invalid regular expression searches should return error if pattern is invalid
Stack Traces | 0.003s run time
done() called multiple times in test <Invalid regular expression searches should return error if pattern is invalid> of file .../test/mdSearch/basicSearch.js; in addition, done() received error: InvalidArgument: Invalid sql where clause sent as search query
    at throwDefaultError (.../cloudserver/cloudserver/node_modules/@.../smithy-client/dist-cjs/index.js:288:22)
    at .../cloudserver/cloudserver/node_modules/@.../smithy-client/dist-cjs/index.js:297:9
    at de_CommandError (.../cloudserver/cloudserver/node_modules/@.../client-s3/dist-cjs/index.js:4868:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async .../cloudserver/cloudserver/node_modules/@aws-sdk/client-s3/node_modules/@.../middleware-serde/dist-cjs/index.js:8:24
    at async .../cloudserver/cloudserver/node_modules/@.../middleware-sdk-s3/dist-cjs/index.js:386:20
    at async .../cloudserver/cloudserver/node_modules/@aws-sdk/client-s3/node_modules/@.../middleware-retry/dist-cjs/index.js:254:46
    at async .../cloudserver/cloudserver/node_modules/@.../middleware-sdk-s3/dist-cjs/index.js:63:28
    at async .../cloudserver/cloudserver/node_modules/@.../middleware-sdk-s3/dist-cjs/index.js:90:20
    at async .../cloudserver/cloudserver/node_modules/@aws-sdk/client-s3/node_modules/@.../middleware-logger/dist-cjs/index.js:5:26
    at async makeRequest (.../mdSearch/utils/helpers.js:71:25) {
  '$fault': 'client',
  '$response': [HttpResponse],
  '$retryable': undefined,
  '$metadata': [Object],
  Code: 'InvalidArgument',
  Resource: '',
  RequestId: '0efacc171c49bc16c328'
}
"after each" hook for "should put an object and set the acl via query param"::PUT object With v4 signature "after each" hook for "should put an object and set the acl via query param"
Stack Traces | 0.011s run time
done() called multiple times in hook <PUT object With v4 signature "after each" hook for "should put an object and set the acl via query param"> of file .../test/object/put.js
"after each" hook for "should put an object and set the acl via query param"::PUT object With v4 signature "after each" hook for "should put an object and set the acl via query param"
Stack Traces | 0.011s run time
Expected values to be strictly equal:
+ actual - expected

+ '404 NOT FOUND'
- '200 OK'
"before each" hook for "should return InvalidRange error if get range bytes=0-9 on empty object"::aws-node-sdk test suite as registered user Get range on empty object "before each" hook for "should return InvalidRange error if get range bytes=0-9 on empty object"
Stack Traces | 0.477s run time
error creating bucket: UnknownEndpoint: Inaccessible host: `ftest-bucketemptyobj-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
"after each" hook for "should return InvalidRange error if get range bytes=0-9 on empty object"::aws-node-sdk test suite as registered user Get range on empty object "after each" hook for "should return InvalidRange error if get range bytes=0-9 on empty object"
Stack Traces | 0.693s run time
error deletting object regularly: UnknownEndpoint: Inaccessible host: `ftest-bucketemptyobj-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
View the full list of 45 ❄️ flaky test(s)
downloaded file should equal file that was put::aws-node-sdk v2auth query tests downloaded file should equal file that was put

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.008s run time
Expected values to be strictly equal:

2 !== 0
downloaded file should equal file that was put::aws-node-sdk v4auth query tests downloaded file should equal file that was put

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.008s run time
Expected values to be strictly equal:

2 !== 0
should complete a multipart upload::aws-node-sdk test suite as registered user should complete a multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.001s run time
error completing mpu: MissingRequiredParameter: Missing required key 'UploadId' in params
should create a bucket::aws-node-sdk test suite as registered user should create a bucket

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.659s run time
error creating bucket: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should create a bucket::aws-node-sdk v2auth query tests should create a bucket

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.043s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should create a bucket::aws-node-sdk v4auth query tests should create a bucket

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.041s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should create a multipart upload::aws-node-sdk test suite as registered user should create a multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.691s run time
error initiating multipart upload: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should delete a bucket::aws-node-sdk test suite as registered user should delete a bucket

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.424s run time
error deleting bucket: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should delete a bucket::aws-node-sdk v2auth query tests should delete a bucket

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.033s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '204 NO CONTENT'
should delete a bucket::aws-node-sdk v4auth query tests should delete a bucket

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.031s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '204 NO CONTENT'
should delete an object put without MPU::aws-node-sdk test suite as registered user should delete an object put without MPU

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.482s run time
error deleting object: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should delete an object with native characters::aws-node-sdk v4auth query tests should delete an object with native characters

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.039s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '204 NO CONTENT'
should delete an object::aws-node-sdk v2auth query tests should delete an object

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.032s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '204 NO CONTENT'
should delete an object::aws-node-sdk v4auth query tests should delete an object

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.035s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '204 NO CONTENT'
should delete object created by multipart upload::aws-node-sdk test suite as registered user should delete object created by multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.609s run time
error deleting object: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should do a bucket listing with result::aws-node-sdk v4auth query tests should do a bucket listing with result

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.015s run time
Cannot read properties of undefined (reading 'map')
should get a range for an object put without MPU::aws-node-sdk test suite as registered user should get a range for an object put without MPU

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.519s run time
error getting object range: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should get a range for an object using only a start offset in the request::aws-node-sdk test suite as registered user should get a range for an object using only a start offset in the request

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.432s run time
error getting object range: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should get a range for an object using only an end offset in the request::aws-node-sdk test suite as registered user should get a range for an object using only an end offset in the request

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.42s run time
error getting object range: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should get a range from the first part of an object put by multipart upload::aws-node-sdk test suite as registered user should get a range from the first part of an object put by multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.228s run time
error getting object range put by mpu: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should get a range from the second part of an object put by multipart upload and include the end even if the range requested goes beyond the actual object end::aws-node-sdk test suite as registered user should get a range from the second part of an object put by multipart upload and include the end even if the range requested goes beyond the actual object end

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.245s run time
error getting object range put by mpu: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should get a range from the second part of an object put by multipart upload::aws-node-sdk test suite as registered user should get a range from the second part of an object put by multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.327s run time
error getting object range put by mpu: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should get a range that spans both parts of an object put by multipart upload::aws-node-sdk test suite as registered user should get a range that spans both parts of an object put by multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.202s run time
error getting object range put by mpu: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should get an object put by multipart upload::aws-node-sdk test suite as registered user should get an object put by multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.338s run time
error getting object put by mpu: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should get an object::aws-node-sdk v2auth query tests should get an object

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.017s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should get an object::aws-node-sdk v4auth query tests should get an object

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.07s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should get entire object if range is invalid::aws-node-sdk test suite as registered user should get entire object if range is invalid

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.279s run time
error getting object range put by mpu: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should get full object if range header is invalid::aws-node-sdk test suite as registered user should get full object if range header is invalid

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.206s run time
error getting object range: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should list objects in bucket::aws-node-sdk v4auth query tests should list objects in bucket

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.125s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should list the parts of a multipart upload::aws-node-sdk test suite as registered user should list the parts of a multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.001s run time
error listing parts: MissingRequiredParameter: Missing required key 'UploadId' in params
should put an object regularly (non-MPU)::aws-node-sdk test suite as registered user should put an object regularly (non-MPU)

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.283s run time
error putting object regularly: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should put an object with an acl setting and a storage class setting::aws-node-sdk v2auth query tests should put an object with an acl setting and a storage class setting

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.032s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should put an object with an acl setting and a storage class setting::aws-node-sdk v4auth query tests should put an object with an acl setting and a storage class setting

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.071s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should put an object with native characters::aws-node-sdk v4auth query tests should put an object with native characters

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.072s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should put an object::aws-node-sdk v2auth query tests should put an object

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.042s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should put an object::aws-node-sdk v4auth query tests should put an object

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.017s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '200 OK'
should return 204 on delete of non-existing object::aws-node-sdk v4auth query tests should return 204 on delete of non-existing object

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.047s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '204 NO CONTENT'
should return InvalidRange if the range of the resource does not cover the byte range::aws-node-sdk test suite as registered user should return InvalidRange if the range of the resource does not cover the byte range

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.427s run time
Expected values to be strictly equal:
+ actual - expected

+ 'UnknownEndpoint'
- 'InvalidRange'
should return a 204 on delete of an already deleted object::aws-node-sdk v4auth query tests should return a 204 on delete of an already deleted object

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.042s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '204 NO CONTENT'
should return an error code if expires header is too far in the future::aws-node-sdk v2auth query tests should return an error code if expires header is too far in the future

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.054s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '403 FORBIDDEN'
should return an error code if request occurs after expiry::aws-node-sdk v2auth query tests should return an error code if request occurs after expiry

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 1.55s run time
Expected values to be strictly equal:
+ actual - expected

+ undefined
- '403 FORBIDDEN'
should return an error if do not provide correct xml when completing a multipart upload::aws-node-sdk test suite as registered user should return an error if do not provide correct xml when completing a multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0s run time
Expected values to be strictly equal:
+ actual - expected

+ 'MissingRequiredParameter'
- 'MalformedXML'
should upload a part of a multipart upload to be aborted::aws-node-sdk test suite as registered user should upload a part of a multipart upload to be aborted

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.001s run time
error uploading a part: MissingRequiredParameter: Missing required key 'UploadId' in params
should upload a part of a multipart upload::aws-node-sdk test suite as registered user should upload a part of a multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0.639s run time
error initiating multipart upload: UnknownEndpoint: Inaccessible host: `ftest-mybucket-75.127.0.0.1' at port `undefined'. This service may not be available in the `us-east-1' region.
should upload a second part of a multipart upload::aws-node-sdk test suite as registered user should upload a second part of a multipart upload

Flake rate in main: 13.81% (Passed 668 times, Failed 107 times)

Stack Traces | 0s run time
error uploading a part: MissingRequiredParameter: Missing required key 'UploadId' in params

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-mdSearch-related-functional-tests branch 2 times, most recently from d86a32a to cebad4c Compare October 22, 2025 13:28
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-versionning-related-functional-tests branch 6 times, most recently from 2ce7329 to 9bdb532 Compare October 28, 2025 08:19
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-mdSearch-related-functional-tests branch 2 times, most recently from 369e90f to 063a9f4 Compare October 28, 2025 14:10
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-mdSearch-related-functional-tests branch from 063a9f4 to 296881d Compare October 28, 2025 14:10
@benzekrimaha benzekrimaha marked this pull request as ready for review October 28, 2025 14:10
} else {
assert.strictEqual(res.data.Versions.length, 0);
if (testResult && typeof testResult === 'object' && testResult.code) {
// This was expected to be an error, but we got success
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// This was expected to be an error, but we got success

}
return s3Client.deleteBucket({ Bucket: bucketName }, done);
});
s3Client.send(new CreateBucketCommand({ Bucket: bucketName }))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you can do convert to async/await

DeleteObjectsCommand,
} = require('@aws-sdk/client-s3');
const s3Client = require('./utils/s3SDK');

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants