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

Add ci check for idempotency in sql scripts #7624

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

svenklemm
Copy link
Member

@svenklemm svenklemm commented Jan 26, 2025

To detect the problematic patterns that were part of the 2.18 release
we can check the sql scripts against a list of allowed statements.
Any non idempotent operation should be in the pre_install scripts
and not the scripts that get appended for the update scripts.

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

Copy link

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

Powered by pull-review

@svenklemm svenklemm added the ci label Jan 26, 2025
Copy link

codecov bot commented Jan 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.31%. Comparing base (59f50f2) to head (3ded0d2).
Report is 719 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7624      +/-   ##
==========================================
+ Coverage   80.06%   81.31%   +1.25%     
==========================================
  Files         190      240      +50     
  Lines       37181    44700    +7519     
  Branches     9450    11159    +1709     
==========================================
+ Hits        29770    36350    +6580     
- Misses       2997     3962     +965     
+ Partials     4414     4388      -26     

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

@svenklemm svenklemm force-pushed the update_checks branch 4 times, most recently from db8a565 to 3ded0d2 Compare January 27, 2025 10:50
To detect the problematic patterns that were part of the 2.18 release
we can check the sql scripts against a list of allowed statements.
Any non idempotent operation should be in the pre_install scripts
and not the scripts that get appended for the update scripts.
@svenklemm svenklemm merged commit e9da072 into timescale:main Jan 27, 2025
47 of 49 checks passed
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.

3 participants