Repository navigation
Description
Search before asking
- I have searched the Inference issues and found no similar feature requests.
Question
Hi roboflow team. I'm interested in contributing to this project. I saw the CONTRIBUTING.md had a contribution idea of making integration tests not require api keys so I thought that would be a good place to start.
I've been digging into the integration test suite and my current understanding is that almost every integration test that requires a roboflow api key needs it to download a model the test needs from the roboflow api.
I only found one suite, test_workflow_with_google_vision_ocr.py , that has an exception to this, test_workflow_with_google_ocr_without_api_key_via_proxy, where the roboflow api key is used because the test itself is checking if the roboflow api can be used as a proxy in this workflow when no google api key is set. I assume that test would need to be addressed differently than the majority that need to download a model.
Before I start working on an implementation I was hoping you could clarify
- Would making the integration test suite no longer require api keys still be useful?
- I'm assuming that the request to make the tests work without an api keys, means the tests themselves don't exist to test that the inference api is able to download models from roboflow as they would need to bypass calling the roboflow api to not require a key. Is that assumption correct?
- I noticed that most of the tests are asserting just that the response shape is correct and not really asserting that the content/result of the endpoint call has a specific result. For those tests did you have in mind that the api call is bypassed through some sort of mock of the model loading into the modelmanager that can be used for inferencing or whatever the endpoint being tested needs or were you thinking more of actually loading the true model artifact through a different means than the roboflow api?
- Are there any other constraints I should account for?
Thanks for any guidance. I'm happy to take this on if it'd be useful, or if there's something that would be more helpful I'd appreciate it if you can point me that direction.
Additional
No response
Activity
PawelPeczek-Roboflow commentedon Aug 28, 2026
Hi,
Cool you want to contribute :)
Re - questions.
LMK what would be your game-plan for contributions.
tyscluff commentedon Sep 2, 2026
If this sounds good to you, I'll start with tests that are just asserting on the structure of the api response. For those I'll mock the model being loaded into the model_registry so the caller can still return a valid response without going to roboflow to download a real model. I'll start with a small PR that implements this pattern on a single test so it's easy to review and get feedback before implementing that pattern broadly. If you think I should go a different direction, I'm happy to consider other options just lmk
davidnichols-ops commentedon Sep 2, 2026
One data point that might help scope it: most of the workflow integration suites currently gate on
bool_env+skipif, so without a key they're skipped rather than executed.The mock-registry approach turns them into tests that actually run for outside contributors — which also gives you the natural split Pawel described:
skipif: requires internal credentials/API keys