Open Bug 2055569 Opened 1 month ago Updated 5 hours ago

Clean up perfcompare api endpoint for Mann-Whitney-U

Categories

(Testing :: PerfCompare, task)

task

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: kala, Assigned: gopar)

References

(Depends on 1 open bug)

Details

(Whiteboard: [pcf])

PerfCompare backend (https://github.com/mozilla/treeherder) has fields that aren't used in the frontend, so it needs some cleanup. Mostly includes fields from the MannWhitneyResultsItem like kde_new, kde_base. We also don't need silverman_kde.

Here are some of my findings (limited to MannWhitneyResultsItem):

Fields not used:
- kde_new
- kde_base
- is_fit_good
- is_significant
- performance_interpretation
- warning_c_delta
- silverman_kde (references to be removed in an upcoming PR)

Fields that are referenced only once in src/components/CompareResults/MannWhitneyCompareMetrics.tsx
and src/__tests__/CompareResults/RevisionRowExpandable.test.tsx:

  • ks_test
  • shapiro_wilk_test_new
  • shapiro_wilk_test_base

can they be removed? Would be rather a small tweak to do so.

Adding comment for request for info

Flags: needinfo?(csevere)
Assignee: nobody → dgopar

I'll get back to you after I've cleaned up those components.

Flags: needinfo?(csevere)
Depends on: 2059493

Hi Gopar,

For now leave the following fields:

ks_test
shapiro_wilk_test_new
shapiro_wilk_test_base

I have a PR up that removes all these unused enpoints, including the silverman_kde flag
https://github.com/mozilla/perfcompare/pull/1079

Flags: needinfo?(dgopar)
Status: NEW → ASSIGNED

Backend PR has been pushed for review as well:
https://github.com/mozilla/treeherder/pull/9794

Flags: needinfo?(dgopar)
You need to log in before you can comment on or make changes to this bug.