canonical / dqlite

Embeddable, replicated and fault-tolerant SQL engine.
https://dqlite.io
Other
3.85k stars 216 forks source link

Grab stack traces when unit test hangs #694

Closed cole-miller closed 1 month ago

cole-miller commented 1 month ago

We know which binary is hanging now, try to get some backtraces using GDB if it looks like it's hanging.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 77.91%. Comparing base (f1dc507) to head (494d6e7). Report is 5 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #694 +/- ## ========================================== + Coverage 77.87% 77.91% +0.04% ========================================== Files 197 197 Lines 28008 28011 +3 Branches 5541 5536 -5 ========================================== + Hits 21812 21826 +14 + Misses 4350 4329 -21 - Partials 1846 1856 +10 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

cole-miller commented 1 month ago

Running the unit test with --no-fork exposed a pre-existing minor test issue where we weren't using the test/lib/sqlite.c fixture everywhere we should---I just fixed this quickly as well.