-
Notifications
You must be signed in to change notification settings - Fork 44.6k
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
Speed up CI #4930
Speed up CI #4930
Conversation
✅ Deploy Preview for auto-gpt-docs canceled.
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #4930 +/- ##
==========================================
+ Coverage 50.88% 50.92% +0.03%
==========================================
Files 119 119
Lines 4889 4895 +6
Branches 646 646
==========================================
+ Hits 2488 2493 +5
- Misses 2218 2219 +1
Partials 183 183
☔ View full report in Codecov by Sentry. |
You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged. |
fd98cb1
to
4dfe620
Compare
* Match requests in cassette by hash * Strip requests more extensively for VCR * Sort JSON keys on cassette save * Strip max_tokens from cassettes * Improve logging in retry decorator * Raise when quota exceeded * Clean up @retry_api * Fix @retry_api * Remove dead tests/vcr/openai_filter.py * Add debug logging to execute_python_file * Make Docker CI pass
* Match requests in cassette by hash * Strip requests more extensively for VCR * Sort JSON keys on cassette save * Strip max_tokens from cassettes * Improve logging in retry decorator * Raise when quota exceeded * Clean up @retry_api * Fix @retry_api * Remove dead tests/vcr/openai_filter.py * Add debug logging to execute_python_file * Make Docker CI pass
Background
CI takes 5 - 6 minutes to run (on average). This is awful to work with.
With this PR, average CI time goes down to 1.5 - 2 minutes
Changes
execute_python_file
@retry_api
insufficient_quota
errors in@retry_api
Documentation
I have tried adding comments :)
Test Plan
CI
PR Quality Checklist