-
Notifications
You must be signed in to change notification settings - Fork 3
fix: Database partition management commands #263
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. 📢 Thoughts on this report? Let us know! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #263 +/- ##
=======================================
Coverage 94.34% 94.34%
=======================================
Files 1223 1223
Lines 45305 45305
Branches 1441 1441
=======================================
Hits 42744 42744
Misses 2260 2260
Partials 301 301
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Sentry detected 4 potential issues in your recent changesA potential issue exists in enterprise.sh where pgpartition is called directly as a Python script (python pgpartition.py) instead of a Django management command (python manage.py pgpartition). This could lead to a FileNotFoundError and prevent the application from starting.
Suspicion of a FileNotFoundError in apps/codecov-api/enterprise.sh at lines 33 and 44. The script attempts to execute a non-existent pgpartition.py file, which could prevent enterprise API servers from starting.
There is a suspicion that the enterprise.sh script at lines 33 and 44 incorrectly calls python pgpartition.py instead of python manage.py pgpartition. This could lead to a FileNotFoundError because pgpartition.py does not exist, potentially causing the script to fail and impacting system startup.
Potential race condition during concurrent pgpartition command execution in apps/worker/worker.sh:17 and apps/codecov-api/enterprise.sh could lead to database inconsistencies and unexpected startup failures.
Did you find this useful? React with a 👍 or 👎 |
8d5ee42
to
d321951
Compare
pgpartition
command in delete mode for all development scriptsdev.sh
scriptpgpartition
command in add-only mode for the worker and enterprise scripts; TBD if these are actually used