Merge ~techalchemy/ubuntu-qa-tools:feature/in-memory-cookiedb into ubuntu-qa-tools:master
Proposed by
Dan Ryan
Status: | Needs review |
---|---|
Proposed branch: | ~techalchemy/ubuntu-qa-tools:feature/in-memory-cookiedb |
Merge into: | ubuntu-qa-tools:master |
Diff against target: |
121 lines (+49/-35) 1 file modified
common/lpl_common.py (+49/-35) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike Salvatore | Pending | ||
Review via email: mp+378348@code.launchpad.net |
Commit message
Use in-memory sqlite database for cookie storage and cookiejar generation
- Also addresses an issue converting launchpadlib.
To post a comment you must log in.
Did you actually try to use this? The sql portion of the change fails for me like so:
$UCT/ scripts/ sis-changes --ppa ubuntu --pocket Proposed -r bionic --download ${HOME} /tmp/prepare- kernel- usn-6r8qbh5h/ usn-bionic- linux-azure- 5.3 linux-azure-5.3 steve/git/ ubuntu- cve-tracker/ scripts/ sis-changes" , line 158, in <module> opener_ with_cookie( cve_lib. config[ "plb_authentica tion"]) steve/git/ ubuntu- cve-tracker/ scripts/ lpl_common. py", line 148, in opener_with_cookie db.iterdump( ): python3. 7/sqlite3/ dump.py" , line 30, in _iterdump OperationalErro r: database is locked
Traceback (most recent call last):
File "/home/
opener = lpl_common.
File "/home/
for line in cookie_
File "/usr/lib/
schema_res = cu.execute(q)
sqlite3.
which is why the shutil copy is performed in the original code.
Also, would prefer two distinct fixes as two distinct commits, please.
Thanks.