Joshua Haberman
8b87075924
Updated and simplified PHP testing structure ( #8558 )
...
* Simplified PHP testing setup.
- Consolidated on a single autoloader, created by composer.
- Consolidated on a single phpunit invocation strategy: we run
phpunit on a directory, which will run all tests matching *Test.php
in that directory.
- We now rely on autoloading to import all test protos. require_once()
calls for test protos are removed.
- For now the valgrind tests are removed. A follow-up PR will re-enable
them in a more robust way.
* More improvements to PHP testing.
1. Replace custom PHPUnit-selection logic in test.sh with generic
composer version selection.
2. Optimized both test proto generation and the custom extension
build to avoid unnecessary work when the files are already up
to date.
* Added assertions to verify that the C test doesn't use PHP sources.
* Updated tests.sh for the new PHP testing commands.
* Removed obsolete rules from tests.sh.
* Fixed generate_test_protos.sh for when tmp does not exist.
Also removed undefined_test.php and fixed Makefile.am.
* Added php8.0_all again which is still used.
* Added missing file to Makefile.am.
* Re-added php_all_32 rule which is also still used.
* Updated testing commands for macOS and download composer.
* Use /usr/local/bin on mac instead of /usr/bin, since the latter is not writable.
4 years ago
Paul Yang
114efc42d4
Fix php json parsing not throwing error for unknown field. ( #8528 )
4 years ago
Yuriy Chernyshov
28101c3e39
Stop using GG_ prefixed macros ( #8539 )
...
* Stop using GG_ prefixed macros
GG_ULONGLONG was renamed to PROTOBUF_ULONGLONG some time ago
* Better
4 years ago
Kenneth Lum
952cf14442
fix typo ( #8548 )
4 years ago
Jan Tattermusch
5e84a6169c
Merge pull request #8544 from jtattermusch/test_javascript_aarch64
...
Test javascript on linux aarch64 (under qemu emulator)
4 years ago
Jan Tattermusch
f3411a29da
node tests require java to be available
4 years ago
Jan Tattermusch
37ba0bcfa2
Merge pull request #8391 from jtattermusch/cpp_aarch64_emulated_tests
...
run basic C++ aarch64 tests under qemu emulator
4 years ago
Jan Tattermusch
36243917c1
add testing jobs for javascript_aarch64
4 years ago
Jan Tattermusch
7124f2893d
add testing scripts for protobuf javascript on aarch64 qemu emulator
4 years ago
Yuriy Chernyshov
a48e005d51
Fix -Wundefined-inline error when using SharedCtor() or SharedDtor() ( #8532 )
4 years ago
Jan Tattermusch
2a11e892ed
Merge pull request #8530 from jtattermusch/python_aarch64_manylinux_release
...
Start publishing python aarch64 manylinux wheels normally
4 years ago
Jan Tattermusch
0d60cc5df6
Merge pull request #8534 from jtattermusch/test_csharp_aarch_typo
...
Fix C# aarch64 tests (fix typo in test_csharp_aarch64.sh)
4 years ago
Jan Tattermusch
1834e8cb4d
fix typo in test_csharp_aarch64.sh
4 years ago
Jan Tattermusch
4536154a8a
Merge pull request #8495 from jtattermusch/run_ruby_aarch64_test
...
Run ruby aarch64 tests on the CI (with an emulator)
4 years ago
Jan Tattermusch
78a8d67f87
Merge pull request #8485 from jtattermusch/run_java_aarch64_test
...
Run java aarch64 tests on the CI (with an emulator)
4 years ago
Jan Tattermusch
771220e0db
Merge pull request #8501 from jtattermusch/run_csharp_aarch64_test
...
Run csharp aarch64 tests on the CI (with an emulator)
4 years ago
Jan Tattermusch
0a2ddaebc9
start publishing python aarch64 manylinux wheels normally
4 years ago
Roy Williams
7ad0fd4ed7
Make libprotobuf symbols local on OSX ( #8346 )
...
@gnossen gave a great overview in https://github.com/grpc/grpc/pull/24992 of the overall problem.
If a python process using both protobuf _and_ another native library linking in libprotobuf
frequently can cause crashes. This seems to frequently affect tensorflow as well:
tensorflow/tensorflow#8394 ,
tensorflow/tensorflow#9525 (comment)
tensorflow/tensorflow#24976 ,
tensorflow/tensorflow#35573 ,
https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/contrib/makefile/rename_protobuf.sh ,
tensorflow/tensorflow#16104
Testing locally this fixes both crashes when linking in multiple versions of protobuf
and fixes `DescriptorPool` clashes as well (e.g. Python and Native code import different versions of the same message).
4 years ago
Jan Tattermusch
b2c71571b3
add kokoro configs for csharp aarch64
4 years ago
Jan Tattermusch
47f6283e7f
run csharp tests under aarch64 emulator
4 years ago
Jan Tattermusch
7c876925c7
add kokoro configs for ruby aarch64
4 years ago
Jan Tattermusch
e0267f6c0e
run ruby tests under aarch64 emulator
4 years ago
Jan Tattermusch
4342e417a5
add protoc_crosscompile_aarch64.sh (same as for java aarch64 tests)
4 years ago
Jan Tattermusch
b284beecc2
add kokoro job config to test java aarch64
4 years ago
Jan Tattermusch
4939dd91fe
allow running emulated java aarch64 tests
4 years ago
Jan Tattermusch
7956ad20d6
Merge pull request #8479 from jtattermusch/run_python_aarch64_tests
...
Run python aarch64 tests on the CI
4 years ago
Derek Perez
87d140f851
rely on only HTTPS mirrors for maven. ( #8526 )
4 years ago
Derek Perez
61689226c0
updating GSON and Guava to more recent versions ( #8524 )
4 years ago
Derek Perez
bbd6999c76
add missing files to Makefile.am for java bazel ( #8522 )
4 years ago
Derek Perez
db8f725190
ensure maven deps are pinned for reproducibility. ( #8523 )
...
* ensure maven deps are pinned for reproducibility.
* adding update docs.
4 years ago
Yuriy Chernyshov
f8e2efbf43
Fix some -Wsign-compare issues ( #8516 )
...
* Fix some -Wsign-compare issues
* Shorten variable name
4 years ago
deannagarcia
76188afb94
Merge pull request #8272 from deannagarcia/kotlinProtos
...
Opensourcing kotlin protos
4 years ago
Jiamin Shen
0fd835893f
Fix protobuf version in the example ( #8509 )
...
The version variable should be `protobuf_VERSION` in `CMakeLists.txt`.
4 years ago
Derek Perez
bc45f92262
Bazel powered Java testing ( #8506 )
...
* Protobuf Java/Core Tests running w/ Bazel.
Also integrates rules_jvm_external and migrates existing maven deps
in place.
* Add test_suite target that maps to rule name.
* Lite tests passing in Bazel
* util tests passing with Bazel.
* Add conformance and build testing to //java:core
* Cleanup bzl style and lock down access to failure lists.
* Adding Java Lite conformance tests.
* rm newline
* parameterize conformance_test
This makes usage of failure lists more explicit.
* restrict visibility more for newly added libs and fix formatting.
* fix formatting and visibility.
* move testing.bzl to an internal package.
* fix file formatting.
* moving conformance_test to internal.bzl
4 years ago
Joshua Haberman
fecf7e9340
Merge pull request #8356 from lfittl/support-json-name-for-ruby
...
Ruby: Add support for proto3 json_name in compiler and field definitions
4 years ago
Yuriy Chernyshov
b6426256fb
Fix some -Wunused parameter issues ( #8517 )
4 years ago
Derek Perez
d1b2eff440
Cleanup kokoro usages of java_compatibility and eliminate java/compatibility_tests. ( #8504 )
4 years ago
Dan Kortschak
32af37aa38
Make Go example work out of the box ( #8486 )
4 years ago
Yuriy Chernyshov
c784b65b2a
Remove unused python_protobuf.{cc,h} ( #8513 )
...
* Remove unused python_protobuf.{cc,h} #8513
* Fix automake input
4 years ago
Sahin Yort
29152fbc06
Update third_party.md ( #8511 )
...
* Update third_party.md
add https://github.com/thesayyn/protoc-gen-ts as a community maintained protoc typescript compiler.
* sort
4 years ago
Yuriy Chernyshov
f763a2a860
Use byteswap.h when building against musl libc ( #8503 )
4 years ago
Yuriy Chernyshov
0f25590028
Fix -Wunused-parameter in map<string, int> fields ( fixes #8494 ) ( #8500 )
...
* Fix -Wunused-parameter in map<string, int> fields
* Fix tabs
4 years ago
Derek Perez
8babb3bae7
Merge pull request #8505 from haberman/sync-stage
...
Integrate from Piper for C++, Java, and Python
4 years ago
Joshua Haberman
e22b4baaca
Updated changelog.
4 years ago
Joshua Haberman
a6dd69517a
Merge tag 'refs/tags/sync-piper' into sync-stage
4 years ago
Joshua Haberman
b7285b6c69
Sync from Piper @368903491
...
PROTOBUF_SYNC_PIPER
4 years ago
Joshua Haberman
18619ca1d2
Merge pull request #8502 from haberman/sync-stage
...
Integrate from Piper for C++, Java, and Python
4 years ago
Joshua Haberman
4047c3eac8
Add new test to failure list where appropriate.
4 years ago
Joshua Haberman
dd968d3df1
Updated changelog.
4 years ago
Joshua Haberman
ba3836703b
Sync from Piper @368866736
...
PROTOBUF_SYNC_PIPER
4 years ago