Skip to content

Conversation

benzekrimaha
Copy link
Contributor

Issue: CLDSRV-724

@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-multiple-backend-tests branch from 1769d66 to 4619bab Compare September 30, 2025 12:50
@scality scality deleted a comment from codecov bot Sep 30, 2025
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.07%. Comparing base (0bd90df) to head (1c923f3).
⚠️ Report is 1 commits behind head on improvement/CLDSRV-724-kms-tests-migration.

Additional details and impacted files

Impacted file tree graph
see 13 files with indirect coverage changes

@@                              Coverage Diff                               @@
##           improvement/CLDSRV-724-kms-tests-migration    #5960      +/-   ##
==============================================================================
+ Coverage                                       71.77%   74.07%   +2.30%     
==============================================================================
  Files                                             188      188              
  Lines                                           12130    12130              
==============================================================================
+ Hits                                             8706     8985     +279     
+ Misses                                           3424     3145     -279     
Flag Coverage Δ
ceph-backend-test 43.44% <ø> (+23.83%) ⬆️
file-ft-tests 27.43% <ø> (+5.31%) ⬆️
kmip-ft-tests 27.00% <ø> (ø)
mongo-v0-ft-tests 30.32% <ø> (+2.38%) ⬆️
mongo-v1-ft-tests 30.32% <ø> (+2.38%) ⬆️
multiple-backend 34.05% <ø> (+14.41%) ⬆️
sur-tests 34.52% <ø> (-0.83%) ⬇️
sur-tests-inflights 36.46% <ø> (-0.01%) ⬇️
unit 68.08% <ø> (ø)
utapi-v2-tests 33.35% <ø> (ø)

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-multiple-backend-tests branch from 4619bab to 76ab4cc Compare September 30, 2025 12:54
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-multiple-backend-tests branch from 76ab4cc to fc9608c Compare September 30, 2025 12:58
Copy link
Contributor

@williamlardier williamlardier left a comment

Choose a reason for hiding this comment

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

Some quick comments as the pr was listed for review (but still a draft)
otherwise lgtm, some patterns could be simplified, when calling the next functions (by removing the {} or the =>)

Comment on lines 94 to 96
throw new Error('Expected NoSuchKey error but got success');
} catch (err) {
assert.strictEqual(err.code, 'NoSuchKey');
Copy link
Contributor

Choose a reason for hiding this comment

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

I think as you throw in the try, that we will enter the assert of the catch and fail the check, then we loose the inital error you thrown, and we'll see an asert failure with "undefined" that is not "NoSuchKey", can be misleading

(same other places)

Comment on lines 74 to 76
.then(() => {
done(new Error('Expected failure but 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
.then(() => {
done(new Error('Expected failure but got success'));
})
.then(() => done(new Error('Expected failure but got success')))

Comment on lines -145 to -146
it('should delete object from AWS location with bucketMatch set to ' +
'false', done => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this test was removed, is this expected?

@benzekrimaha benzekrimaha marked this pull request as ready for review October 2, 2025 11:31
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-multiple-backend-tests branch from e031412 to 1c923f3 Compare October 9, 2025 15:35
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.

2 participants