Skip to content
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 flaky Hypercore tests #7368

Merged
merged 2 commits into from
Oct 20, 2024

Conversation

erimatnor
Copy link
Contributor

@erimatnor erimatnor commented Oct 18, 2024

This change should fix two Hypercore tests that could sometimes fail due to different query plans.

Disable-check: force-changelog-file
Disable-check: commit-count
Disable-check: approval-count

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.57%. Comparing base (59f50f2) to head (3bdfadf).
Report is 558 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7368      +/-   ##
==========================================
+ Coverage   80.06%   82.57%   +2.50%     
==========================================
  Files         190      229      +39     
  Lines       37181    42726    +5545     
  Branches     9450    10733    +1283     
==========================================
+ Hits        29770    35279    +5509     
- Misses       2997     3166     +169     
+ Partials     4414     4281     -133     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@erimatnor erimatnor marked this pull request as ready for review October 19, 2024 08:44
Having multiple indexes that include same prefix of columns caused the
planner to sometimes pick a different index for one of the querires,
which led to different test output. Temporarily remove the alternative
index to make the test predictible.
The join test could sometimes pick a seqscan+sort instead of an
indexscan when doing a MergeAppend+MergeJoin. Disabling seqscan should
make it deterministic.
@erimatnor erimatnor merged commit d833836 into timescale:main Oct 20, 2024
50 of 51 checks passed
@erimatnor erimatnor deleted the hypercore-fix-flaky-tests branch October 20, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants