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

ft: ARSN-64 sorted set routines #1714

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Conversation

vrancurel
Copy link
Contributor

@vrancurel vrancurel commented Feb 11, 2022

Large sorted sets management routines implemented with array dichotomies.
No particular suitable external module was found.

An Arsenal tag is not needed at this stage.

@bert-e
Copy link
Contributor

bert-e commented Feb 11, 2022

Hello vrancurel,

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.

Status report is not available.

@bert-e
Copy link
Contributor

bert-e commented Feb 11, 2022

Incorrect fix version

The Fix Version/s in issue ARSN-64 contains:

  • None

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 8.1.29

Please check the Fix Version/s of ARSN-64, or the target
branch of this pull request.

@vrancurel vrancurel requested a review from miniscruff February 11, 2022 03:31
@codecov-commenter
Copy link

codecov-commenter commented Feb 11, 2022

Codecov Report

Merging #1714 (90e96c3) into development/8.1 (c95f84e) will increase coverage by 0.17%.
The diff coverage is 91.30%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           development/8.1    #1714      +/-   ##
===================================================
+ Coverage            60.00%   60.17%   +0.17%     
===================================================
  Files                  190      192       +2     
  Lines                12188    12257      +69     
===================================================
+ Hits                  7313     7376      +63     
- Misses                4875     4881       +6     
Impacted Files Coverage Δ
index.js 100.00% <ø> (ø)
lib/algos/set/ArrayUtils.js 91.30% <91.30%> (ø)
lib/algos/set/SortedSet.js 91.30% <91.30%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c95f84e...90e96c3. Read the comment docs.

@vrancurel vrancurel force-pushed the feature/ARSN-64-sorted-set branch from d9692c1 to aec4913 Compare February 11, 2022 03:34
@vrancurel vrancurel force-pushed the feature/ARSN-64-sorted-set branch from aec4913 to a35f50e Compare February 11, 2022 18:34
@@ -0,0 +1,87 @@
function indexOf(arr, value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

might be worth unit testing this function thoroughly (correctness, and in case it has corner cases causing infinite loops etc.) if not completely correct it could be a source of nasty bugs later on

return -1;
}

function indexAtOrBelow(arr, value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@vrancurel vrancurel force-pushed the feature/ARSN-64-sorted-set branch from a35f50e to 90e96c3 Compare February 15, 2022 03:54
Copy link
Contributor

@jonathan-gramain jonathan-gramain left a comment

Choose a reason for hiding this comment

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

I would expect the target branch to be development/7.10 since the RING epic is targeted at 8.5.3.

Other than that + a few tests suggestion, good for me

}
});

it('shall find symmetric difference', () => {
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('shall find symmetric difference', () => {
it('symDiff shall find symmetric difference', () => {


describe('ArrayUtils', () => {
it('indexOf', () => {
const numOps = 10000;
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is definitely useful, I'd also add a 0, 1 and 2-item array test for both indexOf and indexAtOrBelow

@vrancurel vrancurel force-pushed the feature/ARSN-64-sorted-set branch from 90e96c3 to 6050ec1 Compare February 16, 2022 22:10
Large sets management routines implemented with array dichotomies.
No particular suitable external module was found.
@vrancurel vrancurel force-pushed the feature/ARSN-64-sorted-set branch from 6050ec1 to 44f37bd Compare February 16, 2022 22:44
@vrancurel vrancurel changed the base branch from development/8.1 to development/7.10 February 16, 2022 22:44
@scality scality deleted a comment from bert-e Feb 16, 2022
@bert-e
Copy link
Contributor

bert-e commented Feb 16, 2022

Integration data created

I have created the integration data for the additional destination branches.

The following branches will NOT be impacted:

  • development/6.4
  • development/7.4
  • stabilization/7.10.2

Follow integration pull requests if you would like to be notified of
build statuses by email.

@bert-e
Copy link
Contributor

bert-e commented Feb 16, 2022

Waiting for approval

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

  • the author

  • 2 peers

@vrancurel
Copy link
Contributor Author

/approve

@bert-e
Copy link
Contributor

bert-e commented Feb 16, 2022

In the queue

The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.

The changeset will be merged in:

  • ✔️ development/7.10

  • ✔️ development/8.1

The following branches will NOT be impacted:

  • development/6.4
  • development/7.4
  • stabilization/7.10.2

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of the admin team will
contact you to help resolve the matter.

IMPORTANT

Please do not attempt to modify this pull request.

  • Any commit you add on the source branch will trigger a new cycle after the
    current queue is merged.
  • Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of the admin team now.

The following options are set: approve

@bert-e
Copy link
Contributor

bert-e commented Feb 16, 2022

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

  • ✔️ development/7.10

  • ✔️ development/8.1

The following branches have NOT changed:

  • development/6.4
  • development/7.4
  • stabilization/7.10.2

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

Goodbye vrancurel.

@bert-e bert-e merged commit 29bab6f into development/7.10 Feb 16, 2022
@bert-e bert-e deleted the feature/ARSN-64-sorted-set branch February 16, 2022 23:03
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