All of lore.kernel.org
 help / color / mirror / Atom feed
* bitbake-selftest losing sqlite3 database contents!
@ 2024-04-18 19:42 Michael Opdenacker
  2024-04-18 21:04 ` [bitbake-devel] " Richard Purdie
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Opdenacker @ 2024-04-18 19:42 UTC (permalink / raw)
  To: Joshua Watt; +Cc: BitBake developer list

Hi Joshua and list.

Maybe you can give me hints on this...

I'm currently implementing bitbake-selftests for the PR server. I've got 
my first series of tests working, inserting several values into the 
database and then making queries to check that the stored values are 
correct.

However, for the second series of tests, I want to start from the 
sqlite3 database file from the first series (prtest-basic.sqlite3), and 
this time use it to start the server in read-only mode. However, the 
table is empty when I open it!

This is confirmed by making an SQL query from the command line:
$ sqlite3 prtest-basic.sqlite3
SQLite version 3.37.2 2022-01-06 13:25:41
Enter ".help" for usage hints.
sqlite> select * from PRMAIN;
sqlite>

What could explain that the stored PR data are not flushed to the 
database file during my tests, but I have no such issue when I make an 
image with BitBake?

I also changed the prserv/db.py file to run:
self.connection.execute("PRAGMA synchronous = NORMAL;")
self.connection.execute("PRAGMA journal_mode = WAL;")

However, that didn't help.
Any clues for debugging this?
Thanks in advance
Cheers
Michael.


-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-04-23 12:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-18 19:42 bitbake-selftest losing sqlite3 database contents! Michael Opdenacker
2024-04-18 21:04 ` [bitbake-devel] " Richard Purdie
2024-04-19  9:13   ` Michael Opdenacker
2024-04-20 20:35     ` Joshua Watt
2024-04-22 10:00       ` Jan-Simon Möller
2024-04-22 14:47         ` Joshua Watt
2024-04-22 17:17           ` Jan-Simon Moeller
2024-04-23 12:29         ` Michael Opdenacker
2024-04-23 12:35       ` Michael Opdenacker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.