Closed Bug 1452238 Opened 6 years ago Closed 4 years ago

test_alerts_post doesn't set or test the PerformanceDatum's job_id

Categories

(Tree Management :: Perfherder, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: suyash546, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=py])

Attachments

(1 file)

eslint reported:
tests/webapp/api/test_performance_alerts_api.py:174,18: Unused variable 'job_id' (W0612: unused-variable)

Which refers to:
https://github.com/mozilla/treeherder/blob/7beb3cacc3c846eff2e6524be67a05a265772015/tests/webapp/api/test_performance_alerts_api.py#L174

It looks like `job_id` should be being used, and be passed to PerformanceDatum when creating.

Or else if not, it should be removed from the zip().
Mentor: igoldan
Keywords: good-first-bug
Whiteboard: [lang=py]

The problem is still there, but that piece of code has been moved here.

Hello,

I would like to work on this issue. This is my very first time contributing it would be great if you could redirect me to the documentation and kindly please guide me on how to get started on this. Thank you

Flags: needinfo?(igoldan)

Ganesh, are you still interested in working on this bug? You can find the Treeherder docs here.

Flags: needinfo?(igoldan)
Flags: needinfo?(ganesh292)

Thanks for your reply. Sure I would love to work on ths bug. I have looked at how to fix the issue. I will look at the docs and raise a PR for the same. This would be my first PR ever please do let me know if I should take care of anything

Flags: needinfo?(ganesh292)

I think that passing ds_job_id as job_id would be enough .
Shall I go on proceeding this way

Flags: needinfo?(igoldan)

(In reply to suyash546 from comment #5)

I think that passing ds_job_id as job_id would be enough .
Shall I go on proceeding this way

I don't think that's the best approach. ds_job_id is a deprecated field & the tests should take that into account.

Flags: needinfo?(igoldan)

From what I can see, job ids are nullable, which means they don't have to be provided.
Thus, we should simply remove the mentioning of that job_id from the zip entirely.

Shall I go on to do this

(In reply to suyash546 from comment #8)

Shall I go on to do this

Please do.

Assignee: nobody → suyash546
Priority: P3 → P1

Well done Suyash!

Thanks Armen!!

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: