Adam Cozzette
4ec9170bcd
Fix layering check for usage of gtest
...
To satisfy the layering check, we need to depend on :gtest for the headers, in
addition to :gtest_main which provides the main() function.
There are a bunch of formatting changes as a side effect of this, but they
should be harmless.
PiperOrigin-RevId: 594318263
12 months ago
Richard Levasseur
06776d20a5
Add `load()` statements for builtin Python rules/providers
...
PiperOrigin-RevId: 584089414
1 year ago
Jie Luo
656d62ae32
internal change
...
PiperOrigin-RevId: 572965793
1 year ago
Adam Cozzette
501ececd39
Reorganize upb file structure
...
This change moves almost everything in the `upb/` directory up one level, so
that for example `upb/upb/generated_code_support.h` becomes just
`upb/generated_code_support.h`. The only exceptions I made to this were that I
left `upb/cmake` and `upb/BUILD` where they are, mostly because that avoids
conflict with other files and the current locations seem reasonable for now.
The `python/` directory is a little bit of a challenge because we had to merge
the existing directory there with `upb/python/`. I made `upb/python/BUILD` into
the BUILD file for the merged directory, and it effectively loads the contents
of the other BUILD file via `python/build_targets.bzl`, but I plan to clean
this up soon.
PiperOrigin-RevId: 568651768
1 year ago
Adam Cozzette
0d1ba13e83
Move everything into new upb/ directory
1 year ago
Adam Cozzette
5aca728f72
Reformat copyright headers
...
PiperOrigin-RevId: 554509301
1 year ago
Richard Levasseur
8c71bc4593
Internal change
...
PiperOrigin-RevId: 547927505
1 year ago
Jie Luo
00a9807c9e
Remove some message factory tests in python upb
...
PiperOrigin-RevId: 540696051
2 years ago
Jie Luo
0ea9f73be3
skip some upb python test which extend non iterable value to repeated field
...
PiperOrigin-RevId: 539783147
2 years ago
Jie Luo
56a770818c
Skip some upb tests for message factory. To get rid of copybara complains
...
PiperOrigin-RevId: 539166171
2 years ago
Jie Luo
cfb8b3dd6d
Update upb deps and remove testAddTypeError test in python upb
...
PiperOrigin-RevId: 538930281
2 years ago
Protobuf Team Bot
73ee41cbb2
license changes
...
PiperOrigin-RevId: 534600788
2 years ago
Jie Luo
7f0092a802
Internal change
...
PiperOrigin-RevId: 534490554
2 years ago
Deanna Garcia
8c10056074
Add back UPB numpy test now that it has been moved in the protobuf directory.
...
This also includes an update to the newest protobuf commit.
PiperOrigin-RevId: 525551351
2 years ago
Deanna Garcia
e6dd5bfefe
Comment out //third_party/upb/python/pb_unit_tests:numpy_test to allow for a change in protobuf directories. This will be uncommented as soon as the protobuf change gets through.
...
PiperOrigin-RevId: 524343065
2 years ago
Mike Kruskal
d260ab343e
Add windows CI
...
PiperOrigin-RevId: 520478558
2 years ago
Mike Kruskal
06b5775fd7
Remove reference to deleted test.
...
This caused failures in protobuf CI
PiperOrigin-RevId: 501972926
2 years ago
Jie Luo
9b5a084118
check if testCreatePrototypeOverride exist
...
PiperOrigin-RevId: 501229501
2 years ago
Jie Luo
0def88b582
Internal change only
...
PiperOrigin-RevId: 493925498
2 years ago
Jie Luo
44e6f6699a
Internal change only
...
PiperOrigin-RevId: 493742523
2 years ago
Jie Luo
0980a7b418
Internal change only
...
PiperOrigin-RevId: 493712594
2 years ago
Mike Kruskal
248ed86f2b
Add better handling for systems without python3 installed.
...
The current behavior will crash any Bazel command immediately, due to our declared pip dependencies in WORKSPACE, if python3 can't be found. The new behavior will mock out these workspace dependencies and allow any non-python targets to run. Python targets will be skipped by wildcard expressions if there's no system python3, and will fail when run directly, due to compatibility mismatch.
PiperOrigin-RevId: 492085254
2 years ago
Sandy Zhang
a1d054be85
Internal Change
...
PiperOrigin-RevId: 490276306
2 years ago
Protobuf Team Bot
d3ec4b63c9
Add Parse/Serialize templates to support shared_ptr/unique_ptr.
...
Fix UBSAN in _upb_Message_Clear due to unsigned UPB_PTR_AT
PiperOrigin-RevId: 489007182
2 years ago
Joshua Haberman
023c4da591
Enabled TAP testing for upb on Windows via Lexan.
...
We disable targets that are not currently working on Windows.
PiperOrigin-RevId: 488560033
2 years ago
Protobuf Team Bot
c172bfb4bc
Import numpy_test in upb wrapper from protobuf
...
PiperOrigin-RevId: 479637272
2 years ago
Mike Kruskal
63a4a7d74b
Bump pinned protobuf version
...
PiperOrigin-RevId: 466825011
2 years ago
Protobuf Team Bot
79b735a7d7
Make upb numpy type checks consistent with pure python and cpp.
...
PiperOrigin-RevId: 464907203
2 years ago
Mike Kruskal
17b6451684
Bumping protobuf dependency to newer commit
...
PiperOrigin-RevId: 460811319
2 years ago
Joshua Haberman
f96b569eb3
Fixes a few bugs in the descriptor mapping containers.
...
1. `for x in mapping` now yields keys rather than values, to match Python conventions and the behavior of the old library.
2. Lookup operations now correctly reject unhashable types as map keys.
3. We implement `repr()` to use the same format as `dict`
PiperOrigin-RevId: 459491734
2 years ago
Joshua Haberman
4ffeaa6a58
Fixed Python Tests by disabling the numpy test for now.
...
PiperOrigin-RevId: 452357087
3 years ago
Protobuf Team
f439bfb6d9
Enable numpy_test for upb python.
...
PiperOrigin-RevId: 450500895
3 years ago
Joshua Haberman
5ae371162d
Fixed two reference leaks in unknown field processing.
...
PiperOrigin-RevId: 449248186
3 years ago
Joshua Haberman
a60e9a379e
Fixed the mingw build by adding compatibility code for vsnprintf()
...
PiperOrigin-RevId: 448611947
3 years ago
Joshua Haberman
3e75131bc1
Fixed Python test by implementing RichCompare() for RepeatedCompositeContainer.
...
PiperOrigin-RevId: 447613334
3 years ago
Joshua Haberman
d72d98495d
Fixed a Python test by adding a new map insert function that distinguishes between insert and update.
...
PiperOrigin-RevId: 447214618
3 years ago
Joshua Haberman
0abdee08b4
Fixed a test by extending Pythonic initialization to handle dicts in repeated fields.
...
PiperOrigin-RevId: 447128858
3 years ago
Joshua Haberman
f70eee4cce
Fixed broken tests by implementing RepeatedScalarContainer.__reduce__.
...
PiperOrigin-RevId: 447125225
3 years ago
Joshua Haberman
b034f5d196
Fixed broken test by implementing FieldDescriptor.has_presence.
...
PiperOrigin-RevId: 447124542
3 years ago
Joshua Haberman
2eb973f53a
Added a GitHub Action to test Python+upb on Windows, and fixed a couple of bugs this revealed.
...
PiperOrigin-RevId: 446322046
3 years ago
Joshua Haberman
22c7daf1e3
Update to new upb module name.
...
PiperOrigin-RevId: 444699974
3 years ago
Joshua Haberman
f75d707ae9
A small test cleanup for Python.
...
PiperOrigin-RevId: 444586482
3 years ago
Joshua Haberman
92e06d027c
Fix for internal running of tests.
...
PiperOrigin-RevId: 444297087
3 years ago
Joshua Haberman
3e0890c055
Added support for UnknownFieldSet.
...
PiperOrigin-RevId: 443143448
3 years ago
Protobuf Team
e6e73198e3
Ignore recently added pb unit test method
...
PiperOrigin-RevId: 438590118
3 years ago
Protobuf Team
b8edc7153f
Internal change
...
PiperOrigin-RevId: 435056074
3 years ago
Joshua Haberman
ac27e3b317
Remaining fixes to make Python tests pass in google3.
3 years ago
Joshua Haberman
61f904efb7
Strip out OSS-only test for google3.
3 years ago
Joshua Haberman
0853c41b9c
Factored out common logic around our python test wrappers.
3 years ago
Matt Kulukundis
9d9e36125c
another license
3 years ago