[AUTO-INF-3B] features/environment.py uses # type: ignore comments in _install_fast_sleep_patch() violating CONTRIBUTING.md strict typing policy #10767

Merged
HAL9000 merged 3 commits from fix/auto-inf-3b-remove-type-ignore-environment-py into master 2026-04-24 04:32:37 +00:00

3 Commits

Author SHA1 Message Date
HAL9000 f5089f3e95 ci: trigger CI re-run for transient infrastructure failures
CI / lint (pull_request) Successful in 57s
CI / typecheck (pull_request) Successful in 1m19s
CI / helm (pull_request) Successful in 29s
CI / security (pull_request) Successful in 1m35s
CI / quality (pull_request) Successful in 1m1s
CI / build (pull_request) Successful in 59s
CI / push-validation (pull_request) Successful in 1m0s
CI / integration_tests (pull_request) Successful in 5m3s
CI / e2e_tests (pull_request) Successful in 6m3s
CI / unit_tests (pull_request) Successful in 6m53s
CI / docker (pull_request) Successful in 1m34s
CI / coverage (pull_request) Successful in 11m20s
CI / lint (push) Failing after 0s
CI / status-check (pull_request) Successful in 4s
CI / typecheck (push) Failing after 0s
CI / unit_tests (push) Failing after 0s
CI / helm (push) Failing after 0s
CI / push-validation (push) Successful in 29s
CI / quality (push) Successful in 1m13s
CI / build (push) Successful in 57s
CI / security (push) Successful in 1m29s
CI / coverage (push) Has been skipped
CI / docker (push) Has been skipped
CI / e2e_tests (push) Failing after 4m7s
CI / integration_tests (push) Successful in 4m28s
CI / status-check (push) Failing after 6s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (push) Has been skipped
CI / benchmark-publish (push) Failing after 14m49s
CI / benchmark-regression (pull_request) Successful in 1h10m58s
2026-04-24 04:11:54 +00:00
HAL9000 9d21ba5b64 style(test): rename _orig_time_sleep/_orig_asyncio_sleep to _original_time_sleep/_original_asyncio_sleep for consistency 2026-04-24 04:11:54 +00:00
HAL9000 5812e0599a [AUTO-INF-3B] features/environment.py uses # type: ignore comments in _install_fast_sleep_patch() violating CONTRIBUTING.md strict typing policy
Removed 6 `# type: ignore` suppressions from `_install_fast_sleep_patch()` in `features/environment.py`.
Used `cast(Any, module)` + direct attribute assignment instead of `setattr()` (which ruff B010 disallows) and `# type: ignore` comments.
Added `from collections.abc import Callable` and `from typing import cast` imports.
Added new feature file `features/test_infra_sleep_patch.feature` with 4 scenarios verifying the behavior.
Added new steps file `features/steps/test_infra_sleep_patch_steps.py`.

ISSUES CLOSED: #9993
2026-04-24 04:11:54 +00:00