Closed
Bug 1332695
Opened 7 years ago
Closed 7 years ago
test_runnable_jobs_api failure
Categories
(Tree Management :: Treeherder: API, defect)
Tree Management
Treeherder: API
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
Comment 1•7 years ago
|
||
(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.
Assignee | ||
Comment 2•7 years ago
|
||
Yep exactly, I just narrowed it down, its def something in tests/etl
Assignee | ||
Comment 3•7 years ago
|
||
vagrant ~/treeherder$ py.test tests/etl/test_job_ingestion.py tests/webapp/api/test_runnable_jobs_api.py -v Causes the failure
Assignee | ||
Comment 4•7 years ago
|
||
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 | ||
Updated•7 years ago
|
Assignee: nobody → rwood
Status: NEW → ASSIGNED
Comment 5•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8828940 -
Flags: review?(wlachance)
Comment 6•7 years ago
|
||
Comment on attachment 8828940 [details] [review] [treeherder] rwood-moz:bug1332695 > mozilla:master r+ for second iteration
Attachment #8828940 -
Flags: review?(wlachance) → review+
Comment 7•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/635a9e1d56898e593559cb28ebc6dd7c8741cd9e Bug 1332695 - Fix failing test_runnable_jobs_api test (#2091)
Assignee | ||
Updated•7 years ago
|
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.
Description
•