Closed Bug 1520170 Opened 7 years ago Closed 7 years ago

Add support for renaming a test or subtest

Categories

(Tree Management :: Perfherder, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davehunt, Assigned: igoldan)

References

Details

Attachments

(1 file)

In bug 1520168 we would like to rename tests to improve clarity of what is measured. In bug 1517512 long test/subtest names are causing UX issues. Let's explore how we can support renaming tests for data that already exists in Perfherder without losing the ability to alert on regressions/improvements that occur between the test's old and new names.

:igoldan could you look into this? I don't think it needs to be a polished solution as I don't expect this to be something we'll need to do often. Simply documenting manual steps to follow would be enough.

From IRC:

<davehunt> igoldan: what's the impact of changing a test name in data submitted to perfherder?
<davehunt> would it prevent us detecting regressions for that test/subtest
<igoldan> yes
<davehunt> until there is enough new data
<igoldan> that's right
<davehunt> okay, any way around that?
<igoldan> not sure; maybe duplicate the data?
<igoldan> and after a couple of days turn of the data for the old test name?

Flags: needinfo?(igoldan)
Blocks: 1520168

You could create a management command to re-assign the datums to the new signature id.

In django speak, this operation would look like this:

PerformanceDatum.objects.filter(signature_id=1234).update(signature_id=5678)

It should be pretty fast.

Blocks: 1451860
Blocks: 1520417

(In reply to William Lachance (:wlach) (use needinfo!) from comment #2)

You could create a management command to re-assign the datums to the new signature id.

In django speak, this operation would look like this:

PerformanceDatum.objects.filter(signature_id=1234).update(signature_id=5678)

It should be pretty fast.

I guess we'll use this command directly on production, right? Basically, provide :edmorley the signature ids and ask him to run it, once we need to do the rename?

Putting something like this in the UI can be disastrous. At least without proper authorization rights.

Flags: needinfo?(igoldan)

(In reply to Ionuț Goldan [:igoldan], Performance Sheriffing from comment #3)

I guess we'll use this command directly on production, right? Basically, provide :edmorley the signature ids and ask him to run it, once we need to do the rename?

Putting something like this in the UI can be disastrous. At least without proper authorization rights.

Yeah definitely, this should be a management command run by an admin, not something exposed via the UI.

We should be doing the same for the PerformanceAlerts:

PerformanceDatum.objects.filter(signature_id=1234).update(signature_id=5678)
Assignee: nobody → igoldan
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Depends on: 1523306
Blocks: 1517512
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: