Commit Graph

9434 Commits

Author SHA1 Message Date
Thomas Van Lenten
35fcbfd298
Add a github action workflow to run CocoaPods validation. (#9800)
- Run for all Apple configurations/platforms.
- Limit the action to only run when the ObjC source change.
- Document why the CocoaPods doesn't run the tests during the validation.

The kokoro objectivec_cocoapods_integration configuration can likely be retired
by retiring this.
2022-04-26 09:43:54 -07:00
David L. Jones
125dfd343e
Update more code to use standard int types. (#9851) 2022-04-26 09:28:24 -07:00
David Benjamin
089e09168b
Remove various unused includes (#9852)
These headers pull in STL headers without actually using anything from
the STL.
2022-04-26 09:27:14 -07:00
Tamarous
6718fa9dcc
fix: misspelling (#9857) 2022-04-26 09:25:01 -07:00
Elliotte Rusty Harold
4f552e36bd
Fix typos (#9847)
@pzd
2022-04-26 11:18:51 +00:00
Joshua Haberman
a6901f057e
Added a Bazel dependency for upb (#9812)
* WIP.

* Restore deleted __init__.py files.

* Updated version of upb.

* Moved upb from a submodule to a Bazel dep.

* Updated to new upb which can tolerate missing system_python.

* Updated to a new upb.
2022-04-25 15:00:57 -07:00
Dave MacLachlan
6888c031a4 Remove 2 more unnecessary header includes from objectivec sources.
These were missed from #a52e5ad5bb60655c683a12072a6eb7bcb99391d2.
2022-04-25 17:17:48 -04:00
Elliotte Rusty Harold
f53fd52d7b
Add Kokoro config for JDK 17 (#9845)
* add config for OpenJDK11

* update paths

* add JDK17 build
2022-04-25 20:49:58 +00:00
Dave MacLachlan
a52e5ad5bb Remove some unnecessary header includes from objectivec sources. 2022-04-25 15:09:37 -04:00
David L. Jones
d76f8c868c
Add source distribution packaging rules (#9835)
This change adds `rules_pkg`-based targets that will produce source distribution archives, similar to `make dist`.

These rules produce nearly the same outputs as `make dist`. However, there are some differences and caveats:

1. The outputs do not contain vendored googletest sources.
2. You have to run `autogen.sh` before `blaze build pkg:all`. This produces several autotools-related files directly into the source tree.
3. The output .zip files do not have a directory prefix like `protobuf-3.20.1-rc-1` (this will be addressed after [Substitute package variables in `pkg_zip#package_dir`. bazelbuild/rules_pkg#577](https://github.com/bazelbuild/rules_pkg/pull/577); the tar files do have this prefix, though.)
4. One file is missing from the archives, which is produced during the `make` build: benchmarks/gogo/cpp_no_group/cpp_benchmark.cc
5. In several places, I have explicitly excluded some files that are not in the autotools distribution outputs. I think most of those files should probably be included, but for now, I'm aiming for parity with `make dist`. These are marked with comments, so it should be easy to clean them up later.
2022-04-22 16:58:16 -07:00
David L. Jones
5283ef4b82
Add jdk11 test. (#9843) 2022-04-22 16:44:09 -07:00
zhangskz
baca239033
Add initial version.json file for 21-dev (#9840) 2022-04-22 17:53:47 -04:00
Elliotte Rusty Harold
62e60833b8
add Kokoro config for OpenJDK11 (#9837)
* add config for OpenJDK11
2022-04-22 21:06:11 +00:00
Joshua Haberman
5b0a961188
Merge pull request #9834 from haberman/merge-to-main
Merge 3.20.x to main
2022-04-22 19:36:12 +00:00
Joshua Haberman
a2a0c3c118 Fixed some mis-merged files. 2022-04-22 17:18:36 +00:00
Elliotte Rusty Harold
bfc956bc3a
Remove old kokoro configs (#9815)
* delete unused kokoro configs
2022-04-22 10:22:24 +00:00
Joshua Haberman
16e89fce85
Merge pull request #9836 from haberman/sync-stage
Integrate from Piper for C++, Java, and Python
2022-04-22 06:45:31 +00:00
Joshua Haberman
095e4c0679 Merge tag 'refs/tags/sync-piper' into sync-stage 2022-04-22 05:14:09 +00:00
Joshua Haberman
a27ce12d3a Sync from Piper @443569271
PROTOBUF_SYNC_PIPER
2022-04-22 05:14:08 +00:00
Joshua Haberman
f80137c46d Merge branch 'main' into merge-to-main 2022-04-22 02:44:36 +00:00
Joshua Haberman
21027a27c4
Merge pull request #9832 from haberman/php-dist
Fixed PHP release script.
2022-04-22 01:00:40 +00:00
Joshua Haberman
e81c678e7d
Merge pull request #9831 from haberman/sync-stage
Integrate from Piper for C++, Java, and Python
2022-04-22 00:55:55 +00:00
David L. Jones
83303ba906
Update rules_pkg to version 0.7.0. (#9833)
Notably, bazelbuild/rules_pkg 0.6.0 added the ability for `pkg_filegroup`s to depend on other `pkg_filegroup`s.
2022-04-21 17:38:03 -07:00
Joshua Haberman
634a5681b8 Fixed PHP release script.
Previously it was releasing content from main/master, not the
release branch!

I fixed this by not checking out a separate copy of protobuf.
Also updated the composer.json so we don't need to rewrite it with
sed.
2022-04-21 23:38:04 +00:00
Joshua Haberman
08b39f4274 Merge tag 'refs/tags/sync-piper' into sync-stage 2022-04-21 23:11:28 +00:00
Joshua Haberman
9bd67b6aac Sync from Piper @443506199
PROTOBUF_SYNC_PIPER
2022-04-21 23:11:27 +00:00
Joshua Haberman
e4da73fab7 Updated CHANGES.txt. 2022-04-21 21:27:14 +00:00
Joshua Haberman
87edf7b558 Sync from Piper @443477877
PROTOBUF_SYNC_PIPER
2022-04-21 21:22:55 +00:00
Joshua Haberman
dcfeaf712b Merge tag 'refs/tags/sync-piper' into sync-stage 2022-04-21 21:22:55 +00:00
Jonathan Ringer
c80808ce1d
Fix cmake install targets (#9822)
* Avoid exporting build tree targets to installation directory

`export(TARGETS ...)` is meant to allow for build trees to be found
from other projects, however, writing the file to an installation
directory causes buildtree paths to be hardcoded in the installed
protobuf-targets.cmake

* Install protobuf-targets.cmake from target, not build tree

This allows for installation prefixes to match the intended
installation directories, instead of being copied from
the build tree.
2022-04-20 18:38:43 -07:00
Joshua Haberman
616a7ef54d
Updated CHANGES.txt for 3.20.1 (#9826)
* Update protobuf version

* Updated Makefile.am for composer.json move.

* Updated CHANGES.txt for 3.20.1.

* Fixed spelling.
2022-04-20 17:05:48 -07:00
David L. Jones
46710cabc4
Move rules_pkg targets into //pkg, and add experimental C++ library rules (#9823)
This change moves the `pkg_*` rules into the `//pkg` package, which cleans up the root package.

It also adds an experimental `cc_dist_library` rule, which is similar to Bazel's `cc_import` rule. The goal of `cc_dist_library` is to produce output libraries from several targets. For example, splitting `//:protobuf` into multiple targets means that `bazel-bin/libprotobuf.a` won't contain all of the objects. The `cc_dist_library` creates a single library from several different `cc_library` targets. This may be useful for future packaging targets.
2022-04-20 16:26:44 -07:00
Joshua Haberman
296c1fdaff
Update protobuf version (#9820)
* Update protobuf version

* Updated Makefile.am for composer.json move.
2022-04-20 16:00:42 -07:00
Brent Shaffer
6387f95aa9
fix: move composer.json out of root to avoid confusion (#9819)
* move composer.json out of root to avoid confusion

* fix: update php deployed json
2022-04-20 14:51:11 -07:00
Joshua Haberman
653de45a21
Disable the aarch64 build on macOS because it is broken. (#9816)
See https://github.com/protocolbuffers/protobuf/issues/9804 for details.
2022-04-20 14:32:52 -07:00
mkruskal-google
f7b9886f9d
Fix Abseil dependency in windows protoc kokoro build (#9814)
* Adding submodule update to windows protoc build which uses CMake 3.10.1
2022-04-20 13:50:13 -04:00
Neakxs
654c25352e
Apply registration for protoc-gen-authz extension (#9807) 2022-04-19 13:41:58 -07:00
Brent Shaffer
37f464590c
Merge branch 'main' into remove-class-aliases 2022-04-19 13:25:15 -05:00
Jason Lunn
3a477b1952
Improve range handling logic of RepeatedField (#9799)
Add support for negative start or ends and exclusive ends.

Includes regression tests contributed mostly by @lucthev. Fixes #9751.
2022-04-19 10:46:01 -04:00
Brent Shaffer
81e5139679
fix: phpdoc for repeatedfield (#9783)
* fix-phpdoc-for-protobuf-repeatedfield

* fix: offsetSet should accept null
2022-04-18 16:14:56 -07:00
なつき
d2fd441953
Do not use range based UTF-8 validation in truffleruby (#9769) 2022-04-18 16:12:20 -07:00
Brent Shaffer
9ba808b798
fix: phpdoc syntax for repeatedfield parameters (#9784) 2022-04-18 16:07:02 -07:00
Elliotte Rusty Harold
cc8ae4c154
Add JDK 17 target (#9802)
* add JDK 17 target
2022-04-18 19:54:42 +00:00
Elliotte Rusty Harold
46ae74c55c
Remove LAST_RELEASED variable we haven't been updating (#9803)
* Remove LAST_RELEASED variable we haven't been updating
2022-04-18 19:22:22 +00:00
Elliotte Rusty Harold
b27bf8b437
LAST_RELEASED=3.20.0 (#9741)
@acozzette We might want to add this to the release process since it seems this hasn't been updated for quite a while.
2022-04-18 17:52:12 +00:00
Elliotte Rusty Harold
bbc4f8dff8
add JDK 8 target (#9743) 2022-04-18 12:47:56 -04:00
mkruskal-google
e9246cd789
Update CMake configuration to add a dependency on Abseil (#9793)
* Proof of concept for CMake Abseil dependency

* Hooked up Abseil linking

* Adding test binaries

* Reverting absl::string view use added for testing.  This will still be broken for automake and bazel

* Adding new cmake config to dist list

* Whitespace fixes and an attempt at fix for Windows Python Release (CMake version < 3.13)

* Hook up LTS to windows cmake

* Fix 'git cd' typo

* Adding clarifying comment for fix

* Adding abseil dependency to protobuf-lite too

* Update submodules instead of cloning abseil-cpp

* Adding explicit pointer to abseil root directory

Co-authored-by: Jason Lunn <jason.lunn@gmail.com>
Co-authored-by: Jorg Brown <jorg.brown@gmail.com>
2022-04-17 22:28:01 -04:00
Joshua Haberman
6f99f12a6b
Merge pull request #9790 from dlj-NaN/sync-stage
Integrate from Piper for C++, Java, and Python
2022-04-15 11:30:44 -07:00
Yibo Cai
bba2fca119
Move private utf8 helpers to anonymous namespace (#9791)
This trivial change hints compiler to inline the utf8 helpers and
generate code with better performance.

Tested on skylake, with clang-12 and gcc-9.3. Observed about 10%
improvement from `google_message1_proto3_serialize` benchmark,
with default ./configure parameters. Similar improvement on arm.
2022-04-15 11:25:17 -07:00
David L. Jones
13f646f026 Update CHANGES.txt. 2022-04-14 17:39:00 -07:00