Closed Bug 1332695 Opened 7 years ago Closed 7 years ago

test_runnable_jobs_api failure

Categories

(Tree Management :: Treeherder: API, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rwood, Assigned: rwood)

Details

Attachments

(1 file)

When running all of the treeherder tests in my local treeherder vagrant environment (py.test tests/ -v), this test fails:
/tests/webapp/api/test_runnable_jobs_api.py
...
tests/webapp/api/test_runnable_jobs_api.py::test_runnable_jobs_api FAILED
...
E       assert {'meta': {'co...id': 1, ...}]} == {'meta': {'cou...id': 1, ...}]}
E         Common items:
E         {'meta': {u'count': 1, u'offset': 0, u'repository': u'test_treeherder_jobs'}}
E         Differing items:
E         {'results': [{'build_architecture': 'x86', 'build_os': 'b2g', 'build_platform': 'b2g-emu-jb', 'build_platform_id': 1, ...}]} != {'results': [{'build_architecture': 'x86', 'build_os': 'b2g', 'build_platform': 'b2g-emu-jb', 'build_platform_id': 1, ...}]}

Note: when running the test on it's own, it passes fine:
py.test tests/webapp/api/test_runnable_jobs_api.py

And when running the set of webapp/api tests, and they all pass:
vagrant ~/treeherder $ py.test tests/webapp/api/ -v
(In reply to Robert Wood [:rwood] from comment #0)
> When running all of the treeherder tests in my local treeherder vagrant
> environment (py.test tests/ -v), this test fails:
> /tests/webapp/api/test_runnable_jobs_api.py
> ...
> tests/webapp/api/test_runnable_jobs_api.py::test_runnable_jobs_api FAILED
> ...
> E       assert {'meta': {'co...id': 1, ...}]} == {'meta': {'cou...id': 1,
> ...}]}
> E         Common items:
> E         {'meta': {u'count': 1, u'offset': 0, u'repository':
> u'test_treeherder_jobs'}}
> E         Differing items:
> E         {'results': [{'build_architecture': 'x86', 'build_os': 'b2g',
> 'build_platform': 'b2g-emu-jb', 'build_platform_id': 1, ...}]} !=
> {'results': [{'build_architecture': 'x86', 'build_os': 'b2g',
> 'build_platform': 'b2g-emu-jb', 'build_platform_id': 1, ...}]}
> 
> Note: when running the test on it's own, it passes fine:
> py.test tests/webapp/api/test_runnable_jobs_api.py
> 
> And when running the set of webapp/api tests, and they all pass:
> vagrant ~/treeherder $ py.test tests/webapp/api/ -v

What else normally runs before test_runnable_jobs? It might be something in e.g. `tests/etl` that's causing the problem.
Yep exactly, I just narrowed it down, its def something in tests/etl
vagrant ~/treeherder$ py.test tests/etl/test_job_ingestion.py tests/webapp/api/test_runnable_jobs_api.py -v

Causes the failure
I *believe* it's this test case in tests/etl/test_job_ingestion.py

def test_ingest_job_with_updated_job_group(test_repository, failure_classifications,
                                           sample_data, mock_log_parser,
                                           result_set_stored):
Assignee: nobody → rwood
Status: NEW → ASSIGNED
Attachment #8828940 - Flags: review?(wlachance)
Comment on attachment 8828940 [details] [review]
[treeherder] rwood-moz:bug1332695 > mozilla:master

r+ for second iteration
Attachment #8828940 - Flags: review?(wlachance) → review+
Status: ASSIGNED → RESOLVED
Closed: 7 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: