Skip to content

feat: add --skip-resource-checks flag to bypass hardware capability gates #758

@ajbozarth

Description

@ajbozarth

Summary

Add a flag (e.g. --skip-resource-checks) that disables the hardware-based resource checks in conftest that gate tests based on detected hardware (VRAM, etc.).

Motivation

The current require_gpu(min_vram_gb=N) predicate causes tests to be skipped when the detected hardware doesn't meet the threshold. While this is the right default behavior, there are cases where a developer wants to force-run a test regardless of what hardware is detected — for example, to verify test logic on a machine with less VRAM, or to reproduce a failure reported from a higher-spec machine.

It is currently possible to work around this by invoking pytest directly (bypassing conftest auto-skips), but an explicit flag would be clearer and more ergonomic.

Proposed solution

Add a --skip-resource-checks pytest flag that, when passed, disables the hardware-capability gates (VRAM checks). API credential checks and Ollama checks would not be affected by this flag, as skipping those doesn't make sense in the same way.

Context

Raised during review of #742.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions