Deanna Garcia
3cfab5d1ef
Attempt to fix test
2 years ago
Deanna Garcia
031a12b6a5
Move pyext to python dir and change test installation
2 years ago
Deanna Garcia
30b9f9a2da
Change directory to look for wheels
2 years ago
Deanna Garcia
c0d3ff4ca5
Change test name and download path
2 years ago
Deanna Garcia
f0c0385a5a
Fix workspace
2 years ago
Deanna Garcia
68e6248950
Fix workspace sha
2 years ago
Deanna Garcia
ac7af1d64c
Fix dependency
2 years ago
deannagarcia
4ae547f9f8
Merge branch 'main' into srcWhl
2 years ago
Deanna Garcia
9880136636
Add bazel target for source distribution
2 years ago
Eric Salo
02cf7aaa1d
upb_Array_Resize() now correctly clears new values
...
PiperOrigin-RevId: 496255949
2 years ago
Eric Salo
8797415383
mark the public array accessors as UPB_API
...
PiperOrigin-RevId: 496140567
2 years ago
Eric Salo
abed1995a9
implement some simple array accessors for Dart
...
add upb_Message_GetOrCreateMutableArray()
add some array wrappers to upbc_so.c
PiperOrigin-RevId: 495976356
2 years ago
Eric Salo
4f8734694c
rename the array accessors to match the other accessors
...
upb_MiniTable_GetArray() -> upb_Message_GetArray()
upb_MiniTable_GetMutableArray() -> upb_Message_GetMutableArray()
upb_MiniTable_ResizeArray() -> upb_Message_ResizeArray()
PiperOrigin-RevId: 495809284
2 years ago
Protobuf Team Bot
85fcfcb792
Fix a param naming issue for upb_Message_InsertMapEntry. Should just be mini_table instead of map_entry_mini_table
...
PiperOrigin-RevId: 495621671
2 years ago
Eric Salo
d9ee7f5b10
implement end-to-end dart unit test
...
PiperOrigin-RevId: 495384181
2 years ago
Eric Salo
9ab09b47fa
fix unset mini table field presence bug
...
PiperOrigin-RevId: 495373227
2 years ago
Joshua Haberman
fa2481ddeb
Unified accessor for WhichOneof().
...
PiperOrigin-RevId: 495220998
2 years ago
Protobuf Team Bot
9e9d43b462
Add support for promoting unlinked map fields from unknown to upb_Map.
...
PiperOrigin-RevId: 494820200
2 years ago
Mike Kruskal
ea1996f40d
Separate pip and fuzzing_py wrappers into separate files.
...
This will allow cases where downstream repos don't depend on fuzzing_py but do use pip.
PiperOrigin-RevId: 494767924
2 years ago
Eric Salo
11fc16328a
fix fuzzer failure due to a bad map descriptor
...
Maps may only have exactly two fields. Fail when we see otherwise.
PiperOrigin-RevId: 494634279
2 years ago
Eric Salo
e6e48dfea3
another dart code generator snapshot
...
PiperOrigin-RevId: 494618679
2 years ago
Joshua Haberman
4a581e5cd0
Fixed Lexan builds that were broken by cl/494400285.
...
PiperOrigin-RevId: 494428378
2 years ago
Eric Salo
1b0b06f082
allow reserved enums to be negative
...
https://github.com/protocolbuffers/upb/issues/1024
PiperOrigin-RevId: 494414605
2 years ago
Joshua Haberman
68d1d91475
Separated out buffering code into upb_EpsCopyInputStream.
...
This mirrors the structure of C++ protobuf, which has an EpsCopyInputStream class.
This will lay the foundation for making EpsCopyInputStream capable of true streaming, by reading its input from a ZeroCopyInputStream. It also lets us test EpsCopyInputStream separately from the decoder: see the new unit test that fuzzes upb_EpsCopyInputStream.
After this CL is submitted, the two decoders (the normal decoder and the fast decoder) should no longer be accessing the members of upb_EpsCopyInputStream.
PiperOrigin-RevId: 494400285
2 years ago
Protobuf Team Bot
9e89142283
Add upb_MiniTableField_IsClosedEnum API.
...
PiperOrigin-RevId: 494269273
2 years ago
Protobuf Team Bot
e231dc955b
Fix Upb Unknown to repeated message promotion when initial message has null upb_Array.
...
PiperOrigin-RevId: 494044387
2 years ago
Jie Luo
0def88b582
Internal change only
...
PiperOrigin-RevId: 493925498
2 years ago
Eric Salo
3bac8780cb
normalize most of the message accessors:
...
- Rename the accessors from upb_MiniTable_Foo() to upb_Message_Foo()
- delete _upb_Message_Clearext() which is now redundant
- Allow the getters and setters to accept both extension and non-extension fields
- Add a (upb_Arena*) param to setters (only needed for extensions)
- Change setters from void to bool (since extensions may require allocations)
PiperOrigin-RevId: 493760399
2 years ago
Jie Luo
44e6f6699a
Internal change only
...
PiperOrigin-RevId: 493742523
2 years ago
Protobuf Team Bot
79abc9f1a1
Implement UPB_UNREACHABLE for Visual C++.
...
See https://stackoverflow.com/a/60802890 .
PiperOrigin-RevId: 493726837
2 years ago
Jie Luo
0980a7b418
Internal change only
...
PiperOrigin-RevId: 493712594
2 years ago
Eric Salo
3f1c7f121b
update PHP and Ruby to use the new accessors, delete the old ones
...
PiperOrigin-RevId: 493109199
2 years ago
Mike Kruskal
1fee6d8327
Expand visibility of amalgamation targets.
...
This will give us more freedom to refactor PHP and Ruby runtimes as part of go/protobuf-bazelification.
PiperOrigin-RevId: 493074147
2 years ago
Eric Salo
a07c5d3fe8
snapshot some pending dart work
...
PiperOrigin-RevId: 493073994
2 years ago
Deanna Garcia
92dbe4b8bb
Add license file to pypi wheels.
...
Addresses https://github.com/protocolbuffers/protobuf/issues/10936 .
This requires updating to the newest version of rules_python to use the new py_wheel API that includes a parameter for extra distinfo files
PiperOrigin-RevId: 493060514
2 years ago
Eric Salo
b747edb830
append "ByDef" to names of message accessors that use reflection
...
PiperOrigin-RevId: 493018484
2 years ago
Eric Salo
a3e49f90ac
add some formatted append functions to the string class
...
PiperOrigin-RevId: 492571663
2 years ago
Copybara-Service
65a329a4df
Merge pull request #991 from mkruskal-google:utf8_range
...
PiperOrigin-RevId: 492552897
2 years ago
Eric Salo
f458e05718
add some UPB_API / UPB_API_INTERNAL declarations
...
PiperOrigin-RevId: 492551734
2 years ago
Eric Salo
b98c7c7b50
move non-conformance tests and protos into upb/test/
...
create upb/test/BUILD
PiperOrigin-RevId: 492534429
2 years ago
Eric Salo
ae24d717b0
create initial dart ffigen hooks
...
PiperOrigin-RevId: 492528444
2 years ago
Eric Salo
f5f8675fa8
add a stdout-generating variant of upbdev_ProcessOutput()
...
upbdev_ProcessStdout() does the same thing as upbdev_ProcessOutput() except
instead of returning the serialized buffer it just sends it directly to stdout.
PiperOrigin-RevId: 492511049
2 years ago
Mike Kruskal
ee56471047
Skip pip installation for unsupported versions of python.
...
This will generate a warning, but won't fail unless the pip dependencies are actually used by Bazel runs.
PiperOrigin-RevId: 492485607
2 years ago
Mike Kruskal
4069649ecd
Switch to cmake fetch instead of git submodules
2 years ago
Sandy Zhang
7fc5a881ee
Fix mergeable.yml multi-line string syntax to fix invalid yaml parse error.
...
PiperOrigin-RevId: 492313296
2 years ago
Mike Kruskal
3e078f5fe4
Add CMake+Bazel dependencies on utf8_range repo
2 years ago
Mike Kruskal
c7456d1d9f
Delete vendored utf8_range
2 years ago
Sandy Zhang
e66e69d791
Prevent merging PRs directly in main with a failing Mergeable check, except when an `mergeable:force-allow` label is present.
...
This serves to prevent accidental PR merges outside of Copybara, but is not actually enforced by branch protection.
PiperOrigin-RevId: 492255443
2 years ago
Eric Salo
527a277cc9
fix a compiler warning in upbdev
...
PiperOrigin-RevId: 492117086
2 years ago
Joshua Haberman
ca828897c2
Fixed a bug with maps on 32-bit machines.
...
We were not calculating proper offsets for upb_MapEntryData in cases
where the compiler was run on a different word size than the runtime.
PiperOrigin-RevId: 492114576
2 years ago