-
-
Notifications
You must be signed in to change notification settings - Fork 883
Add cleanup_submissions script and unit tests for expired submissions… #4783
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: master
Are you sure you want to change the base?
Conversation
… deletion - Introduced a new script `cleanup_submissions.py` to automate the cleanup of expired submissions from EvalAI challenges, including features for logging, safety checks, and AWS CloudWatch integration. - Added comprehensive unit tests in `test_cleanup_submissions.py` to validate the functionality of the cleanup script, covering various scenarios including dry run and execute modes, as well as edge cases for submissions and challenges. - Implemented logging setup and error handling to ensure robust operation during the cleanup process.
… deletion - Introduced a new script `cleanup_submissions.py` to automate the cleanup of expired submissions from EvalAI challenges, featuring logging, safety checks, and AWS CloudWatch integration. - Added comprehensive unit tests in `test_cleanup_submissions.py` to validate the functionality of the cleanup script, covering various scenarios including dry run and execute modes, as well as edge cases for submissions and challenges. - Implemented logging setup and error handling to ensure robust operation during the cleanup process.
…ovements - Added functionality to list challenges by category (ongoing, past, upcoming, not approved by admin) sorted by S3 space usage. - Implemented calculations for S3 space usage for each challenge's submissions. - Introduced new command-line options for dry run and execute modes, allowing for targeted cleanup of past challenges and those not approved by admin. - Improved logging to provide detailed summaries and error handling during the deletion process. - Removed outdated unit test files to streamline the testing suite.
…ery features - Added functionality to delete test annotation files from challenges not approved by admin and older than 30 days. - Introduced a custom challenge query option for flexible challenge selection using Django ORM syntax. - Improved logging for better visibility during the deletion process, including detailed statistics for test annotations. - Updated command-line interface to support new options for test annotations and custom queries.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4783 +/- ##
=======================================
Coverage 91.87% 91.87%
=======================================
Files 85 85
Lines 7105 7105
=======================================
Hits 6528 6528
Misses 577 577
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
… deletion
cleanup_submissions.py
to automate the cleanup of expired submissions from EvalAI challenges, including features for logging, safety checks, and AWS CloudWatch integration.test_cleanup_submissions.py
to validate the functionality of the cleanup script, covering various scenarios including dry run and execute modes, as well as edge cases for submissions and challenges.