Tests: Improve isolation through resource teardown by closing/disposing connections etc. #287
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About
This patch has been broken out of GH-284 in the same spirit like GH-283, supporting to run combinations of individual test cases without using
xdist.Our evaluations are that it feels like software tests have not been explicitly isolated yet, so
xdistcame to the rescue for you, because it implicitly isolates test cases by distributing them amongst worker processes?Background
Most prominently, adjustments in the area of DuckDB connection handling get rid of this error.
Connection Error: Can't open a connection to same database file with a different configuration than existing connections-- https://github.com/bruin-data/ingestr/actions/runs/16102670949/job/45433825506#step:11:607
Notes
On the workbench, we are running individual software tests like this to speed up cycle time by avoiding
xdiststartup overhead, that's why GH-283 came up.