-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix teardown in SQLite File spec #8918
Conversation
While cleaning up seems the right thing to do, for this particular case it seems that a more robust solution would be to ensure that Can we add a |
Deleting the SQLite file before a connection is made is not a good idea. It causes failures like https://github.com/enso-org/enso/actions/runs/7741741366/job/21109332981?pr=8918#step:8:15352 for tests that create multiple connections. Let's revert f4163b7 and merge the PR. We will address other issues related to teardowns once some more transient failures occur.
|
This reverts commit f4163b7.
I still think it is a good idea, as argued before. It just has to be done at the proper place - it should be done once before all SQLite tests run, not on every connection being established. |
Pull Request Description
Fixes teardown of SQLite spec. There used to be only
connection.close
, but we also have to callconnection.drop_table
for every created table.This causes problems only in
[SQLite File]
tests. These are backed by a sqlite file and some tables are persistent in that table. It is possible, that before tests are run, this file is non-empty and contains garbage from previous runs.Important Notes
Should fix https://github.com/enso-org/enso/actions/runs/7724599547/job/21057063900#step:10:7243 that was triggered when
Table_Tests
were run on a non-clean runner.Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.