Skip to content

Conversation

@benzekrimaha
Copy link
Contributor

@benzekrimaha benzekrimaha commented Dec 5, 2025

Issue: ARSN-524

As we can no longer use the Service.defineService
previously used in aws-sdk v2, we have to manually
this commit aims to implement the GCP client
using the new aws-sdk v3 architecture
and migrate the existing code to use it.
Please note that now both the setup and signing
mechanisms had to be re-implemented in the GcpService
file.
Issue: ARSN-514
In this commit several changes were done as aws-sdk v3
happens to be less permissive than v2 in terms of error handling and
stream management. To ensure backward compatibility with existing
functionalities adjustments were made, please refer to
code comments for more details.
Issue: ARSN-514
As the sdk now returns name instead of code for errors,
we need to adapt the error handling accordingly.
Issue: ARSN-514
A security issue was fixed using resolutions in package.json
as the vulnerability is in a transient dependency.
Issue: ARSN-514
This commit aims to add tests for the ExternalClients module
and the GcpService module to ensure their proper functionality
and reliability. The tests target the remaining not tested apis.
The deleteIfExists method is also added to the DummyService
to simulate deletion scenarios in the tests.
Issue: ARSN-524
@benzekrimaha benzekrimaha marked this pull request as ready for review December 5, 2025 17:11
Comment on lines +92 to +97
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 ?

});
});

it('createMultipartUpload should reject missing parameters', done => {
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
it('createMultipartUpload should reject missing parameters', done => {
it('createMultipartUpload should reject if parameters are missing', done => {

Copy link
Contributor

Choose a reason for hiding this comment

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

same for next one

@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (1f00381) to head (6166515).
⚠️ Report is 1 commits behind head on improvement/ARSN-514.

Additional details and impacted files
@@             Coverage Diff              @@
##   improvement/ARSN-514   #2579   +/-   ##
============================================
============================================

☔ 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.

@bert-e
Copy link
Contributor

bert-e commented Jan 7, 2026

Conflict

There is a conflict between your branch improvement/ARSN-524 and the
destination branch development/8.3.

Please resolve the conflict on the feature branch (improvement/ARSN-524).

git fetch && \
git checkout origin/improvement/ARSN-524 && \
git merge origin/development/8.3

Resolve merge conflicts and commit

git push origin HEAD:improvement/ARSN-524

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