[#88] min aggregator bug fixed, tests added #164

Merged
fyrchik merged 2 commits from AndrewDanilin/frostfs-sdk-go:88-fix_min_aggregator_and_add_tests_for_them into master 2023-10-03 07:05:04 +00:00
Contributor
No description provided.
Member

It is a common practice to write commit message imperatively. Could you add a commit sign-off like a Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com> - we have CI step which is failed.
Details here https://git.frostfs.info/TrueCloudLab/frostfs-sdk-go/actions/runs/327/jobs/0

It is a common practice to write commit message imperatively. Could you add a commit sign-off like a `Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>` - we have CI step which is failed. Details here https://git.frostfs.info/TrueCloudLab/frostfs-sdk-go/actions/runs/327/jobs/0
AndrewDanilin force-pushed 88-fix_min_aggregator_and_add_tests_for_them from 820a301172 to b8a0444ddd 2023-09-15 11:25:58 +00:00 Compare
Author
Contributor

Done!

> Done!
AndrewDanilin changed title from WIP: [#88] min aggregator bug fixed, tests added to [#88] min aggregator bug fixed, tests added 2023-09-15 16:32:03 +00:00
AndrewDanilin changed title from [#88] min aggregator bug fixed, tests added to [#88] min aggregator bug fixed, tests added 2023-09-15 16:32:39 +00:00
fyrchik requested changes 2023-09-15 16:49:42 +00:00
fyrchik left a comment
Owner
  1. Tests are failing, please take a look at CI
  2. Could you prefix the commit with netmap: -- like others in this repo, this would make looking at history much easier.
1. Tests are failing, please take a look at CI 2. Could you prefix the commit with `netmap: ` -- like others in this repo, this would make looking at history much easier.
@ -24,3 +24,3 @@
minAgg struct {
min float64
min *float64
Owner

What about having a bool field like minFound bool? (with a meaning minFound == true if and only if a.min != nil in the current implementation.
Your solution is correct, however it allocates (didn't check, but it should). We execute this routine on every operation with an object, so no allocations would be nice here.

What about having a bool field like `minFound bool`? (with a meaning `minFound == true` if and only if `a.min != nil` in the current implementation. Your solution is correct, however it allocates (didn't check, but it should). We execute this routine on every operation with an object, so no allocations would be nice here.
Author
Contributor

Good advice, I'll change it.

Good advice, I'll change it.
Owner

Also, commit message should start with an imperative: not ... fixed, but fix ...

Also, commit message should start with an imperative: not `... fixed`, but `fix ...`
fyrchik requested review from storage-core-committers 2023-09-15 16:54:58 +00:00
fyrchik requested review from storage-core-developers 2023-09-15 16:54:59 +00:00
fyrchik requested review from storage-services-committers 2023-09-15 16:55:00 +00:00
fyrchik requested review from storage-services-developers 2023-09-15 16:55:00 +00:00
AndrewDanilin force-pushed 88-fix_min_aggregator_and_add_tests_for_them from b8a0444ddd to c8d82dae38 2023-09-16 13:56:42 +00:00 Compare
AndrewDanilin force-pushed 88-fix_min_aggregator_and_add_tests_for_them from c8d82dae38 to 5f8e9917ee 2023-09-16 14:00:28 +00:00 Compare
AndrewDanilin force-pushed 88-fix_min_aggregator_and_add_tests_for_them from c352ec1c93 to 5e51e7dcae 2023-09-16 14:17:39 +00:00 Compare
AndrewDanilin force-pushed 88-fix_min_aggregator_and_add_tests_for_them from 5e51e7dcae to c0780510aa 2023-09-16 14:33:55 +00:00 Compare
aarifullin approved these changes 2023-09-19 08:49:20 +00:00
AndrewDanilin requested review from fyrchik 2023-09-21 12:33:00 +00:00
fyrchik approved these changes 2023-10-02 12:57:15 +00:00
acid-ant approved these changes 2023-10-02 13:06:24 +00:00
fyrchik merged commit d71a0e0755 into master 2023-10-03 07:05:04 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#164
No description provided.