Skip to content

Clarify scope for integration tests without api keys #2871

Open

Description

@tyscluff

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

  1. Would making the integration test suite no longer require api keys still be useful?
  2. 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?
  3. 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?
  4. 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

  1. added
    question
    on Aug 26, 2026
  2. PawelPeczek-Roboflow commented on Aug 28, 2026

    @PawelPeczek-Roboflow
    Collaborator

    Hi,

    Cool you want to contribute :)

    Re - questions.

    1. Good question - initial idea was to build the ecosystem such that it can be tested easily w/o our credentials - the reality is however that many blocks are created around existing model blocks, dealing with predictions - so to test workflow E2E, some model would be needed - then the question is - where to take it from. Practically convenient answer for is was "Roboflow platform" - so the rule got violated multiple times - with the silent rule being - "at least use models which do not require API keys, such that everyone can run it". That was unfortunately not always possible 🤕 I believe that the healthiest way out is to refine suites and clearly separate them - such that it's clear which suite can be run without api key and which require internal credentials.
    2. correct
    3. correct - this is also point to be debated - with growing number of suites we wanted to cover different parts of system behaviour in different suites - for instance test models predictions close to modules hosting models and high-level behaviours elsewhere

    LMK what would be your game-plan for contributions.

  3. tyscluff commented on Sep 2, 2026

    @tyscluff
    Author

    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

  4. davidnichols-ops commented on Sep 2, 2026

    @davidnichols-ops
    Contributor

    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:

    • Mocked: runs anywhere (no credentials needed)
    • skipif: requires internal credentials/API keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions