-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Python epoll1 Fork Support (#32196)
* WIP. A seemingly properly failing test * WIP. Pre-fork handlers now work * Roughly working. * Clean up * Clean up more * Add to CI * Format * Ugh. Remove swap file * And another * clean up * Add copyright * Format * Remove another debug line * Add stub forkable methods * Remove use of 3.9+ function * Remove unintentional double copyright * drfloob review comments * Only hold lock during Close once * Create separate job for fork test * Bump up gdb timeout * Format
- Loading branch information
Showing
17 changed files
with
423 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 2023 gRPC authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
load("//bazel:cython_library.bzl", "pyx_library") | ||
|
||
pyx_library( | ||
name = "native_debug", | ||
srcs = ["native_debug.pyx"], | ||
deps = ["@com_google_absl//absl/debugging:failure_signal_handler"], | ||
) | ||
|
||
py_test( | ||
name = "fork_test", | ||
srcs = glob(["*.py"]), | ||
imports = ["../.."], | ||
main = "_fork_interop_test.py", | ||
python_version = "PY3", | ||
deps = [ | ||
":native_debug", | ||
"//src/proto/grpc/testing:empty_py_pb2", | ||
"//src/proto/grpc/testing:py_messages_proto", | ||
"//src/proto/grpc/testing:test_py_pb2_grpc", | ||
"//src/python/grpcio/grpc:grpcio", | ||
"//src/python/grpcio_tests/tests/interop:service", | ||
"//src/python/grpcio_tests/tests/unit:test_common", | ||
], | ||
) |
Oops, something went wrong.