Closed
Bug 1330442
Opened 8 years ago
Closed 6 years ago
Add additional testcases for the runnable jobs feature/API
Categories
(Tree Management :: Treeherder, defect, P3)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: emorley, Unassigned)
References
Details
Even after the bustage/testcase in bug 1330015, we then had bug 1330157 occur which shows there is still not enough test coverage.
We should add some more.
I think we also need to more aggressively refuse new features if they have little testing, even if they are from contributors.
Comment 1•8 years ago
|
||
rwood, could you take a look at this? This would seem to fall under the "maintain seta" umbrella. :) The method in question you need to validate is this one:
https://github.com/mozilla/treeherder/blob/master/treeherder/etl/runnable_jobs.py#L120
You can probably simulate a simple decision task response using the responses fixture (git grep for 'responses' inside the test directory).
The test should go in the same place as the one I added previously: tests/webapp/api/test_runnable_jobs_api.py
Flags: needinfo?(rwood)
Comment 2•8 years ago
|
||
FYI I'm making a small change to that test:
https://github.com/mozilla/treeherder/pull/2081/files#diff-dfb7add6afe5260970a94e0cae7fdf61
and the code to allow to call w/o having to pass a decision_task_id:
https://github.com/mozilla/treeherder/pull/2081/files#diff-21690b89ebf4f1dde1eb5aa5a3d258a8
The test change is to avoid having to deal with that TaskCluster before we have a more complex fixture (rather than test_job).
There's also the runnable_jobs_data fixture in here:
https://github.com/mozilla/treeherder/blob/master/tests/seta/conftest.py#L16-L60
Comment 3•8 years ago
|
||
Ok, thanks guys
Assignee: nobody → rwood
Status: NEW → ASSIGNED
Flags: needinfo?(rwood)
Updated•8 years ago
|
Assignee: rwood → nobody
Status: ASSIGNED → NEW
Reporter | ||
Updated•7 years ago
|
Component: Treeherder → Treeherder: Job Triggering & Cancellation
Reporter | ||
Comment 5•7 years ago
|
||
See also bug 1285924 / bug 1254325.
Reporter | ||
Updated•7 years ago
|
Priority: P2 → P3
Reporter | ||
Comment 6•6 years ago
|
||
Wontfix since the runnable jobs handling was moved client side in bug 1494750, so the API will be removed in the future in bug 1513486.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Assignee | ||
Updated•3 years ago
|
Component: Treeherder: Job Triggering & Cancellation → TreeHerder
You need to log in
before you can comment on or make changes to this bug.
Description
•