Commit Graph

9441 Commits

Author SHA1 Message Date
Joshua Haberman
4152d8d160 Updated upb.
As of this update, you can test Python/upb with:

```
$ bazel test @upb//python/...
```
2022-04-27 00:37:30 +00:00
Elliotte Rusty Harold
ece5ef6b9b
Fail on unit tests failure (#9862)
* make sure JDK17 tests fail as needed
* set -e to fail on error
2022-04-26 22:30:07 +00:00
Joshua Haberman
ec79d0d328
Merge pull request #9859 from haberman/sync-stage
Integrate from Piper for C++, Java, and Python
2022-04-26 19:40:16 +00:00
Joshua Haberman
01691f6092
Eliminated git_repository() in favor of HTTP archives. (#9861)
* Eliminated git_repository() in favor of HTTP archives.

Also factored out logic for github archives into its own macro.

* Sorted entries and ran buildifier.

* Removed the import of git_repository.
2022-04-26 12:27:59 -07:00
Dave MacLachlan
2c5863ecde Remove a bunch of clang-tidy warnings about missing use of explicit on single arg ctors. 2022-04-26 14:38:32 -04:00
mkruskal-google
20a30c675a
Rollback pull request #9852, which will break clients who don't IWYU and depend on us for these STL headers (#9860) 2022-04-26 13:57:16 -04:00
Joshua Haberman
dc4aad931e Sync from Piper @444600173
PROTOBUF_SYNC_PIPER
2022-04-26 17:38:22 +00:00
Joshua Haberman
65236e967e Merge tag 'refs/tags/sync-piper' into sync-stage 2022-04-26 17:38:22 +00:00
cui fliter
ac25235fa7
fix some typos (#9771)
* fix some typos

Signed-off-by: cuishuang <imcusg@gmail.com>

* fix typo

Signed-off-by: cuishuang <imcusg@gmail.com>
2022-04-26 10:29:00 -07:00
Noah Dietz
4d56f2d83c
Change enum string name for reserved words (#9780)
* Change enum string name for reserved words

Update PHP descriptor protos

* conditionally generate value compat code
2022-04-26 09:44:39 -07:00
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
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