Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement/arsn 423 bump dependencies #2266

Open
wants to merge 9 commits into
base: development/8.2
Choose a base branch
from

Conversation

benzekrimaha
Copy link
Contributor

@benzekrimaha benzekrimaha commented Oct 21, 2024

Issue : ARSN-423

@bert-e
Copy link
Contributor

bert-e commented Oct 21, 2024

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.

@scality scality deleted a comment from bert-e Oct 21, 2024
@bert-e
Copy link
Contributor

bert-e commented Oct 21, 2024

Conflict

There is a conflict between your branch improvement/ARSN-423-bump-dependencies and the
destination branch development/8.2.

Please resolve the conflict on the feature branch (improvement/ARSN-423-bump-dependencies).

git fetch && \
git checkout origin/improvement/ARSN-423-bump-dependencies && \
git merge origin/development/8.2

Resolve merge conflicts and commit

git push origin HEAD:improvement/ARSN-423-bump-dependencies

@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch from 57632be to 7cfe8b2 Compare October 21, 2024 15:34
@bert-e
Copy link
Contributor

bert-e commented Oct 21, 2024

Waiting for approval

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

  • the author

  • 2 peers

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 69.96700% with 91 lines in your changes missing coverage. Please review.

Project coverage is 66.42%. Comparing base (81ee00a) to head (44ed300).

Files with missing lines Patch % Lines
lib/policyEvaluator/RequestContext.ts 55.76% 23 Missing ⚠️
lib/patches/locationConstraints.ts 81.81% 10 Missing ⚠️
lib/auth/backends/ChainBackend.ts 27.27% 8 Missing ⚠️
lib/network/kmsAWS/Client.ts 71.42% 8 Missing ⚠️
lib/storage/metadata/mongoclient/LogConsumer.js 12.50% 7 Missing ⚠️
lib/s3routes/routesUtils.ts 0.00% 5 Missing ⚠️
lib/metrics/RedisClient.ts 0.00% 4 Missing ⚠️
lib/s3middleware/azureHelpers/mpuUtils.ts 0.00% 4 Missing ⚠️
lib/auth/auth.ts 57.14% 3 Missing ⚠️
lib/clustering/ClusterRPC.ts 0.00% 3 Missing ⚠️
... and 12 more
Additional details and impacted files
@@                 Coverage Diff                 @@
##           development/8.2    #2266      +/-   ##
===================================================
+ Coverage            66.28%   66.42%   +0.14%     
===================================================
  Files                  215      215              
  Lines                17327    17342      +15     
  Branches              3526     3584      +58     
===================================================
+ Hits                 11485    11520      +35     
+ Misses                5827     5816      -11     
+ Partials                15        6       -9     

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

@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch 3 times, most recently from 75aab28 to 751140a Compare October 22, 2024 07:18
@benzekrimaha benzekrimaha marked this pull request as ready for review October 22, 2024 07:18
lib/s3middleware/processMpuParts.ts Outdated Show resolved Hide resolved
lib/policyEvaluator/utils/wildcards.ts Outdated Show resolved Hide resolved
@@ -279,9 +277,9 @@ export function convertConditionOperator(operator: string): boolean {
} else {
return policyValRegex(key);
}
return true;
Copy link
Contributor

@williamlardier williamlardier Oct 22, 2024

Choose a reason for hiding this comment

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

I think we should return undefined here, because if we reach this stage, it means the "key" was an array and a prefix that is unknown...

tests/unit/algos/list/delimiterMaster.spec.ts Outdated Show resolved Hide resolved
tests/functional/clustering/ClusterRPC.spec.js Outdated Show resolved Hide resolved
lib/models/ObjectMDArchive.ts Outdated Show resolved Hide resolved
lib/models/ObjectMDAmzRestore.ts Outdated Show resolved Hide resolved
lib/models/LifecycleConfiguration.ts Outdated Show resolved Hide resolved
lib/models/LifecycleConfiguration.ts Outdated Show resolved Hide resolved
lib/algos/list/delimiter.ts Outdated Show resolved Hide resolved
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch 2 times, most recently from 07d79a7 to cb09de6 Compare October 22, 2024 08:23
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch from 50b1389 to c175969 Compare November 19, 2024 18:20
@scality scality deleted a comment from bert-e Nov 19, 2024
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch from b67e160 to 9cc8a28 Compare November 19, 2024 19:14
@bert-e
Copy link
Contributor

bert-e commented Nov 19, 2024

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 Nov 19, 2024
@scality scality deleted a comment from bert-e Nov 19, 2024
@scality scality deleted a comment from bert-e Nov 19, 2024
@scality scality deleted a comment from bert-e Nov 19, 2024
@benzekrimaha
Copy link
Contributor Author

