[AFE-53] feat(airflow-client): paginate Get* requests and add short retries by nickypy ยท Pull Request #2039 ยท astronomer/astro-cli
Conversation
Description
This PR fixes an issue around copying pools, variables, and connections between deployments:
- paginate across all resources to make sure everything is copied, not just the first page of the results
- add retries for scenarios when deployments are still spinning up (e.g. deploy previews)
๐ Issue(s)
Related #XXX
๐งช Functional Testing
- Create a test deployment with >100 pools, variables and connections
- Use that to spin up a preview deployment
- Make sure that all pools, variables and connections are copied over
๐ธ Screenshots
Add screenshots to illustrate the validity of these changes.
๐ Checklist
- Rebased from the main (or release if patching) branch (before testing)
- Ran
make testbefore taking out of draft - Ran
make lintbefore taking out of draft - Added/updated applicable tests
- Tested against Astro-API (if necessary).
- Tested against Houston-API and Astronomer (if necessary).
- Communicated to/tagged owners of respective clients potentially impacted by these changes.
- Updated any related documentation
nickypy
marked this pull request as ready for review
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally this is looking good. Left a few comments and questions. Please also make sure we've run the integration tests :)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I do think using synctest rather than providing a test seam to override the backoff interval would be more reliable, but maybe I'm missing something?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters