Commit Graph

76 Commits (main)

Author SHA1 Message Date
Arnim Balzer ffd5c1b92b Fix CMake shared library build using utf8_range and utf8_valid (#14867)
Instead of hardcoding static libraries, allow using the BUILD_SHARED_LIBS behaviour to allow the build of shared utf8 libraries.

Closes #14867

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/14867 from Chekov2k:main 971562ba47
PiperOrigin-RevId: 626125210
2024-04-18 13:08:38 -07:00
Sandy Zhang 116dd9cd24 Update to rc2 2024-01-22 15:08:56 -05:00
Sandy Zhang c0ab33b520 Update to latest absl RC 20240116.rc1 2024-01-17 16:08:22 -05:00
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
2023-12-28 14:41:48 -08:00
Protobuf Team Bot 9c7d2b9d83 Make the utf8_range implementation just in C
PiperOrigin-RevId: 590961088
2023-12-14 09:25:06 -08:00
Adam Cozzette d30e326ca1 Remove obsolete `github` directory from utf8_range
PiperOrigin-RevId: 580926097
2023-11-09 09:08:49 -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 24fef03259 Add support and partial CI coverage for Python 3.12
There's a test run in test_python.yml that is non-trivial to get working with
Python 3.12 due to some refactoring of our Docker images that would be needed.
But this change updates everything else to add coverage for Python 3.12.

The main changes necessary to get the builds working were to upgrade some Pip
packages via requirements.txt, including in a patch to `rules_fuzzing` that I
plan to upstream soon. I also had to take an explicit dependency on
`setuptools`.

I removed tox.ini, since it was outdated and we have not been actively
maintaining it.

PiperOrigin-RevId: 580548224
2023-11-08 08:53:27 -08:00
Adam Cozzette 01292502fa
Squashed 'third_party/utf8_range/' changes from d863bc33e..0e378bdb2 (#14679)
0e378bdb2 Add missing `<cstdint>` include to utf8_validity_fuzzer.cc

git-subtree-dir: third_party/utf8_range
git-subtree-split: 0e378bdb224cc8d4653b0db963b474839c2bb43c
2023-11-08 07:50:44 -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 cde00514e9
Expand lunit visibility to enable moving lua directory (#14199)
We will soon be moving the upb/lua directory up to the top level, so
this commit updates lunit's visibility to enable that.
2023-09-25 08:19:42 -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
Adam Cozzette 8bc29fba94
Copy upb/third_party/lunit to third_party/lunit and add BUILD.bazel (#14062)
I already merged this change in #14057, but I'm doing it again because
our syncing process deleted the new files. It should be fixed now so
that it won't do that again.
2023-09-12 16:05:57 -07:00
Protobuf Team Bot 64db35a31f Internal change
PiperOrigin-RevId: 564827652
2023-09-12 15:25:15 -07:00
Adam Cozzette 114162882c
Copy upb/third_party/lunit to third_party/lunit and add BUILD.bazel (#14057)
Now that protobuf and upb share a Bazel repo, we can merge their
third_party/ directories. Because our syncing process doesn't know about
these files, there are multiple steps involved. This first step
duplicates lunit, the next step will update the code to use this new
copy, and then finally we can delete upb/third_party/lunit.
2023-09-12 14:49:37 -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
kang jinci 7276da46ce chore(zlib.BUILD): use @platforms instead of @bazel_tools (#13326)
Closes https://github.com/protocolbuffers/protobuf/issues/13250

Closes #13326

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13326 from 4kangjc:main 205b10a771
PiperOrigin-RevId: 548787567
2023-07-17 14:05:24 -07:00
Carlos O'Ryan f2d99477a0 Merge commit '4b414d60eeaa00f6fbbbdb2f937b26601e903ee9' into chore-deps-update-utf8-range 2023-05-26 22:35:17 +00:00
Mike Kruskal 9ee3bf72de
Bump Abseil submodule to 20230125.3 (#12660)
* Bump Abseil submodule to 20230125.3

* Fix gtest installation setup with submodules
2023-05-04 10:54:32 -07:00
Mike Kruskal bb97e3feef
Squashed 'third_party/utf8_range/' changes from 72c943dea..cd1507d14 (#12583)
cd1507d14 Fix typo in pkg-config file to properly link the utf8_range libraries
3f179d134 Add pkg-config file declaring Abseil dependency of utf8_range

git-subtree-dir: third_party/utf8_range
git-subtree-split: cd1507d1479815fbcd8ff24dc05a978a62098bae
2023-04-27 10:28:42 -07:00
Mike Kruskal f79e35c821 Fix declared dependencies for pkg-config (#12518)
Closes #12439

Closes #12518

PiperOrigin-RevId: 526689125
2023-04-24 10:44:14 -07:00
Mike Kruskal e53fa65d90
Bump to Abseil 20230125.rc3 for cmake builds (#11663) 2023-01-25 09:41:06 -08:00
Mike Kruskal 71649680df
Bump to Abseil LTS 20230124 RC2 (#11646) 2023-01-24 12:38:00 -08:00
Mike Kruskal 7930cd1f9d Upgrade to Abseil LTS 20230117 (#11622)
Closes #11622

PiperOrigin-RevId: 503588252
2023-01-20 21:40:27 -08:00
Mike Kruskal b4ddcda810 Moving update script 2023-01-19 18:10:58 -08:00
Mike Kruskal b5a2e83c8c Add a script for updating subtrees 2023-01-19 16:12:40 -08:00
Mike Kruskal 163e31a413 Merge commit 'c2da35d619d5ebb483a774872168656abbcb53a8' as 'third_party/utf8_range' 2023-01-19 16:02:55 -08:00
Mike Kruskal 68d13cf2bd Delete utf8_range submodule 2023-01-19 16:02:05 -08:00
Mike Kruskal 449b6e860f Fixing merge issues 2022-10-24 14:54:43 -07:00
Mike Kruskal 86594306aa Sync from Piper @482325250
PROTOBUF_SYNC_PIPER
2022-10-19 16:56:53 -07:00
Mike Kruskal 407aa2d931 Sync from Piper @482325250
PROTOBUF_SYNC_PIPER
2022-10-19 16:10:10 -07:00
Mike Kruskal 23f1481386 Sync from Piper @480194141
PROTOBUF_SYNC_PIPER
2022-10-10 21:05:53 -07:00
Mike Kruskal 254fa021c4 Bumping version again 2022-10-10 16:13:57 -07:00
Mike Kruskal 0efb02e2e1 Bumping version 2022-10-10 14:46:14 -07:00
Mike Kruskal a1f6829dd4 Add submodule for utf8_range 2022-10-10 12:53:16 -07:00
Mike Kruskal 060d151c56 Delete vendored utf8_range 2022-10-10 12:52:53 -07:00
Mike Kruskal 7e0333bb28
Downgrade jsoncpp for CMake usage (#10751)
* Downgrade jsoncpp for CMake usage

* Downgrade Bazel to 1.9.4
2022-10-10 10:22:40 -07:00
Mike Kruskal 5308cf0aa6
Make jsoncpp a formal dependency (#10739)
* Adding jsoncpp submodule

* Adding bazel dependency

* Hook up jsoncpp in Bazel builds

* Hook up jsoncpp dependency in CMake

* Fix conformance binary path

* Move jsoncpp import to the end of the file to avoid confusing add_test
2022-10-07 18:09:33 -07:00
Mike Kruskal 8bad7e0dd0
Clean up leftover benchmark cruft (#10480)
* Removing benchmark submodule

* Removing C# benchmarks

* Removing dangling benchmark references

* Deleting unused function
2022-08-29 16:05:04 -04:00
Mike Kruskal bc1b31001d
Add a real dependency on Abseil (#10416)
* Proof of concept for Abseil dependency

* Adding most common Abseil libraries

* Fixing shared library breakages

* Switching to quotes over angled brackets

* Disable install target by default

* Fixing abseil to LTS commit

* Upgrade to latest Abseil LTS

* Turning install back on by default, removing unnecessary export statements

* Add note to future self

* Fixing unsafe globals
2022-08-16 16:31:35 -07:00
Mike Kruskal cac9765af0
Update CMake configuration to add a dependency on Abseil (#10401)
* Rolling https://github.com/protocolbuffers/protobuf/pull/9793 forward

* Removing private label on conformance linkage

* no-op comment added
2022-08-12 16:41:00 -07:00
Adam Cozzette 500cbd7b90
Upgrade third_party/googletest submodule to current main branch (#10393)
* Upgrade third_party/googletest submodule to current main branch

We can finally do this upgrade now that we have dropped our autotools
build. Googletest recommends living at head, so let's go straight to the
most recent commit on main. For some reason the googletest archive is
not present in the Bazel build mirror, so I removed that entry and just
left the GitHub download link in our WORKSPACE file.

Googletest now requires C++14, so I updated all the C++11 flags I could
find to C++14 instead. I added a .bazelrc file to add -std=c++14 for all
our Bazel builds.

* Delete the empty //src/google/protobuf:protobuf_test target

* Avoid building C++ unit tests in aarch64 jobs for Python and Ruby
2022-08-11 18:22:15 -07:00
Mike Kruskal ed5c57a574
Remove all autotools usage (#10132)
* Bazelfying conformance tests

Adding infrastructure to "Bazelify" languages other than Java and C++

* Delete benchmarks for languages supported by other repositories

* Bazelfying benchmark tests

* Bazelfying python

Use upb's system python rule instead of branching tensorflow

* Bazelfying Ruby

* Bazelfying C#

* Bazelfying Objective-c

* Bazelfying Kokoro mac builds

* Bazelfying Kokoro linux builds

* Deleting all deprecated files from autotools cleanup

This boils down to Makefile.am and tests.sh and all of their remaining references

* Cleanup after PR reorganizing

- Enable 32 bit tests
- Move conformance tests back
- Use select statements to select alternate runtimes
- Add internal prefixes to proto library macros

* Updating READMEs to use bazel instead of autotools.

* Bazelfying Kokoro release builds

* First round of review fixes

* Second round of review fixes

* Third round of review fixes

* Filtering out conformance tests from Bazel on Windows (b/241484899)

* Add version metadata that was previously scraped from configure.ac

* fixing typo from previous fix

* Adding ruby version tests

* Bumping pinned upb version, and adding tests to python CI
2022-08-10 22:51:29 -07:00
Sandy Zhang 05ba39a34f Revert third_party/benchmark changes from sync 2022-07-28 22:07:59 +00:00
Sandy Zhang aebdd0885f Sync from Piper @463129388
PROTOBUF_SYNC_PIPER
2022-07-25 18:07:45 +00:00
Elliotte Rusty Harold 3ba3c6a36f Sync from Piper @453701696
PROTOBUF_SYNC_PIPER
2022-06-08 12:49:35 -04:00
Sandy Zhang f138d5de25 Sync from Piper @452551755
PROTOBUF_SYNC_PIPER
2022-06-02 16:14:25 +00:00
David L. Jones 354aba886e
Add a test for bazel-built dist archives (#9929)
This also fixes some packaging rules that are needed for the result to be buildable.
2022-05-09 16:32:59 -07:00
David L. Jones 95da0ba5b4
Rename all BUILD files to BUILD.bazel (#9892)
This avoids conflicting names in a couple of cases.

1. Within google, we want to sync files but not name them BUILD (since the structure doesn't match).
2. On case-insensitive filesystems, `build` may be used for a build directory. Naming `BUILD.bazel` avoids potentioal conflicts.
2022-04-29 17:57:55 -07:00
FaBrand 244bbd6f95
Make genrule portable for windows (#9889)
* Make genrule portable for windows

Using this does remove a user dependency on a bash under windows

* Use portable genrule for zlib dependency
2022-04-29 10:24:10 -07:00