Skip to content
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

perf: pre-fetch all images before running tests #131

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

pendo324
Copy link
Member

Issue #, if available:

Description of changes:

  • Pre-fetches all images before running tests
    • The bulk of the change is in tests/tests.go
    • This drastically reduces the possibility of tests timing out due to external network download speed

There might be a better way to implement this, this was just the first way I thought of. Please post suggestions if you have any

Testing done:

  • Tested locally against latest Finch main branch

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@pendo324 pendo324 requested a review from Shubhranshu153 March 22, 2024 20:40
@pendo324 pendo324 self-assigned this Mar 22, 2024
@pendo324
Copy link
Member Author

Working on fixing the linting errors

@pendo324 pendo324 merged commit 95b554e into runfinch:main Mar 22, 2024
3 checks passed
Shubhranshu153 pushed a commit to Shubhranshu153/common-tests that referenced this pull request Mar 26, 2024
Issue #, if available:

*Description of changes:*
- Pre-fetches all images before running tests
- The bulk of the change is in
[`tests/tests.go`](https://github.com/runfinch/common-tests/compare/main...pendo324:common-tests:pre-fetch-images?expand=1#diff-a61afa8338f0442d1308258f7320c1a4a4698b432ac42d23bca256980f16f75a)
- This drastically reduces the possibility of tests timing out due to
external network download speed

There might be a better way to implement this, this was just the first
way I thought of. Please post suggestions if you have any

*Testing done:*
- Tested locally against latest Finch main branch


- [x] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

---------

Signed-off-by: Justin Alvarez <[email protected]>
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