Skip to content

Fix Windows compatibility in prek scripts and POSIX-only test skip gu… - #70946

Open
Adityakk9031 wants to merge 1 commit into
apache:mainfrom
Adityakk9031:windows-compat-fixes
Open

Fix Windows compatibility in prek scripts and POSIX-only test skip gu…#70946
Adityakk9031 wants to merge 1 commit into
apache:mainfrom
Adityakk9031:windows-compat-fixes

Conversation

@Adityakk9031

Copy link
Copy Markdown

Close: #69464 (follow-up)

Three Windows-compatibility fixes split out from #69504 per maintainer review:

common_prek_utils.py: explicit encoding="utf-8" on all read_text() calls prevents UnicodeDecodeError on Windows where the default codec is cp1252
shared/observability/.../stats.py: guard os.register_at_fork with hasattr since it is POSIX-only
test_supervisor.py / test_task_runner.py: skip on Windows with pytestmark rather than stubbing out POSIX syscalls — CI on Linux runs all tests as normal

@Adityakk9031

Copy link
Copy Markdown
Author

@potiuk have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sentry before_send/transport dotted-path config never resolved to a callable in Task SDK (silently drops all events)

1 participant