[titanic] Use requests-cache to improve performance

RESOLVED WONTFIX

Status

Testing
General
RESOLVED WONTFIX
4 years ago
3 years ago

People

(Reporter: gakiwate, Assigned: abhi12ravi, Mentored)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

4 years ago
Titanic (https://github.com/gakiwate/titanic/) is a tool to bisect test failures.

Titanic takes revision under investigation - which can be supplied to it using the APIs or command line and then works by pulling data about the revision and revisions before it from TBPL(https://tbpl.mozilla.org/) to bisect the failure.

Presently, we do not cache the results that we get from querying TBPL or the releng build system. This means that we spend a lot of time that potentially could be saved if we had cached the results.

We would like to investigate the possibility of using the requests-cache library to achieve caching. 
http://requests-cache.readthedocs.org/en/latest/ 
https://pypi.python.org/pypi/requests-cache

In particular we are interested in improving the performance of the functions
isBuildPending, isBuildRunning, isJobRunning, isJobPending. https://github.com/gakiwate/titanic/blob/master/titanic.py#523
(Reporter)

Comment 1

4 years ago
Tools that might help in validating improvements!

Line Profiler: https://pythonhosted.org/line_profiler/
(Assignee)

Comment 2

4 years ago
Hi Gautam, 
Can you assign this bug to me?
(Reporter)

Updated

4 years ago
Assignee: nobody → abhi12ravi
(Reporter)

Comment 3

4 years ago
Done. The bug is yours! :)
(Reporter)

Updated

4 years ago
Status: NEW → ASSIGNED
(Reporter)

Comment 4

4 years ago
Any progress on this BUG?
Flags: needinfo?(abhi12ravi)
(Reporter)

Updated

4 years ago
Status: ASSIGNED → NEW
(Reporter)

Updated

4 years ago
Flags: needinfo?(abhi12ravi)
(Assignee)

Comment 5

4 years ago
Hi Gautam,

Sorry I haven't been able to work on this bug. Been caught up with academics. Got some time now. Will work on this.
(Reporter)

Comment 6

4 years ago
Sure. Let me know if you need anything! :)
we are using mozilla_ci_tools (https://github.com/armenzg/mozilla_ci_tools) which has taken a lot of titanic pieces and knowledge.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.