Closed Bug 1060576 Opened 10 years ago Closed 9 years ago

[titanic] Use requests-cache to improve performance

Categories

(Testing :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gakiwate, Assigned: abhi12ravi, Mentored)

References

()

Details

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
Tools that might help in validating improvements!

Line Profiler: https://pythonhosted.org/line_profiler/
Hi Gautam, 
Can you assign this bug to me?
Assignee: nobody → abhi12ravi
Done. The bug is yours! :)
Status: NEW → ASSIGNED
Any progress on this BUG?
Flags: needinfo?(abhi12ravi)
Status: ASSIGNED → NEW
Flags: needinfo?(abhi12ravi)
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.
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
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.