Skip to content

Commit 15e6911

Browse files
committed
fix: 3.14
1 parent 0ac2256 commit 15e6911

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/test-on-push-and-pr.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
distro_version: ["3.19", "3.20"]
27-
runtime_version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
27+
runtime_version: ["3.10", "3.11", "3.12", "3.13"]
28+
include:
29+
- distro_version: "3.21"
30+
runtime_version: "3.14"
2831

2932
steps:
3033
- uses: actions/checkout@v4
@@ -41,7 +44,10 @@ jobs:
4144
fail-fast: false
4245
matrix:
4346
distro_version: ["bookworm", "bullseye"]
44-
runtime_version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
47+
runtime_version: ["3.10", "3.11", "3.12", "3.13"]
48+
include:
49+
- distro_version: "bookworm"
50+
runtime_version: "3.14"
4551

4652
steps:
4753
- uses: actions/checkout@v4

tests/test_concurrency.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ def setUp(self):
1818
self.socket = "/tmp/sock"
1919

2020
def test_success_and_failure_isolation(self):
21-
success_counter = multiprocessing.Value("i", 0)
22-
fail_counter = multiprocessing.Value("i", 0)
21+
ctx = multiprocessing.get_context("fork")
22+
success_counter = ctx.Value("i", 0)
23+
fail_counter = ctx.Value("i", 0)
2324

2425
def fake_bootstrap_run(handler, lambda_runtime_client):
2526
pid = multiprocessing.current_process().pid
@@ -37,8 +38,10 @@ def fake_bootstrap_run(handler, lambda_runtime_client):
3738
), patch(
3839
"awslambdaric.lambda_multi_concurrent_utils.bootstrap.run",
3940
side_effect=fake_bootstrap_run,
41+
), patch(
42+
"awslambdaric.lambda_multi_concurrent_utils.multiprocessing.Process",
43+
ctx.Process,
4044
):
41-
# spawn 4 multi-concurrent processes
4245
MultiConcurrentRunner.run_concurrent(
4346
self.handler, self.addr, self.use_thread, self.socket, max_concurrency=4
4447
)

0 commit comments

Comments
 (0)