Skip to content

fix: support platform-specific test runtime environment variables#2941

Open
ychampion wants to merge 1 commit into
pypa:mainfrom
ychampion:fix-test-runtime-platform-env
Open

fix: support platform-specific test runtime environment variables#2941
ychampion wants to merge 1 commit into
pypa:mainfrom
ychampion:fix-test-runtime-platform-env

Conversation

@ychampion

Copy link
Copy Markdown

Summary

  • enable platform-specific environment lookup for test-runtime
  • cover both Android and iOS override precedence

Why

The documentation exposes CIBW_TEST_RUNTIME_ANDROID and CIBW_TEST_RUNTIME_IOS, but test-runtime explicitly disabled platform environment variables in the option reader. As a result, both variables were ignored.

Closes #2936.

Validation

  • uv run pytest unit_test/options_test.py -q (99 passed, 3 existing xfails)
  • uv run pytest unit_test -q (824 passed, 69 skipped, 3 existing xfails)
  • uvx prek -a
  • uvx nox -s pylint (10.00/10)
  • git diff --check

Let the shared option reader apply Android and iOS environment overrides, matching the documented configuration precedence.

Constraint: Preserve existing global, TOML, and override behavior for test-runtime.
Rejected: Add Android/iOS-specific lookup code | OptionsReader already implements platform environment precedence.
Confidence: high
Scope-risk: narrow
Directive: Keep test-runtime on the shared option cascade when adding future platforms.
Tested: Focused red/green regression; 824 unit tests; prek all hooks; pylint 10.00/10; diff check.
Not-tested: Android and iOS device integration runs.
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.

test-runtime option doesn't support platform-specific environment variables

1 participant