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

[Tests] update expected value for percentile ranks #1822

Merged

Conversation

kavilla
Copy link
Member

@kavilla kavilla commented Jun 29, 2022

Description

Origin:
opensearch-project/OpenSearch#3634

The previous value was actually incorrect after OpenSearch bumped t-digest
the value is now the correct value.

Signed-off-by: Kawika Avilla kavilla414@gmail.com

Issues Resolved

#1821

Check List

  • New functionality includes testing.
    • All tests pass
      • yarn test:jest
      • yarn test:jest_integration
      • yarn test:ftr
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

manasvinibs
manasvinibs previously approved these changes Jun 29, 2022
Copy link
Member

@manasvinibs manasvinibs left a comment

Choose a reason for hiding this comment

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

Thanks @kavilla for the fix! LGTM

mihirsoni
mihirsoni previously approved these changes Jun 29, 2022
joshuarrrr
joshuarrrr previously approved these changes Jun 29, 2022
@joshuarrrr
Copy link
Member

Is this a 3.0 only change, or will we backport?

@kaddy645
Copy link
Contributor

kaddy645 commented Jun 29, 2022

Looks like one more was failing yesterday ! metric chart should show Percentiles: should we also update values for it ?

expect(percentileRankBytes).to.eql(metricValue);

@kavilla kavilla dismissed stale reviews from joshuarrrr, mihirsoni, and manasvinibs via 90b9364 June 29, 2022 22:06
@codecov-commenter
Copy link

codecov-commenter commented Jun 29, 2022

Codecov Report

Merging #1822 (4590a93) into main (e7362f9) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1822   +/-   ##
=======================================
  Coverage   67.50%   67.51%           
=======================================
  Files        3074     3074           
  Lines       59127    59127           
  Branches     8988     8988           
=======================================
+ Hits        39915    39917    +2     
+ Misses      17028    17027    -1     
+ Partials     2184     2183    -1     
Impacted Files Coverage Δ
...ic/application/models/sense_editor/sense_editor.ts 64.88% <0.00%> (+0.88%) ⬆️

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 e7362f9...4590a93. Read the comment docs.

@kavilla
Copy link
Member Author

kavilla commented Jun 29, 2022

Looks like one more was failing yesterday ! metric chart should show Percentiles: should we also update values for it ?

expect(percentileRankBytes).to.eql(metricValue);

Updated!

@kavilla
Copy link
Member Author

kavilla commented Jun 29, 2022

Is this a 3.0 only change, or will we backport?

This is expected to only be a 3.0 change since this was not backported: opensearch-project/OpenSearch#3634

@kaddy645
Copy link
Contributor

kaddy645 commented Jun 29, 2022

it might fail again! I see more missing values. can we run/test these functional tests locally ?

expected

 [ '2,147,483,648',
               │   '1st percentile of machine.ram',
               │   '3,221,225,472',
               │   '5th percentile of machine.ram',
               │   '7,516,192,768',
               │   '25th percentile of machine.ram',
               │   '12,884,901,888',
               │   '50th percentile of machine.ram',
               │   '18,253,611,008',
               │   '75th percentile of machine.ram',
               │   '32,212,254,720',
               │   '95th percentile of machine.ram',
               │   '32,212,254,720',
               │   '99th percentile of machine.ram' ] 
               
              
                '2,147,483,648',
               │   '1st percentile of machine.ram',
               │   '3,221,225,472',
               │   '5th percentile of machine.ram',
               │   '7,516,192,768',
               │   '25th percentile of machine.ram',
               │   '12,884,901,888',
               │   '50th percentile of machine.ram',
               │   '18,179,771,104.788',
               │   '75th percentile of machine.ram',
               │   '31,704,016,923.307',
               │   '95th percentile of machine.ram',
               │   '32,212,254,720',
               │   '99th percentile of machine.ram' ]
               

Origin:
opensearch-project/OpenSearch#3634

The previous value was actually incorrect after OpenSearch bumped t-digest
the value is now the correct value.

Issue:
opensearch-project#1821

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
@kavilla kavilla force-pushed the avillk/percentiles_test_failure branch from 130e3eb to 3c06704 Compare June 29, 2022 23:08
@kavilla
Copy link
Member Author

kavilla commented Jun 30, 2022

it might fail again! I see more missing values. can we run/test these functional tests locally ?

expected

 [ '2,147,483,648',
               │   '1st percentile of machine.ram',
               │   '3,221,225,472',
               │   '5th percentile of machine.ram',
               │   '7,516,192,768',
               │   '25th percentile of machine.ram',
               │   '12,884,901,888',
               │   '50th percentile of machine.ram',
               │   '18,253,611,008',
               │   '75th percentile of machine.ram',
               │   '32,212,254,720',
               │   '95th percentile of machine.ram',
               │   '32,212,254,720',
               │   '99th percentile of machine.ram' ] 
               
              
                '2,147,483,648',
               │   '1st percentile of machine.ram',
               │   '3,221,225,472',
               │   '5th percentile of machine.ram',
               │   '7,516,192,768',
               │   '25th percentile of machine.ram',
               │   '12,884,901,888',
               │   '50th percentile of machine.ram',
               │   '18,179,771,104.788',
               │   '75th percentile of machine.ram',
               │   '31,704,016,923.307',
               │   '95th percentile of machine.ram',
               │   '32,212,254,720',
               │   '99th percentile of machine.ram' ]
               

Yeah I might have to skip this test now and re-open the issue on OpenSearch. The values returned are flaky.

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
@kavilla kavilla merged commit a9984f6 into opensearch-project:main Jun 30, 2022
@kavilla kavilla linked an issue Jul 1, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG][Tests] should show Percentile Ranks test failure
6 participants