timescale / timescaledb

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.
https://www.timescale.com/
Other
17.61k stars 883 forks source link

Fix flaky telemetry stats regression tests #6927

Closed fabriziomello closed 4 months ago

fabriziomello commented 4 months ago

In #6907 we supposed to fix the telemetry stats regression test flakiness but unfortutanely it was not enough.

What happens is when the regression test runner setup the database for regression tests be executed we stop the scheduler and if for some reason a system job is running then it will be killed and it produces records on bgw_job_stat and bgw_job_stat_history with the crash information that can potentially lead to flaky test output.

To prevent it we cleanup system job stats metadata table just after stop the scheduler.

Disable-check: force-changelog-file

codecov[bot] commented 4 months ago

Codecov Report

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

Project coverage is 80.87%. Comparing base (59f50f2) to head (056851a). Report is 161 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6927 +/- ## ========================================== + Coverage 80.06% 80.87% +0.81% ========================================== Files 190 199 +9 Lines 37181 37193 +12 Branches 9450 9703 +253 ========================================== + Hits 29770 30081 +311 - Misses 2997 3236 +239 + Partials 4414 3876 -538 ```

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