Skip to content

Conversation

@benzekrimaha
Copy link
Contributor

@benzekrimaha benzekrimaha commented Oct 27, 2025

Issue: CLDSRV-724

@bert-e
Copy link
Contributor

bert-e commented Oct 27, 2025

Hello benzekrimaha,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@bert-e
Copy link
Contributor

bert-e commented Oct 27, 2025

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

@benzekrimaha benzekrimaha changed the base branch from development/9.1 to improvement/CLDSRV-724-object-related-functional-tests October 27, 2025 16:40
@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.35%. Comparing base (046c9a7) to head (84669aa).
⚠️ Report is 186 commits behind head on improvement/CLDSRV-724-object-related-functional-tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph
see 73 files with indirect coverage changes

@@                                    Coverage Diff                                     @@
##           improvement/CLDSRV-724-object-related-functional-tests    #5988      +/-   ##
==========================================================================================
+ Coverage                                                   77.51%   84.35%   +6.83%     
==========================================================================================
  Files                                                         191      204      +13     
  Lines                                                       12233    12928     +695     
==========================================================================================
+ Hits                                                         9483    10906    +1423     
+ Misses                                                       2750     2022     -728     
Flag Coverage Δ
quota-tests ?
quota-tests-inflights ?
unit 69.92% <ø> (+1.59%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-bucket-related-functional-tests branch 3 times, most recently from 834eefe to 92f36a8 Compare October 28, 2025 06:43
@benzekrimaha benzekrimaha marked this pull request as ready for review October 28, 2025 06:43
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-object-related-functional-tests branch from c56ac68 to 06547e0 Compare October 28, 2025 06:56
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-bucket-related-functional-tests branch from 92f36a8 to c1fb5b5 Compare October 28, 2025 06:58
.then(() => awsRequest(auth, ListObjectsV2Command, { Bucket: testBucket }))
.then(() => done(new Error('Expected failure')))
.catch(cbWithError(done));
// Don't return the promise!
Copy link

Choose a reason for hiding this comment

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

Suggested change
// Don't return the promise!

Copy link
Contributor

Choose a reason for hiding this comment

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

up

Comment on lines +53 to +54
// Use unique bucket name for each test to avoid conflicts
testBucketName = `${bucketName}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
Copy link

Choose a reason for hiding this comment

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

Could probably be a helper function later shared with all tests?


}
});
Copy link

Choose a reason for hiding this comment

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

Suggested change

const [pathBase, queryString] = path.split('?');
const query = queryString ? Object.fromEntries(new URLSearchParams(queryString)) : {};

// Create HTTP request (mimics AWS.HttpRequest with v2-like endpoint structure)
Copy link

Choose a reason for hiding this comment

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

Suggested change
// Create HTTP request (mimics AWS.HttpRequest with v2-like endpoint structure)
// Create HTTP request

Comment on lines +60 to +63
// Rename 'authorization' to 'Authorization'
if (signedRequest.headers.authorization) {
signedRequest.headers.Authorization = signedRequest.headers.authorization;
delete signedRequest.headers.authorization;
Copy link

Choose a reason for hiding this comment

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

Is this needed? in node the headers are always lowercased

@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-object-related-functional-tests branch from 06547e0 to 1166011 Compare December 4, 2025 06:10
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-bucket-related-functional-tests branch 3 times, most recently from 0f033a6 to 3e2bdfc Compare December 4, 2025 06:33
Copy link
Contributor

@DarkIsDude DarkIsDude left a comment

Choose a reason for hiding this comment

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

Congrats again 👏

Comment on lines +35 to +43
// Create unsigned client
const unsignedClient = new BucketUtility('default', {
...sigCfg,
credentials: { accessKeyId: '', secretAccessKey: '' },
forcePathStyle: true,
signer: { sign: async request => request },
});

// Replace awsAuthMiddleware with a no-op middleware to skip signing
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
// Create unsigned client
const unsignedClient = new BucketUtility('default', {
...sigCfg,
credentials: { accessKeyId: '', secretAccessKey: '' },
forcePathStyle: true,
signer: { sign: async request => request },
});
// Replace awsAuthMiddleware with a no-op middleware to skip signing
const unsignedClient = new BucketUtility('default', {
...sigCfg,
credentials: { accessKeyId: '', secretAccessKey: '' },
forcePathStyle: true,
signer: { sign: async request => request },
});

.then(() => awsRequest(auth, ListObjectsV2Command, { Bucket: testBucket }))
.then(() => done(new Error('Expected failure')))
.catch(cbWithError(done));
// Don't return the promise!
Copy link
Contributor

Choose a reason for hiding this comment

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

up

'getObject': GetObjectCommand,
'putObject': PutObjectCommand,
};
const CommandCtor = commandMap[operation];
Copy link
Contributor

Choose a reason for hiding this comment

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

CommandCtor what does it mean ?

Copy link
Contributor

Choose a reason for hiding this comment

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

ia said commandConstructor, but i also didnt find it myself

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is just a diminutif for commandConstructor, used later on in this code

Expiration: { Days: 1 },
ID: 'test-id',
Prefix: '',
Status: 'Enabled',
Copy link
Contributor

Choose a reason for hiding this comment

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

Transitions and nunCurrentVersions transitions are undefined instead of [], right ?

Copy link
Contributor Author

@benzekrimaha benzekrimaha Dec 11, 2025

Choose a reason for hiding this comment

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

yes that's why they're not here the sdk v3 no longer returns the fields when undefined, if ever present I did the adjustment to not have to extend the changes even more

const res = await bucketUtil.s3.send(new CreateBucketCommand({
Bucket: testBucketName,
CreateBucketConfiguration: {
LocationConstraint: 'scality-us-west-1',
Copy link
Contributor

Choose a reason for hiding this comment

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

Did something failed with the old location constraint ? Is it related to the comment above ?

});
});

// NoncurrentVersionTransitions not implemented
Copy link
Contributor

Choose a reason for hiding this comment

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

it's a bit weird that you removed the comment, but the test is still skipped. Is it implemented and needs to be tested now ?

ID: 'id2',
Status: 'Enabled',
Prefix: '',
Expiration: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you give some context about this changes, Expiration got removed. Also I feel like some tests were removed, or some of them renamed, its a bit hard to track the diff, sometimes the Days parameter is changed from 0 to 1, but sometimes its not changes

if (err) {
done(err, data);
}
/* generating different prefixes every x > STREAK_LENGTH
Copy link
Contributor

Choose a reason for hiding this comment

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

better to keep this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why ?

Copy link
Contributor

@SylvainSenechal SylvainSenechal left a comment

Choose a reason for hiding this comment

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

only nits and a few questions, but approved alr

@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-object-related-functional-tests branch from e3a5360 to fc23278 Compare December 23, 2025 15:40
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-bucket-related-functional-tests branch from 79eb2ad to 84669aa Compare December 23, 2025 15:44
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.

5 participants