Skip to content

dump MySQL to AWS S3 #688

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

dump MySQL to AWS S3 #688

wants to merge 4 commits into from

Conversation

simsong
Copy link
Member

@simsong simsong commented Apr 8, 2025

This dumps all of the MySQL databases to AWS S3.
It will be called from a cron job on a daily basis in the production environment.

Copy link
Member

@sbarber2 sbarber2 left a comment

Choose a reason for hiding this comment

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

I think given that the test runs are failing that at least one change to the repo is needed!

if 'dbreader' not in config:
print("Please use --rootconfig to specify which configuration file to use")
exit(1)

if args.dump:
Copy link
Member

Choose a reason for hiding this comment

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

Well, I mean, the test runs seem to be failing because this condition is not satisfied by the tests.

@sbarber2
Copy link
Member

sbarber2 commented Apr 11, 2025 via email

@simsong
Copy link
Member Author

simsong commented Apr 11, 2025

If you think that adding and else would be more clear, we can do that.

Copy link

codecov bot commented Apr 14, 2025

Codecov Report

Attention: Patch coverage is 6.25000% with 15 lines in your changes missing coverage. Please review.

Project coverage is 70.11%. Comparing base (29b3693) to head (efc8b76).

Files with missing lines Patch % Lines
deploy/app/dbmaint.py 6.25% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #688      +/-   ##
==========================================
- Coverage   70.37%   70.11%   -0.27%     
==========================================
  Files          36       36              
  Lines        3885     3901      +16     
  Branches       64       64              
==========================================
+ Hits         2734     2735       +1     
- Misses       1126     1141      +15     
  Partials       25       25              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

# THese need a database config
if 'dbreader' not in config:
# These need a database config
if ('dbreader' not in config) and (args.dump or arts.sqlbackup):
print("Please use --rootconfig to specify which configuration file to use")
Copy link
Member

Choose a reason for hiding this comment

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

arts.sqlbackup probably needs to be args.sqlbackup

Copy link
Member

@sbarber2 sbarber2 left a comment

Choose a reason for hiding this comment

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

typo in latest comment: arts vs args; see comment

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.

2 participants