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

Simplify extension tap test #6092

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Conversation

svenklemm
Copy link
Member

@svenklemm svenklemm commented Sep 19, 2023

The extension tap test is very flakey and seems to fail very often with unhelpful error messages. This patch simplifies the test to make it more reliable.

Disable-check: force-changelog-file

@github-actions
Copy link

@jnidzwetzki, @erimatnor: please review this pull request.

Powered by pull-review

@svenklemm svenklemm force-pushed the provecheck_fix branch 2 times, most recently from bb7da53 to 8d45768 Compare September 19, 2023 12:08
The extension tap test is very flakey and seems to fail very often
with unhelpful error messages. This patch simplifies the test to
make it more reliable.
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #6092 (0c820d5) into main (8fac069) will decrease coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #6092      +/-   ##
==========================================
- Coverage   81.55%   81.46%   -0.09%     
==========================================
  Files         246      246              
  Lines       56444    56667     +223     
  Branches    12483    12553      +70     
==========================================
+ Hits        46032    46164     +132     
- Misses       8059     8098      +39     
- Partials     2353     2405      +52     

see 56 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@svenklemm svenklemm enabled auto-merge (rebase) September 19, 2023 12:26
diag 'Actual output was ' . Dumper($out) . "Did not match \"$pattern\"\n"
if !$okay;
return;
is($result, $pattern, $annotation);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if I understand correctly, we no longer do any waiting, if that is the case, shouldn't we make sure we wait for the extension state to change?
Maybe with something similar to poll_query_until?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Timeouts are not required here as this is a very simple function call that should return immediately. We still wait for the response from the server.

https://github.com/postgres/postgres/blob/master/src/test/perl/README

@svenklemm svenklemm merged commit bb11d18 into timescale:main Sep 19, 2023
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants