Mike Kruskal
2f6982e644
Automated rollback of commit b09b3e46fe
.
...
PiperOrigin-RevId: 621354397
11 months ago
Jie Luo
baf211bf63
Automated rollback of commit de8e550e90
.
...
PiperOrigin-RevId: 621326794
11 months ago
Protobuf Team Bot
b6fbc98971
Auto-generate files after cl/621284070
11 months ago
Hong Shin
f520cf3dbf
upb:decode initialize int inside loop for upb_DecodeLongVarintReturn
...
PiperOrigin-RevId: 621284070
11 months ago
Protobuf Team Bot
1cb1e44a60
Record PDProto in build stamp by emitting weak symbols.
...
PiperOrigin-RevId: 621276985
11 months ago
Protobuf Team Bot
648c38bd96
Internal change
...
PiperOrigin-RevId: 621265581
11 months ago
Protobuf Team Bot
7dddca8503
Automated rollback of commit 6a2bf46971
.
...
PiperOrigin-RevId: 621254457
11 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
11 months ago
Protobuf Team Bot
3a2cd26c13
Auto-generate files after cl/621236613
11 months ago
Mike Kruskal
4295b95605
Internal change
...
PiperOrigin-RevId: 621236613
11 months ago
Protobuf Team Bot
063c198f59
add empty case to extend repeated and map tests, fix map methods that consumed self
...
PiperOrigin-RevId: 621158946
11 months ago
Protobuf Team Bot
d8251ebc43
Allow string_type for Edition 2023.
...
PiperOrigin-RevId: 621050370
11 months ago
Protobuf Team Bot
132168069d
Auto-generate files after cl/621041035
11 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
11 months ago
Mike Kruskal
a916d447c0
Update dependency on setup-php
...
PiperOrigin-RevId: 621030474
11 months ago
Protobuf Team Bot
acdc89a375
Minor cleanup: IWYU, clang-tidy, etc.
...
PiperOrigin-RevId: 621020233
11 months ago
Mike Kruskal
b497787aef
Enable visionos tests after GH runner update
...
PiperOrigin-RevId: 620965206
11 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
11 months ago
Protobuf Team Bot
ab092fc810
Auto-generate files after cl/620857434
11 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
11 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
11 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
Protobuf Team Bot
1f1e64f804
Auto-generate files after cl/619266468
11 months ago
Mike Kruskal
19c4a7d647
Close conformance test gaps for delimited encoding.
...
This documents existing behavior before we attempt to fix the issues in editions.
PiperOrigin-RevId: 619266468
11 months ago
Protobuf Team Bot
f5c53ac460
Fix build for older compilers.
...
If it doesn't properly do constant initialization on globals we should
not try to call virtual functions on these objects during dynamic
initialization.
Turn off the optimization in these cases.
PiperOrigin-RevId: 619251810
11 months ago
Protobuf Team Bot
b5e69ae141
Auto-generate files after cl/619244115
11 months ago
Mike Kruskal
11e767a899
Fix latent bug in upb editions implementation caught by python conformance tests.
...
PiperOrigin-RevId: 619244115
11 months ago
Protobuf Team Bot
e2d0a9e2a4
Auto-generate files after cl/619196103
11 months ago
Eric Salo
2d9c00ccec
upb: clean up open vs closed enums in the Dart gencode
...
PiperOrigin-RevId: 619196103
11 months ago
Protobuf Team Bot
d4525cb9ed
Automated Code Change
...
PiperOrigin-RevId: 619115088
11 months ago
Jie Luo
a2cc9f7b62
internal change
...
PiperOrigin-RevId: 619038132
11 months ago
Protobuf Team Bot
0f2ad6db5a
Auto-generate files after cl/619015714
11 months ago
Sandy Zhang
274bc7f26f
Move java_features.proto to java/core/srce/main/resources
...
This also fixes maven to package this correctly as google/protobuf/java_features.proto (same dir as WKT/descriptor.proto) instead of com/google/protobuf/java_features.proto.
Fixes https://github.com/protocolbuffers/protobuf/issues/16155
PiperOrigin-RevId: 619015714
11 months ago