Skip to content

merge 25.x to main#14617

Merged
mkruskal-google merged 32 commits intoprotocolbuffers:mainfrom
anandolee:25.x
Nov 2, 2023
Merged

merge 25.x to main#14617
mkruskal-google merged 32 commits intoprotocolbuffers:mainfrom
anandolee:25.x

Conversation

@anandolee
Copy link
Contributor

No description provided.

protobuf-team-bot and others added 16 commits October 16, 2023 12:36
This should fix the postsubmit test failures on 25.x by updating the
checked-in files to match the new version number.
This function needs to be visible to generated code, so this CL ensures that
it's exported on libprotobuf.so.

PiperOrigin-RevId: 573980166
Fixes #14436

PiperOrigin-RevId: 574168872
… (#14560)

Fixes #14509

Closes #14538

COPYBARA_INTEGRATE_REVIEW=#14538 from JasonLunn:fix_14509 a3f9d0b
PiperOrigin-RevId: 577837541

Co-authored-by: Jason Lunn <jason.lunn@gmail.com>
gRPC auto-generates CMake and other build configs from the Bazel build graph,
but the logic for doing this does not know how to handle filegroups. This
change works around that problem by making the `:port` target refer directly to
the `.inc` files instead of going through a filegroup. This solution is not
ideal but I think it's probably the best way to unblock progress for now.

PiperOrigin-RevId: 578333954
Previously we were allocating memory on the message's arena every time we performed a `map[key]` or `map.get(key)` operation.  This is unnecessary, as the key's data is only needed ephemerally, for the duration of the lookup, and we can therefore alias the Python object's string data instead of copying it.

This required fixing a bug in the convert.c operation.  Previously in the `arena==NULL` case, if the user passes a bytes object instead of a unicode string, the code would return a pointer to a temporary Python object that had already been freed, leading to use-after-free.  I fixed this by referencing the bytes object's data directly, and using utf8_range to verify the UTF-8.

Fixes: #14571
PiperOrigin-RevId: 578563555
@anandolee anandolee requested review from a team as code owners November 2, 2023 18:05
@anandolee anandolee requested review from JasonLunn, acozzette and zhangskz and removed request for a team November 2, 2023 18:05
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Nov 2, 2023
@anandolee anandolee added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Nov 2, 2023
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Nov 2, 2023
@mkruskal-google mkruskal-google merged commit 38d3b61 into protocolbuffers:main Nov 2, 2023
copybara-service bot pushed a commit that referenced this pull request Nov 2, 2023
Closes #14617

COPYBARA_INTEGRATE_REVIEW=#14617 from anandolee:25.x ac86c5e
PiperOrigin-RevId: 578996979
protobuf-team-bot added a commit that referenced this pull request Nov 2, 2023
dongjoon-hyun added a commit to apache/spark that referenced this pull request Nov 19, 2023
…`protobuf` 4.25.1

### What changes were proposed in this pull request?

This PR aims to upgrade `protobuf-java` to 3.25.1 in order to match with the corresponding `protobuf` 4.25.

### Why are the changes needed?

`protobuf 4.25` is matched with `protobuf-java 3.25`.
- protocolbuffers/protobuf#14617

```
- set(protobuf_VERSION_STRING "4.24.0")
+ set(protobuf_VERSION_STRING "4.25.0")
- <version>3.24.0</version>
+ <version>3.25.0</version>
```

Note that I also ran

```
$ dev/connect-gen-protos.sh

$ git status
On branch SPARK-45991
Your branch is up to date with 'dongjoon/SPARK-45991'.

nothing to commit, working tree clean
```

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #43886 from dongjoon-hyun/SPARK-45991.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
prabhjyotsingh pushed a commit to acceldata-io/spark3 that referenced this pull request Feb 8, 2025
…atch with `protobuf` 4.25.1

This PR aims to upgrade `protobuf-java` to 3.25.1 in order to match with the corresponding `protobuf` 4.25.

`protobuf 4.25` is matched with `protobuf-java 3.25`.
- protocolbuffers/protobuf#14617

```
- set(protobuf_VERSION_STRING "4.24.0")
+ set(protobuf_VERSION_STRING "4.25.0")
- <version>3.24.0</version>
+ <version>3.25.0</version>
```

Note that I also ran

```
$ dev/connect-gen-protos.sh

$ git status
On branch SPARK-45991
Your branch is up to date with 'dongjoon/SPARK-45991'.

nothing to commit, working tree clean
```

No.

Pass the CIs.

No.

Closes apache#43886 from dongjoon-hyun/SPARK-45991.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit de17724)
prabhjyotsingh pushed a commit to acceldata-io/spark3 that referenced this pull request Feb 8, 2025
…atch with `protobuf` 4.25.1

This PR aims to upgrade `protobuf-java` to 3.25.1 in order to match with the corresponding `protobuf` 4.25.

`protobuf 4.25` is matched with `protobuf-java 3.25`.
- protocolbuffers/protobuf#14617

```
- set(protobuf_VERSION_STRING "4.24.0")
+ set(protobuf_VERSION_STRING "4.25.0")
- <version>3.24.0</version>
+ <version>3.25.0</version>
```

Note that I also ran

```
$ dev/connect-gen-protos.sh

$ git status
On branch SPARK-45991
Your branch is up to date with 'dongjoon/SPARK-45991'.

nothing to commit, working tree clean
```

No.

Pass the CIs.

No.

Closes apache#43886 from dongjoon-hyun/SPARK-45991.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit de17724)
(cherry picked from commit cba5a11)
prabhjyotsingh pushed a commit to acceldata-io/spark3 that referenced this pull request Feb 8, 2025
…atch with `protobuf` 4.25.1

This PR aims to upgrade `protobuf-java` to 3.25.1 in order to match with the corresponding `protobuf` 4.25.

`protobuf 4.25` is matched with `protobuf-java 3.25`.
- protocolbuffers/protobuf#14617

```
- set(protobuf_VERSION_STRING "4.24.0")
+ set(protobuf_VERSION_STRING "4.25.0")
- <version>3.24.0</version>
+ <version>3.25.0</version>
```

Note that I also ran

```
$ dev/connect-gen-protos.sh

$ git status
On branch SPARK-45991
Your branch is up to date with 'dongjoon/SPARK-45991'.

nothing to commit, working tree clean
```

No.

Pass the CIs.

No.

Closes apache#43886 from dongjoon-hyun/SPARK-45991.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit de17724)
(cherry picked from commit cba5a11)
shubhluck pushed a commit to acceldata-io/spark3 that referenced this pull request May 16, 2025
…atch with `protobuf` 4.25.1

This PR aims to upgrade `protobuf-java` to 3.25.1 in order to match with the corresponding `protobuf` 4.25.

`protobuf 4.25` is matched with `protobuf-java 3.25`.
- protocolbuffers/protobuf#14617

```
- set(protobuf_VERSION_STRING "4.24.0")
+ set(protobuf_VERSION_STRING "4.25.0")
- <version>3.24.0</version>
+ <version>3.25.0</version>
```

Note that I also ran

```
$ dev/connect-gen-protos.sh

$ git status
On branch SPARK-45991
Your branch is up to date with 'dongjoon/SPARK-45991'.

nothing to commit, working tree clean
```

No.

Pass the CIs.

No.

Closes apache#43886 from dongjoon-hyun/SPARK-45991.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit de17724)
(cherry picked from commit cba5a11)
senthh pushed a commit to acceldata-io/spark3 that referenced this pull request May 26, 2025
…atch with `protobuf` 4.25.1

This PR aims to upgrade `protobuf-java` to 3.25.1 in order to match with the corresponding `protobuf` 4.25.

`protobuf 4.25` is matched with `protobuf-java 3.25`.
- protocolbuffers/protobuf#14617

```
- set(protobuf_VERSION_STRING "4.24.0")
+ set(protobuf_VERSION_STRING "4.25.0")
- <version>3.24.0</version>
+ <version>3.25.0</version>
```

Note that I also ran

```
$ dev/connect-gen-protos.sh

$ git status
On branch SPARK-45991
Your branch is up to date with 'dongjoon/SPARK-45991'.

nothing to commit, working tree clean
```

No.

Pass the CIs.

No.

Closes apache#43886 from dongjoon-hyun/SPARK-45991.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit de17724)
(cherry picked from commit cba5a11)
shubhluck pushed a commit to acceldata-io/spark3 that referenced this pull request Sep 3, 2025
…atch with `protobuf` 4.25.1

This PR aims to upgrade `protobuf-java` to 3.25.1 in order to match with the corresponding `protobuf` 4.25.

`protobuf 4.25` is matched with `protobuf-java 3.25`.
- protocolbuffers/protobuf#14617

```
- set(protobuf_VERSION_STRING "4.24.0")
+ set(protobuf_VERSION_STRING "4.25.0")
- <version>3.24.0</version>
+ <version>3.25.0</version>
```

Note that I also ran

```
$ dev/connect-gen-protos.sh

$ git status
On branch SPARK-45991
Your branch is up to date with 'dongjoon/SPARK-45991'.

nothing to commit, working tree clean
```

No.

Pass the CIs.

No.

Closes apache#43886 from dongjoon-hyun/SPARK-45991.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit de17724)
(cherry picked from commit cba5a11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

Comments