Commit Graph

147 Commits (main)

Author SHA1 Message Date
Sandy Zhang 8a11178606 Add system_python to protobuf_deps.bzl.
These are needed to get python headers for Python C++ and Python UPB from local system python

PiperOrigin-RevId: 629786458
2024-05-01 11:43:30 -07:00
Protobuf Team Bot 9ea682d1ee Add a TODO to use Layout::WithStaticSizes in SerialArenaChunk when we update the abseil release.
PiperOrigin-RevId: 628073678
2024-04-25 07:49:48 -07:00
Protobuf Team Bot 21d75f861c Remove references to rules_proto
They are not needed after the rules are move into protobuf repo.
Except for the reference to toolchain type, which is currently in rules_proto and can be moved after the implementation is moved into protobuf repo.

PiperOrigin-RevId: 622176865
2024-04-05 07:50:25 -07:00
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
2024-04-03 01:37:51 -07:00
Mike Kruskal 396e26b475 Enable C++ tests for Bazel 7 on mac
PiperOrigin-RevId: 610573579
2024-02-26 17:13:47 -08:00
Sandy Zhang a75da99985 Update comment to indicate RC2 commit has been promoted to 20240116.0 release commit 2024-01-22 16:25:15 -05:00
Sandy Zhang 116dd9cd24 Update to rc2 2024-01-22 15:08:56 -05:00
Sandy Zhang 734e8e6adf Update sha hash to match new absl commit 2024-01-17 16:20:05 -05:00
Sandy Zhang c0ab33b520 Update to latest absl RC 20240116.rc1 2024-01-17 16:08:22 -05:00
Charles OuGuo 64a88ffb86 Bump rules_apple to 3.1.1 (#15040)
On my local setup (WSL Ubuntu), I noticed that attempting to build Ruby tests fails, because of an error in `rules_apple`:

```
charles@AlterCation:~/protobuf$ bazel test //ruby/tests/...
WARNING: Build option --test_env has changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).
/usr/local/bin/ruby: No such file or directory -- bundler/exe/bundler (LoadError)
ERROR: Traceback (most recent call last):
        File "/home/charles/.cache/bazel/_bazel_charles/dcd9f4fa8672aac49359d11b9a237597/external/build_bazel_rules_apple/apple/internal/rule_support.bzl", line 221, column 36, in <toplevel>
                deps_cfg = apple_common.multi_arch_split,
Error: 'apple_common' value has no field or method 'multi_arch_split'
```

This is an error previously reported in `rules_apple`, and fixed here: https://github.com/bazelbuild/rules_apple/pull/2034

Looks like that was pulled into release 3.0.0, but I figured we may as well try for 3.1.1 ([the latest release](https://github.com/bazelbuild/rules_apple/releases)).

With this bump, I no longer get the above error.

Closes #15040

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15040 from shaldengeki:ouguoc/bump-rules-apple-3.1.1 5e127dc4aa
PiperOrigin-RevId: 590284088
2023-12-12 11:53:08 -08:00
Mike Kruskal 2b79fb5bd2 Bump rules_cc to 0.0.9 for Bazel 7 support
PiperOrigin-RevId: 590230389
2023-12-12 09:25:08 -08:00
Mike Kruskal 571b727cb6 Make rules_ruby a dev-only dependency.
There is no canonical rules_ruby repo today, and we don't want our fork to become one.  In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby.

Fixes #14569

PiperOrigin-RevId: 584393841
2023-11-21 12:10:30 -08:00
Adam Cozzette 5ca84008fc Move utf8_range into the protobuf repo
This makes third_party/utf8_range no longer a Git subtree, but instead the
permanent location and source of truth for utf8_range. It is also now
incorporated into the @com_google_protobuf Bazel repo. Utf8_range still has its
own separate CMake build for now, though.

PiperOrigin-RevId: 580682733
2023-11-08 15:43:35 -08:00
Adam Cozzette f247630a10 Add CI coverage for utf8_range
We will soon be moving utf8_range into the protobuf repo, not as a subtree
anymore but as the real source of truth. This change adds CI coverage in
advance so that there will not be a lapse in coverage.

I also upgraded our pinned versions of rules_fuzzing and rules_python, to fix
some errors that came up with Bazel 6 and Python 3.12. I had to patch
rules_fuzzing but I am working on upstreaming the fixes.

PiperOrigin-RevId: 579987379
2023-11-06 16:12:05 -08:00
Adam Cozzette 8f831e973a Update Python versions to reflect that we now support 3.8 through 3.11
PiperOrigin-RevId: 569317472
2023-09-28 16:12:04 -07:00
Adam Cozzette 0d995193e5 Remove `upb_deps()` helper function
This separate helper for upb dependencies no longer makes sense now that upb
has been merged into the protobuf repo. This change deletes that helper and
moves the upb-specific dependencies into the `protobuf_deps()` function.

I noticed that the Python package deps need to be updated to reflect our
current support level, but I will fix that in a followup CL.

PiperOrigin-RevId: 568997625
2023-09-27 16:48:24 -07:00
Joshua Haberman 2c7193b810 Migrated upb rules to use proto_common.
PiperOrigin-RevId: 568943311
2023-09-27 13:29:15 -07:00
Adam Cozzette c32a2f9965 Remove upb dependency from protobuf_deps.bzl
This dependency is obsolete now that upb has been merged into the protobuf
Bazel repo.

PiperOrigin-RevId: 568924745
2023-09-27 12:18:29 -07:00
zhangskz 981aeb1ef8 Update to latest absl LTS patch 20230802.1 (#14145)
Closes #14145

PiperOrigin-RevId: 567165127
2023-09-20 20:29:10 -07:00
Protobuf Team Bot fbdeb5af0b Add prefetching to arena allocations.
PiperOrigin-RevId: 565061139
2023-09-13 08:45:30 -07:00
Protobuf Team Bot 420f92a475 Updates with the latest rules_kotlin 1.8.1.
PiperOrigin-RevId: 563772250
2023-09-08 09:28:00 -07:00
Adam Cozzette 7050c6b0ae Update protobuf and upb pinned Bazel versions
These cross dependencies will be going away soon when we merge protobuf and upb
into a single Bazel repo, but I thought it would be good to update these just
in case we need to do a release before that merge happens.

PiperOrigin-RevId: 560756369
2023-08-28 10:49:58 -07:00
Jie Luo 836fb65bb7 Test part: upb CopyFrom the default empty message should just clear instead of deep copy
from memory

fix https://github.com/protocolbuffers/protobuf/issues/13485

PiperOrigin-RevId: 559888172
2023-08-24 15:29:47 -07:00
Adam Cozzette 7d5592e518 Add upb "No System Python" test run
This test validates that upb Python targets can be built successfully even if
Python is not installed locally.

I also updated our pinned upb version to pull in some recent fixes needed for
this test run.

PiperOrigin-RevId: 559504790
2023-08-23 12:20:16 -07:00
Mike Kruskal 35030b14a1 Upgrade rules_python dependency.
PiperOrigin-RevId: 559226153
2023-08-22 14:45:18 -07:00
martijneken b1813d30c2 Update utf8_range to the latest version (#13469)
Picks up an OSS build fix for unused function CodepointSkipBackwards: d863bc33e1

Closes #13469

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13469 from martijneken:utf8-range-bump f52ea9d7dd
PiperOrigin-RevId: 559146094
2023-08-22 10:23:28 -07:00
Adam Cozzette 8059da24d2 Start adding upb test runs to CI for protobuf repo
This change moves the upb Fastbuild, Optimized, and FastTable test runs over to
the protobuf repo CI in preparation for moving the upb codebase itself. There
are a bunch more test runs to move, but this initial change handles the easy
ones first.

I also updated our pinned upb version to the current head to pick up some
recent fixes.

PiperOrigin-RevId: 557486174
2023-08-16 08:29:10 -07:00
zhangskz e7bb34db3c Update absl submodule and dep to latest 20230802.0 LTS (#13515)
Fixes https://github.com/protocolbuffers/protobuf/issues/13499

Needs to be backported to 24.x

Closes #13515

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13515 from zhangskz:update-absl 508f2912e3
PiperOrigin-RevId: 555679980
2023-08-10 15:43:20 -07:00
Protobuf Team Bot 6eecc4f98d Internal change
PiperOrigin-RevId: 555660413
2023-08-10 15:33:16 -07:00
zhangskz 4c2092a1e3
Update absl submodule and dep to latest 20230802.0 LTS (#13515)
* Update absl submodule and dep to latest 20230802.0 LTS

* Fix absl submodule

* Update submodule

* Update absl submodule to correct commit
2023-08-10 17:44:59 -04:00
Sandy Zhang e3b0943412 Update protobuf's upb dependency to current main HEAD.
PiperOrigin-RevId: 554500222
2023-08-07 09:31:27 -07:00
Jason Lunn c52d80cf04 Ruby FFI implementation (#13343)
Supersedes #11483.

Closes #13343

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13343 from protocolbuffers:simultaneous_ffi bcb4bb7842
PiperOrigin-RevId: 550782245
2023-07-24 23:17:47 -07:00
Jason Lunn 59e19a7db8 Add JRuby 9.3 and 9.4 to the test matrix under both Bazel versions. (#13296)
Prepare for 9.2 to be removed.

Closes #13296

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13296 from protocolbuffers:jruby_version_bump 82924ab6b3
PiperOrigin-RevId: 548279470
2023-07-14 20:11:41 -07:00
Jason Lunn 67dee2987b Sync UPB. (#13286)
Closes #13286

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13286 from JasonLunn:upd-update-for-ffi bac2123982
PiperOrigin-RevId: 547898482
2023-07-13 13:23:12 -07:00
Mike Kruskal 9d43502e10 Update upb dependency (#13271)
Closes #13271

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13271 from mkruskal-google:main 8fbcf76d25
PiperOrigin-RevId: 547269038
2023-07-11 12:48:04 -07:00
Jie Luo 96ca7d96da Raise warinings when extend repeated field with none iterable in OSS. OSS will raise errors soon
PiperOrigin-RevId: 542037298
2023-06-20 13:49:33 -07:00
Chad Wilson c95ebb7bd8 deps: Update Guava to 32.0.1 (#13099)
Follow-up from #12953 to update to `32.0.1` to fix an issue on windows:

https://github.com/google/guava/releases/tag/v32.0.1

The underlying issue likely does not affect protobuf as it does not appear to (directly) use the affected `Files.createTempDir` or `FileBackedOutputStream` code which was apparently broken on Windows in `32.0.0`.

Seems best to update anyway.

Closes #13099

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13099 from chadlwilson:bump-guava-3201 30bd3f7563
PiperOrigin-RevId: 541960623
2023-06-20 09:59:40 -07:00
Protobuf Team Bot e9391b4b3e Update rules_java to the latest version
PiperOrigin-RevId: 540013522
2023-06-13 11:04:16 -07:00
Jie Luo 3560e2381e Remove RegisterExtension in message class
PiperOrigin-RevId: 539568063
2023-06-12 00:39:23 -07:00
Chad Wilson cd615a8c65 deps: Update Guava to 32.0.0 (#12953)
Updates Guava to [32.0.0](https://github.com/google/guava/releases/tag/v32.0.0) to include fixes for CVE-2020-8908 and CVE-2023-2976 (https://github.com/google/guava/issues/2575) which affects certain builds with shaded usage, e.g ruby via jruby/java platform such as https://rubygems.org/gems/google-protobuf/versions/3.23.2-java

- Protobuf does not appear to (directly) use the affected `Files.createTempDir` or `FileBackedOutputStream` code which might behave differently on Windows.
- Referred to #9707 and #9757 for reference
- Updated transitive dependency versions match https://mvnrepository.com/artifact/com.google.guava/guava/32.0.0-jre (note major version change for `j2objc-annotations` from `1.3` --> `2.8`)

May need backporting to `23.x` branch if sufficiently compatible.

Closes #12953

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12953 from chadlwilson:update-guava-32 9c396b6759
PiperOrigin-RevId: 538666552
2023-06-07 20:32:31 -07:00
Jie Luo f36a5c6674 Internal change
PiperOrigin-RevId: 534622899
2023-05-23 17:58:15 -07:00
Mike Kruskal 7714d57c91 Define a new set of cmake tests.
These more closely follow the standard practices of our users, where dependencies are pre-installed instead of using our provided sub-modules.  This will prevent issues such as #12201 from reoccuring.

Additionally, this cl bumps our Abseil dependency to the latest release, and fixes a GTest issue that went previously unnoticed.

PiperOrigin-RevId: 529490402
2023-05-04 12:58:57 -07:00
Deanna Garcia 99529a2209 Update abseil dependency and reorder dependencies to ensure we use the version specified in protobuf_deps.
PiperOrigin-RevId: 528838071
2023-05-02 11:21:01 -07:00
Deanna Garcia f7f003f1fd Update protobuf's UPB dependency in preparation for 23.0-rc2
PiperOrigin-RevId: 527686128
2023-04-27 14:40:33 -07:00
Deanna Garcia b26afb5a86 Update protobuf's UPB dep in preparation for the 23.0-rc1 release.
PiperOrigin-RevId: 527061210
2023-04-25 13:38:27 -07:00
Deanna Garcia bd6a0cf15b Delete old numpy_test.py file and replace references with the new one.
This is the final step to make numpy/pip_deps a test-only dependency.

PiperOrigin-RevId: 525785717
2023-04-20 10:32:18 -07:00
Deanna Garcia c7d979dbf4 Update UPB dependency
PiperOrigin-RevId: 524423191
2023-04-14 17:24:45 -07:00
Eric Salo dfb71558a2 sync to current upb and enable new unit test on upb
PiperOrigin-RevId: 518643876
2023-03-22 12:36:44 -07:00
Protobuf Team Bot 4b5652b030 Re-attach OSGI headers to lite,core, and util. This information was dropped in the move from maven to bazel.
PiperOrigin-RevId: 518267412
2023-03-21 07:35:58 -07:00
Jakob Buchgraber c0c79b2791 Bump upb version
PiperOrigin-RevId: 517972179
2023-03-20 08:15:28 -07:00