Protobuf Team Bot
1ebec9a4c3
Add `load()` statements for the builtin Bazel java rules
...
Loads are being added in preparation for moving the rules out of Bazel and into `rules_java`.
PiperOrigin-RevId: 621541265
10 months ago
Protobuf Team Bot
bc7a60c6d5
Automated rollback of commit 1cb1e44a60
.
...
PiperOrigin-RevId: 621524332
10 months ago
Protobuf Team Bot
d86fe39f04
Auto-generate files after cl/621510731
10 months ago
Protobuf Team Bot
c6f6a3291e
Add Length-Delimited Encode and Decode functions to upb.
...
PiperOrigin-RevId: 621510731
10 months ago
Protobuf Team Bot
d7f032ad15
Move private definitions out of //bazel
...
This is needed to make protobuf/bazel package minimal for other proto rules.
Keep 4 public bzl files in upb/bazel. They end up under protobuf/bazel, and they are legitimately used by other repositories.
Move upb_proto_library_internal/* under bazel/private. Those are utilities used in the rules. Moving them one level deeper makes protobuf/bazel package clean for other rules.
Move build_defs.bzl and amalgamation under /upb/bazel. Those are utilities used in the build.
Move lua.BUILD and python* uner /python/dist. Those are used in the WORKSPACE dependency setup.
PiperOrigin-RevId: 621442236
10 months ago
Protobuf Team Bot
dc5053acc4
Automated Code Change
...
PiperOrigin-RevId: 621379968
10 months ago
Protobuf Team Bot
85edb7e783
Auto-generate files after cl/621365246
10 months ago
Mike Kruskal
8d4d778b21
Automated rollback of commit 2f6982e644
.
...
PiperOrigin-RevId: 621365246
10 months ago
Jason Lunn
801049a43e
Update JRuby from 9.4.3.0 to 9.4.6.0. ( #16381 )
...
Closes #16381
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/16381 from protocolbuffers:jruby_9.4.6.0 e9d1244efa
PiperOrigin-RevId: 621364008
10 months ago
Jason Lunn
d810ef6be7
Add bigdecimal to dependencies ( #16379 )
...
In Ruby 3.4, `bigdecimal` is no longer built in. See announcement in [Ruby 3.3 release notes](https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/#:~:text=base64-,bigdecimal,-csv ).
Closes #16379
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/16379 from protocolbuffers:support_ruby_3.4.x 084063bfac
PiperOrigin-RevId: 621362101
10 months ago
Protobuf Team Bot
c49b0ace36
Auto-generate files after cl/621354397
10 months ago
Mike Kruskal
2f6982e644
Automated rollback of commit b09b3e46fe
.
...
PiperOrigin-RevId: 621354397
10 months ago
Jie Luo
baf211bf63
Automated rollback of commit de8e550e90
.
...
PiperOrigin-RevId: 621326794
10 months ago
Protobuf Team Bot
b6fbc98971
Auto-generate files after cl/621284070
10 months ago
Hong Shin
f520cf3dbf
upb:decode initialize int inside loop for upb_DecodeLongVarintReturn
...
PiperOrigin-RevId: 621284070
10 months ago
Protobuf Team Bot
1cb1e44a60
Record PDProto in build stamp by emitting weak symbols.
...
PiperOrigin-RevId: 621276985
10 months ago
Protobuf Team Bot
648c38bd96
Internal change
...
PiperOrigin-RevId: 621265581
10 months ago
Protobuf Team Bot
7dddca8503
Automated rollback of commit 6a2bf46971
.
...
PiperOrigin-RevId: 621254457
10 months ago
Jie Luo
de8e550e90
Nextgen Proto Pythonic API: Add 'in' operator
...
The “in” operator will be consistent with HasField but a little different with Proto Plus.
The detail behavior of “in” operator in Nextgen for Struct (to be consist with old Struct behavior):
-Raise TypeError if not pass a string
-Check if the key is in the struct.fields
The detail behavior of “in” operator in Nextgen(for other message):
-Raise ValueError if not pass a string
-Raise ValueError if the string is not a field
-For Oneof: Check any field under the oneof is set
-For has-presence field: check if set
-For non-has-presence field (include repeated fields): raise ValueError
PiperOrigin-RevId: 621240977
10 months ago
Protobuf Team Bot
3a2cd26c13
Auto-generate files after cl/621236613
10 months ago
Mike Kruskal
4295b95605
Internal change
...
PiperOrigin-RevId: 621236613
10 months ago
Protobuf Team Bot
063c198f59
add empty case to extend repeated and map tests, fix map methods that consumed self
...
PiperOrigin-RevId: 621158946
10 months ago
Protobuf Team Bot
d8251ebc43
Allow string_type for Edition 2023.
...
PiperOrigin-RevId: 621050370
10 months ago
Protobuf Team Bot
132168069d
Auto-generate files after cl/621041035
10 months ago
Mike Kruskal
b09b3e46fe
Add edition lifetime options for feature specs.
...
These will specify the full lifecycle of all features, enforced by protoc and runtimes that support dynamic builds.
PiperOrigin-RevId: 621041035
10 months ago
Mike Kruskal
a916d447c0
Update dependency on setup-php
...
PiperOrigin-RevId: 621030474
10 months ago
Protobuf Team Bot
acdc89a375
Minor cleanup: IWYU, clang-tidy, etc.
...
PiperOrigin-RevId: 621020233
10 months ago
Mike Kruskal
b497787aef
Enable visionos tests after GH runner update
...
PiperOrigin-RevId: 620965206
10 months ago
Protobuf Team Bot
6a2bf46971
Move all TDP parsing to use direct-to-table.
...
DynamicMessage now eagerly creates the tc_table doing proper crosslinking of TDP tables.
Remove all kTvDefault cases from TcParser.
PiperOrigin-RevId: 620943275
10 months ago
Protobuf Team Bot
ab092fc810
Auto-generate files after cl/620857434
10 months ago
Protobuf Team Bot
43fb62e846
Change LazyField to use a flat char array when the unparsed payload is small. This array can easily be allocated in the arena avoiding separate heap usage of the Cord.
...
Also, we remove the ArenaDtor and register the Cord for destruction on demand.
This avoids registering the ArenaDtor on every message with a lazy field.
PiperOrigin-RevId: 620857434
10 months ago
Mike Kruskal
f0f7be2090
Fix failure lists for JRuby and C#, which don't pass all of the new conformance tests.
...
PiperOrigin-RevId: 620366114
10 months ago
Protobuf Team Bot
4b6de0f00b
Auto-generate files after cl/620303837
11 months ago
Eric Salo
d51df2d2d7
upb: make upb_Array_Reserve() a public function
...
PiperOrigin-RevId: 620303837
11 months ago
Eric Salo
74ddc48fa9
upb: fix the Dart conformance test
...
PiperOrigin-RevId: 620299077
11 months ago
Protobuf Team Bot
7f6a0ba347
Implement Extend for Repeated
...
PiperOrigin-RevId: 620277895
11 months ago
Chris Kennelly
11ef0ffb87
Breaking Change: Ensure we allocate overaligned types with aligned operator new.
...
* The alignment may be incorrect.
* Using delete[] otherwise mismatches, since it was not allocated with
overaligned operator new.
Additionally, we add a test to ensure we do not value initialize in this case.
PiperOrigin-RevId: 620241337
11 months ago
Adam Cozzette
b8eeefe663
Internal change
...
PiperOrigin-RevId: 620116943
11 months ago
Protobuf Team Bot
539cf497c6
Update comment referencing removed CreateMaybeMessage API
...
PiperOrigin-RevId: 620089913
11 months ago
Joshua Haberman
1f6580dd0c
Added conformance test for unknown field ordering.
...
Implementations should not rearrange unknown fields for the same field number, because some field types accept multiple wire types (eg. packed and unpacked).
All languages currently pass this test except Java "full" and Obj-C.
PiperOrigin-RevId: 619953711
11 months ago
Alex Eagle
71e4061ace
feat: test bzlmod usage on CI ( #16319 )
...
Closes #16319
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/16319 from protocolbuffers:bcr d66845cfcb
PiperOrigin-RevId: 619939078
11 months ago
Protobuf Team Bot
62620979c2
Add a test for repeated field orderings demonstrating that MessageDifferencer::Equals and MessageDifferencer::Equivalent treat these cases in the same way.
...
PiperOrigin-RevId: 619712729
11 months ago
Chris Kennelly
9b2b61cfb4
Statically assert pointer alignment.
...
We use the lower bits for tagging.
PiperOrigin-RevId: 619606723
11 months ago
Protobuf Team Bot
2693af92b3
Add a field to TestOneof2.NestedMessage.
...
PiperOrigin-RevId: 619532085
11 months ago
Protobuf Team Bot
83ec410d30
Internal change
...
PiperOrigin-RevId: 619377672
11 months ago
Protobuf Team Bot
704d0454dd
Auto-generate files after cl/619359463
11 months ago
Mike Kruskal
7662fdd8ed
Fix toproto behavior for groups and required under editions
...
PiperOrigin-RevId: 619359463
11 months ago
Sandy Zhang
6c45efd297
Fix validateFeatures to be called after resolved features are actually set to this.features
...
PiperOrigin-RevId: 619296935
11 months ago
Anton Grbin
86abf35ef5
Python JSON parser: Ignore invalid enum string values if ignore_unknown_fields is set ( #15887 )
...
# Motivation
This PR fixes failing conformance tests for python with name `IgnoreUnknownEnumStringValue`.
The JSON parsing spec was discussed in https://github.com/protocolbuffers/protobuf/issues/7392 .
Recent equivalent changes for other languages:
* Swift: https://github.com/apple/swift-protobuf/pull/1345
* C#: https://github.com/protocolbuffers/protobuf/pull/15758
# Changes
- 1st commit is a noop refactoring to make relevant _ConvertScalarFieldValue invocations localized
- 2nd commit introduces the child exception of `ParseError` named `EnumStringValueParseError` which is suppressed if `ignore_unknown_fields` is set
- 3rd commit updates the conformance test failure lists
Closes #15887
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15887 from noom:anton/7392/fix-python-test fbcc93a232
PiperOrigin-RevId: 619288323
11 months ago
Jie Luo
7e033c0be1
internal chnge
...
PiperOrigin-RevId: 619287040
11 months ago