Skip to content

Commit 3d26c4e

Browse files
authored
Downgrade protobuf dep (#204)
* downgrade * update
1 parent 791d44b commit 3d26c4e

File tree

11 files changed

+95
-929
lines changed

11 files changed

+95
-929
lines changed

CHANGES.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22

33
Feat:
44

5-
- Add support for python 3.12
5+
- Add support for Python 3.12
6+
7+
Fix:
8+
9+
- There was a bug in the pybind11 bindings involving incorrect usage for
10+
releasing the GIL lock which led to a segfault when using Python 3.12.
11+
Previous versions remain unaffected.
12+
- Pin the python `protobuf` version to match
13+
[`rules_proto_grpc_python`](https://github.com/rules-proto-grpc/rules_proto_grpc/blob/master/modules/python/requirements.in#L3)
14+
to remove runtime warnings.
15+
16+
Chore:
17+
18+
- Removed `macos-12` from the `CD` GHA as it was building with an incorrect
19+
wheel name for the given OS. We're only building/publishing wheels for
20+
`macos-14`.
21+
- Removed unused pip deps from `requirements.in` and updated lock files
22+
accordingly.
623

724
# Version 2.0.4
825

MODULE.bazel

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ bazel_dep(name = "rules_cc", version = "0.0.10")
2323
bazel_dep(name = "rules_go", version = "0.50.1")
2424
bazel_dep(name = "rules_java", version = "7.12.0")
2525
bazel_dep(name = "rules_pkg", version = "1.0.1")
26-
bazel_dep(name = "rules_proto", version = "6.0.2")
2726
bazel_dep(name = "rules_proto_grpc", version = "5.0.0")
2827
bazel_dep(name = "rules_proto_grpc_cpp", version = "5.0.0")
2928
bazel_dep(name = "rules_proto_grpc_go", version = "5.0.0")
@@ -34,9 +33,9 @@ bazel_dep(name = "rules_rust", version = "0.51.0")
3433
## PCJ
3534
http_archive(
3635
name = "private_join_and_compute",
37-
sha256 = "4a2916c42af1d32d3a94799703a81b11e05dbf1d4e0021e25f181d5921f667bf",
38-
strip_prefix = "private-join-and-compute-1225a27f13fb39359242db3da3c090b81d24cced",
39-
url = "https://github.com/s0l0ist/private-join-and-compute/archive/1225a27f13fb39359242db3da3c090b81d24cced.zip",
36+
sha256 = "a53b9db35ad42aaf8a778a859915e5cca08f33800c314f04b3fcb0f2c5e148b3",
37+
strip_prefix = "private-join-and-compute-e81563e0e3caa0f6178e8668be8a4434d2cef352",
38+
url = "https://github.com/s0l0ist/private-join-and-compute/archive/e81563e0e3caa0f6178e8668be8a4434d2cef352.zip",
4039
)
4140

4241
## Python

private_set_intersection/javascript/src/__tests__/integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import PSI from '../wasm_node'
21
import { PSILibrary } from '../implementation/psi'
2+
import PSI from '../wasm_node'
33

44
const clientKey = Uint8Array.from([
55
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
@@ -85,7 +85,7 @@ describe('PSI Integration', () => {
8585
numClientElements / 2
8686
)
8787
// eslint-disable-next-line jest/no-conditional-expect
88-
expect(intersection.length).toBeLessThan(
88+
expect(intersection.length).toBeLessThanOrEqual(
8989
(numClientElements / 2) * 1.1
9090
)
9191
}

private_set_intersection/proto/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
# limitations under the License.
1515
#
1616

17+
load("@protobuf//bazel:proto_library.bzl", "proto_library")
1718
load("@rules_cc//cc:defs.bzl", "cc_proto_library")
1819
load("@rules_go//go:def.bzl", "go_library")
19-
load("@rules_proto//proto:defs.bzl", "proto_library")
2020
load("@rules_proto_grpc_go//:defs.bzl", "go_proto_library")
2121
load("@rules_proto_grpc_python//:defs.bzl", "python_proto_library")
2222
load("@rules_rust//proto/protobuf:defs.bzl", "rust_proto_library")

private_set_intersection/python/BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ py_wheel(
204204
}),
205205
python_requires = ">=3.8",
206206
python_tag = python_abi(),
207-
requires = ["protobuf"],
207+
# NOTE: Keep this in sync with `requirements.in`
208+
requires = ["protobuf==5.27.2"],
208209
twine = "@publish_deps//twine",
209210
version = VERSION_LABEL,
210211
deps = [
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
pytest
22
pytest-benchmark
3-
twine
4-
packaging
5-
protobuf
3+
# This is the latest version specified by rules_proto_grpc_python
4+
protobuf==5.27.2

private_set_intersection/python/requirements/requirements_lock_3_10.txt

Lines changed: 13 additions & 223 deletions
Large diffs are not rendered by default.

private_set_intersection/python/requirements/requirements_lock_3_11.txt

Lines changed: 13 additions & 223 deletions
Large diffs are not rendered by default.

private_set_intersection/python/requirements/requirements_lock_3_12.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,18 @@ pluggy==1.5.0 \
178178
--hash=sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1 \
179179
--hash=sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669
180180
# via pytest
181-
protobuf==5.28.2 \
182-
--hash=sha256:2c69461a7fcc8e24be697624c09a839976d82ae75062b11a0972e41fd2cd9132 \
183-
--hash=sha256:35cfcb15f213449af7ff6198d6eb5f739c37d7e4f1c09b5d0641babf2cc0c68f \
184-
--hash=sha256:52235802093bd8a2811abbe8bf0ab9c5f54cca0a751fdd3f6ac2a21438bffece \
185-
--hash=sha256:59379674ff119717404f7454647913787034f03fe7049cbef1d74a97bb4593f0 \
186-
--hash=sha256:5e8a95246d581eef20471b5d5ba010d55f66740942b95ba9b872d918c459452f \
187-
--hash=sha256:87317e9bcda04a32f2ee82089a204d3a2f0d3c8aeed16568c7daf4756e4f1fe0 \
188-
--hash=sha256:8ddc60bf374785fb7cb12510b267f59067fa10087325b8e1855b898a0d81d276 \
189-
--hash=sha256:a8b9403fc70764b08d2f593ce44f1d2920c5077bf7d311fefec999f8c40f78b7 \
190-
--hash=sha256:c0ea0123dac3399a2eeb1a1443d82b7afc9ff40241433296769f7da42d142ec3 \
191-
--hash=sha256:ca53faf29896c526863366a52a8f4d88e69cd04ec9571ed6082fa117fac3ab36 \
192-
--hash=sha256:eeea10f3dc0ac7e6b4933d32db20662902b4ab81bf28df12218aa389e9c2102d
181+
protobuf==5.27.2 \
182+
--hash=sha256:0e341109c609749d501986b835f667c6e1e24531096cff9d34ae411595e26505 \
183+
--hash=sha256:176c12b1f1c880bf7a76d9f7c75822b6a2bc3db2d28baa4d300e8ce4cde7409b \
184+
--hash=sha256:354d84fac2b0d76062e9b3221f4abbbacdfd2a4d8af36bab0474f3a0bb30ab38 \
185+
--hash=sha256:4fadd8d83e1992eed0248bc50a4a6361dc31bcccc84388c54c86e530b7f58863 \
186+
--hash=sha256:54330f07e4949d09614707c48b06d1a22f8ffb5763c159efd5c0928326a91470 \
187+
--hash=sha256:610e700f02469c4a997e58e328cac6f305f649826853813177e6290416e846c6 \
188+
--hash=sha256:7fc3add9e6003e026da5fc9e59b131b8f22b428b991ccd53e2af8071687b4fce \
189+
--hash=sha256:9e8f199bf7f97bd7ecebffcae45ebf9527603549b2b562df0fbc6d4d688f14ca \
190+
--hash=sha256:a109916aaac42bff84702fb5187f3edadbc7c97fc2c99c5ff81dd15dcce0d1e5 \
191+
--hash=sha256:b848dbe1d57ed7c191dfc4ea64b8b004a3f9ece4bf4d0d80a367b76df20bf36e \
192+
--hash=sha256:f3ecdef226b9af856075f28227ff2c90ce3a594d092c39bee5513573f25e2714
193193
# via -r private_set_intersection/python/requirements/requirements.in
194194
py-cpuinfo==9.0.0 \
195195
--hash=sha256:3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3f49690 \
@@ -229,9 +229,9 @@ rfc3986==2.0.0 \
229229
--hash=sha256:50b1502b60e289cb37883f3dfd34532b8873c7de9f49bb546641ce9cbd256ebd \
230230
--hash=sha256:97aacf9dbd4bfd829baad6e6309fa6573aaf1be3f6fa735c8ab05e46cecb261c
231231
# via twine
232-
rich==13.8.1 \
233-
--hash=sha256:1760a3c0848469b97b558fc61c85233e3dafb69c7a071b4d60c38099d3cd4c06 \
234-
--hash=sha256:8260cda28e3db6bf04d2d1ef4dbc03ba80a824c88b0e7668a0f23126a424844a
232+
rich==13.9.1 \
233+
--hash=sha256:097cffdf85db1babe30cc7deba5ab3a29e1b9885047dab24c57e9a7f8a9c1466 \
234+
--hash=sha256:b340e739f30aa58921dc477b8adaa9ecdb7cecc217be01d93730ee1bc8aa83be
235235
# via twine
236236
twine==5.1.1 \
237237
--hash=sha256:215dbe7b4b94c2c50a7315c0275d2258399280fbb7d04182c7e55e24b5f93997 \

0 commit comments

Comments
 (0)