/approve

@benzekrimaha
Copy link
Contributor Author

/wait

@bert-e
Copy link
Contributor

bert-e commented Nov 19, 2024

Waiting for approval

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

  • the author

  • 2 peers

The following options are set: approve

package.json Outdated Show resolved Hide resolved
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch from 19e6264 to 9eafa33 Compare November 28, 2024 15:46
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch from 9eafa33 to ba7ade2 Compare November 28, 2024 16:07
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch 2 times, most recently from e4931a8 to 7e142a1 Compare November 28, 2024 18:46
{ error: err });
return done(err);
}
useUnifiedTopology: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be needed, I guess this one is deprecated and at least enabled by default, can we check?

Copy link
Contributor

Choose a reason for hiding this comment

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

reopening because it's still there

(see mongodb/node-mongodb-native#3792)

Comment on lines +150 to 152
`<Code>${error.message}</Code>`,
`<Message>${error.description}</Message>`,
);
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this was changed already in 8.1, you can rebase your branch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The branch has been rebased

lib/network/rpc/sio-stream.ts Outdated Show resolved Hide resolved
lib/network/rpc/sio-stream.ts Outdated Show resolved Hide resolved
tests/unit/policyEvaluator/RequestContext.spec.js Outdated Show resolved Hide resolved
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch from 7e142a1 to e293f89 Compare December 6, 2024 11:14
README.md Outdated
Comment on lines 60 to 65
![Public Build Status][badgepub]
![Private Build Status][badgepriv]

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 for adding badges, but these badges do not seem relevant:

[badgepub]: https://circleci.com/gh/scality/Arsenal.svg?style=svg
[badgepriv]: http://ci.ironmann.io/gh/scality/Arsenal.svg?style=svg&circle-token=c3d2570682cba6763a97ea0bc87521941413d75c

Either do not add the badges, or actually fix them, based on gha and codecov.
Not sure what the "private build status" is.

tsconfig.json Outdated Show resolved Hide resolved
benzekrimaha and others added 8 commits January 2, 2025 11:36
In this commit the code has been updated to match the new
uuid require based on the documentation here : https://www.npmjs.com/package/uuid
timestamp format has been updated as well from new Timestamp(1, 1651144629)
to new Timestamp({ t: 1651144629 , i: 1 }), the remaining changes are
lint fixups ( please note that the indentation has been fixed as well automatically
using lint --fix)
Issue: ARSN-423
In this commit we fix the tests that were failing after the dependencies bumps.
Issue: ARSN-423
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch 5 times, most recently from ad32261 to 552b601 Compare January 7, 2025 10:54
@benzekrimaha benzekrimaha force-pushed the improvement/ARSN-423-bump-dependencies branch from 3096ffe to 44ed300 Compare January 7, 2025 10:56
{ error: err });
return done(err);
}
useUnifiedTopology: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

reopening because it's still there

(see mongodb/node-mongodb-native#3792)

@@ -477,6 +479,8 @@ class MongoClientInterface {
const m = this.getCollection(METASTORE);
m.findOneAndDelete({
_id: bucketName,
} , {
includeResultMetadata: true
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 others)

Suggested change
includeResultMetadata: true
includeResultMetadata: true,

upsert: true,
}).then(res => {
},).then(res => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure the comma is expected here

@@ -18,8 +18,7 @@ export function getClientIp(request: IncomingMessage, s3config?: S3Config): stri
const requestConfig = s3config?.requests;
const remoteAddress = request.socket.remoteAddress;
// TODO What to do if clientIp === undefined ?
const clientIp = (requestConfig ? remoteAddress : request.headers['x-forwarded-for'] ||
remoteAddress)?.toString() ?? '';
const clientIp = remoteAddress?.toString() ?? '';
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be already in 8.1 and 8.2, maybe the PR branch is not up to date

Copy link
Contributor

Choose a reason for hiding this comment

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

"lint_md": "mdlint $(git ls-files '*.md')",
"lint_yml": "yamllint $(git ls-files '*.yml')",
"test": "jest tests/unit",
"test": "export NODE_OPTIONS=\"--tls-max-v1.2\" && jest tests/unit --detectOpenHandles",
Copy link
Contributor

@williamlardier williamlardier Jan 7, 2025

Choose a reason for hiding this comment

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

Re-opening because I see it's still there as well, and we should support TLS 1.3 today... if we don't support it then we should create a ticket to work on before merging this PR

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