Skip to content

Conversation

@benzekrimaha
Copy link
Contributor

@benzekrimaha benzekrimaha commented Dec 5, 2025

Issue: ARSN-524

@benzekrimaha benzekrimaha marked this pull request as ready for review December 5, 2025 17:11
Comment on lines 92 to 96
async deleteIfExists() {
if (this.key === 'externalBackendTestBucket/externalBackendMissingKey') {
return { succeeded: false };
}
return { succeeded: true };
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know how you imagine your futur but you can do :

return { succeeded: this.key !== 'externalBackendTestBucket/externalBackendMissingKey' }

function invalidDnsBucketNameHandler() {
return (req, res) => {
assert(req.headers.host, host);
assert(req.headers.host, host);
Copy link
Contributor

Choose a reason for hiding this comment

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

Indent issue ?

@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.72%. Comparing base (00033b5) to head (aed443f).
⚠️ Report is 9 commits behind head on development/8.3.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           development/8.3    #2579      +/-   ##
===================================================
+ Coverage            71.01%   72.72%   +1.71%     
===================================================
  Files                  221      221              
  Lines                18176    18070     -106     
  Branches              3773     3737      -36     
===================================================
+ Hits                 12908    13142     +234     
+ Misses                5263     4923     -340     
  Partials                 5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-514 branch 2 times, most recently from ed14c60 to b978085 Compare December 16, 2025 16:17
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-514 branch 2 times, most recently from e36f845 to e66bc75 Compare December 19, 2025 10:31
@SylvainSenechal SylvainSenechal force-pushed the improvement/ARSN-514 branch 2 times, most recently from 6e00a70 to 00033b5 Compare January 7, 2026 18:17
Base automatically changed from improvement/ARSN-514 to development/8.3 January 7, 2026 18:32
@bert-e
Copy link
Contributor

bert-e commented Jan 7, 2026

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.

@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-524 branch 2 times, most recently from 86bcf63 to bf05ffe Compare January 12, 2026 15:22
@bert-e
Copy link
Contributor

bert-e commented Jan 12, 2026

Waiting for approval

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

  • the author

  • 2 peers

@scality scality deleted a comment from bert-e Jan 12, 2026
@francoisferrand francoisferrand marked this pull request as draft January 13, 2026 12:27
This commit aims to improve code clarity by renaming
methods and files related to GCP APIs
to more descriptive names.
The changes include renaming multipart upload methods
and object tagging methods to better reflect their
functionality.
Enhancing code readability and maintainability.
Issue: ARSN-524
This commit remove unused methods from the GcpClient class
as they are not needed anymore.
Issue: ARSN-524
This commit tackles both the removal of the command wrapper functions in the GcpService
as they add no additional functonality, calling the send method directly is a better approach.
the class name was also updated to GcpService to better reflect its purpose and avoid
confusion with the client.
Issue: ARSN-524
Some multipart upload tests were missing coverage for ExternalClients.
This commit adds those missing tests.
Issue: ARSN-524
With the refactor of GCP service within the migration from
aws-sdk v2 to v3, we noticed that some code paths were not covered by unit tests.
this commit adds tests to cover helper functions and mpu/object tagging related functions.
Issue: ARSN-524
@benzekrimaha benzekrimaha marked this pull request as ready for review January 13, 2026 14:58
}

Object.assign(GcpClient.prototype, gcpApis);
Object.assign(GcpService.prototype, gcpApis);
Copy link
Contributor

Choose a reason for hiding this comment

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

can we move this to the constructor of GcpService, to make it easier to notice?

(or even rewrite this without Object.assign : it was done to "extend" the generated class, but now the class is manually written: so we may more cleanly add the methods?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Keeping GcpApis separate avoids a noisy/huge diff and makes it easier to iterate on these highly customized APIs in isolation. I kept the Object.assign(GcpService.prototype, gcpApis) at module scope (not in the constructor) because putting it in the constructor would re-run for every new GcpService(), repeatedly overwriting prototype methods.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah not much we can do here. Maybe replace this line with something explicit

Suggested change
Object.assign(GcpService.prototype, gcpApis);
GcpClient.prototype.abortMultipartUpload = gcpApis.abortMultipartUpload;
GcpClient.prototype.completeMultipartUpload = gcpApis.completeMultipartUpload;
GcpClient.prototype.createMultipartUpload = gcpApis.createMultipartUpload;
...
...
...

This way it won't be 'hidden' into a single line, but not sure its super nice either

Copy link
Contributor

Choose a reason for hiding this comment

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

putting it in the constructor would re-run for every new GcpService(), repeatedly overwriting prototype methods.

   constructor() {
     Object.assign(this, gcpApis);
   }

putting it in the constructor would not overwrite prototype method: only the "current" object's methods.
Would that be an issue?

};
}

async deleteIfExists() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see this function being used anywhere 🤔 except once in code that was already existing in azureClient test. How come the test didn't fail without this function

});

it(`${backend.name} delete() should delete the requested key without error`, async () => {
const key = 'externalBackendTestKey';
Copy link
Contributor

@SylvainSenechal SylvainSenechal Jan 15, 2026

Choose a reason for hiding this comment

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

nit: seems these key/bucket names are important as they are also hardcoded in the dummy service, but we could consider using constants dummyKey/dummyBucketName defined in dummy service and importing them

Copy link
Contributor

@francoisferrand francoisferrand left a comment

Choose a reason for hiding this comment

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

with this, are we ready for 8.3.0 release?

  • if we don't have anything, should bump in this PR so we can immediately release
  • or align with @DarkIsDude to release once #2581 is merged (on 8.2, with 8.3 waterflow), merge this one "as is", and do the bump #2581.

@benzekrimaha
Copy link
Contributor Author

/approve

@bert-e
Copy link
Contributor

bert-e commented Jan 16, 2026

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/8.3

The following branches have NOT changed:

  • development/6.4
  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.1
  • development/8.2

Please check the status of the associated issue ARSN-524.

Goodbye benzekrimaha.

The following options are set: approve

@bert-e bert-e merged commit aed443f into development/8.3 Jan 16, 2026
7 checks passed
@bert-e bert-e deleted the improvement/ARSN-524 branch January 16, 2026 14:22
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.

6 participants