Commit Graph

5589 Commits

Author SHA1 Message Date
Thomas Van Lenten
8417871a71 Move to Xcode 9.3 which also means a High Sierra image. 2018-04-21 12:04:03 -04:00
Thomas Van Lenten
b59da6d099 Remove the iOS Test App.
The tests can run as what Apple calls a Logic Test (under xctest), which means
it doesn't have to load an full UI App under the simulator, which speeds things
up a fair amount.
2018-04-20 17:26:38 -04:00
Yilun Chong
c36eeed07a
Merge pull request #4520 from BSBandme/fix_kokoro_benchmark_build
Fix benchmark build
2018-04-20 10:08:01 -07:00
Sydney Acksman
4ca46ede5c Write messages to backing field in generated C# cloning code (#4440)
* Edited MessageFieldGenerator to clone to backing field instead of property

* Generated C# proto code
2018-04-19 11:57:31 -07:00
Feng Xiao
0dc4d75da7
Merge pull request #4504 from xfxyjwf/lite
Cleanup + documentation for Java Lite runtime.
2018-04-18 16:42:24 -07:00
Feng Xiao
a29e2bfb3b Update Makefile.am for Java lite files. 2018-04-18 12:18:38 -07:00
Yilun Chong
8f3507360c Fix benchmark build 2018-04-16 17:01:18 -07:00
Adam Cozzette
9497a657d5
Merge pull request #4517 from rcane/feature/vc2017_build_fix
Fixed a Visual Studio 2017 build error. (#4488)
2018-04-16 16:08:30 -07:00
Yilun Chong
a9d9326ab2
Merge pull request #4510 from BSBandme/fix_kokoro_benchmark_build
fix java benchmark, fix dashboard build
2018-04-16 15:27:15 -07:00
Ronny Krüger
7d6d5f9132 Fixed a Visual Studio 2017 build error. (#4488)
The current 15.6.x versions of Visual Studio 2017 contain a bug that
prevent them from compiling the following construct under certain
conditions:

std::unique_ptr<std::unique_ptr<Foo> []> foos;

This will fail to compile if Foo is an abstract class. To work-around
the problem the whole construct was change into:

std::vector<std::unique_ptr<Foo>> foos;

This not only fixes the compiler error but is also more readable than
previous version.
2018-04-16 09:58:24 +02:00
Yilun Chong
092134593d fix java benchmark, fix dashboard build 2018-04-13 14:54:58 -07:00
Feng Xiao
7d55040eeb Cleanup + documentation for Java Lite runtime. 2018-04-12 17:58:55 -07:00
Yilun Chong
320d56c833
Merge pull request #4478 from BSBandme/proto2_to_proto3_tools
Add gogo benchmark
2018-04-10 15:56:11 -07:00
Yilun Chong
e3af02303a fix python 2018-04-10 14:48:03 -07:00
Yilun Chong
76d76ae39c fix conflicts 2018-04-10 14:37:33 -07:00
Yilun Chong
c703061d49 Add gogo benchmark 2018-04-10 14:32:28 -07:00
Yilun Chong
5fb73f80f2
Merge pull request #4415 from BSBandme/experiement
Add dashboard support
2018-04-10 14:23:07 -07:00
Yilun Chong
805174eda2 Add script for run and upload the benchmark result to bq 2018-04-10 13:26:17 -07:00
urfinjuezz
d7d863ea07 fix json_decode call parameters (#4381) 2018-04-09 14:14:31 -07:00
Brent Shaffer
13e627ad69 includes the expected class in the exception, otherwise the error is harder to track down (#3371) 2018-04-09 14:08:58 -07:00
Thomas Hisch
451e0446ab Add __init__.py files to compiler and util subpackages (#4117)
The compiler and util subpackages are created by the build_py class in
setup.py. This has caused an issue in the protobuf package in
conda-forge (https://github.com/conda-forge/protobuf-feedstock/issues/40),
which is fixed by this commit.
2018-04-09 12:43:10 -07:00
Paul Yang
3b6d027ba2
For windows, all python version should use /MT (#4468) 2018-04-06 15:43:32 -07:00
Thomas Van Lenten
dce8229a38 Add the files added in #4485. 2018-04-06 10:52:31 -04:00
Sergio Campama
ce24b8a224 Update Xcode settings 2018-04-06 10:37:14 -04:00
Jon Skeet
da3ce67171 Deliberately call simple code to avoid Unity linker pruning
The SampleEnumMethod method was previously only called via
reflection, so the Unity linker thought it could be removed. Ditto
the parameterless constructor in ReflectionHelper.

This PR should avoid that issue, reducing the work needed by
customers to use Google.Protobuf from Unity.
2018-04-06 08:05:32 +01:00
Feng Xiao
a72da27f5a
Merge pull request #4475 from chenchuanyin/patch-1
Fix problem: cmake build failed in c++11  by clang
2018-04-05 16:46:06 -07:00
Feng Xiao
e7e6c6b8d1
Merge pull request #4283 from ObsidianMinor/csharp/better-test-runners
[C#] Update test project to be used with dotnet test and Visual Studio Test Explorer
2018-04-04 17:01:09 -07:00
ObsidianMinor
f72ac9f987 Updated csharp/README.md to reflect testing changes 2018-04-04 16:04:12 -05:00
Silver Chan
d3e8a54020
Fix problem: cmake build failed in c++11 by clang
CMakeLists.txt adds c++11 flags for clang
2018-04-04 10:31:05 +08:00
Paul Yang
c931743461
Merge branch (#4466)
* Fix setup.py for windows build.

* Bump version number to 3.5.2

* Cat the test-suite.log on errors for presubits
2018-04-02 15:55:28 -07:00
Charlie Moad
579f81e1c6 js message support for jstype string on integers (#4332) 2018-04-02 15:44:28 -07:00
Feng Xiao
40d6eca832
Merge pull request #4467 from xfxyjwf/error
Improve error message when googletest is missing.
2018-04-02 14:46:58 -07:00
Feng Xiao
8f88a507ee Improve error message when googletest is missing. 2018-04-02 14:28:25 -07:00
Feng Xiao
7f92711085
Merge pull request #4411 from pravin-dsilva/protobuf-ppc64le
Add support for Power (ppc64le) arch
2018-04-02 13:56:22 -07:00
Feng Xiao
4274e6af2d
Merge pull request #4447 from ejona86/cleaner-protoc-artifacts
Cleaner protoc artifacts
2018-04-02 13:55:12 -07:00
Feng Xiao
c934d1d185
Merge pull request #4452 from xfxyjwf/doc
Update instructions about getting protobuf source.
2018-04-02 11:18:26 -07:00
Thomas Van Lenten
aab0f898c9
Merge pull request #4464 from thomasvl/includes3
Move ObjC WKTs to minimal imports to avoid import cycle.
2018-04-02 14:09:19 -04:00
Thomas Van Lenten
bd941d5d69 Don't generate imports for the WKTs unless generating the WKTs.
Since the generated header import GPBProtocolBuffers.h, there is no need
to generate imports for the WKTs as they will have already been imported.
2018-04-02 09:54:29 -04:00
Thomas Van Lenten
e998b8ff66 Add compile test sources for to test include order.
To ensure all headers aren't dependent on other things being imported
before/after them, make a source that just imports each header and add
it to the unittesting target, that way we ensure it can be included on
its own with ordering issues.

Also do this testing with a few generated headers that aren't part of
the library to help ensure the different generated imports needed are
complete.
2018-04-02 09:54:29 -04:00
Thomas Van Lenten
bca797dac9 Trim imports for bundled generated protos.
To avoid a cycle between headers, have the WKTs use minimal imports instead
of using the helper to get everything from the library.

Fixes https://github.com/google/protobuf/issues/4301
Fixes https://github.com/google/protobuf/issues/4403
2018-04-02 09:54:29 -04:00
Feng Xiao
014e76e2cd Update instructions about getting protobuf source. 2018-03-29 13:14:00 -07:00
Eric Anderson
cdbfdd8da8 protoc-artifacts: Use ENTRYPOINT to enable devtoolset-1.1
ENTRYPOINT is used even when other commands are specified on the "docker
run" command line. This allows running one-off commands in the docker
image (especially combined with volume binding with the host) with the
correct environment variables.
2018-03-28 17:24:07 -07:00
Eric Anderson
67c1cd4cb7 protoc-artifacts: Avoid storing temporary files and use fewer layers
This is just better Dockerfile hygene as it produces smaller resulting
images with fewer useless files.
2018-03-28 17:24:07 -07:00
Eric Anderson
5f052ae7ae protoc-artifacts: Avoid checking out protobuf code
It is a bad idea to check out code into the docker image, as it will be
out-of-date. It is better to have the image just be the environment, and
let any scripts that need source check them out themselves.

This fixes #4419 in that it allows the image to build again, albeit
users would need to use wget to grab the source of the version of
protobuf they wish.
2018-03-28 17:24:07 -07:00
Feng Xiao
7bf47a6b5d
Merge pull request #4433 from xfxyjwf/license
Cleanup LICENSE file.
2018-03-28 14:10:13 -07:00
Feng Xiao
c8ed695872
Merge pull request #4445 from xfxyjwf/badge
Add kokoro build status badges.
2018-03-28 10:58:26 -07:00
Feng Xiao
eac0e92798 Add kokoro build status badges.
Moved the badges to the language table as they are per-language based.
Some badges are not yet available due to stuck kokoro jobs.
2018-03-27 17:43:41 -07:00
Feng Xiao
59c4328d7c
Merge pull request #4442 from xfxyjwf/clean
Delete unused directories.
2018-03-27 17:30:21 -07:00
Feng Xiao
107cd70c7c Delete unused directories.
jenkins has been replaced by kokoro and we never use more_tests.
2018-03-27 15:33:56 -07:00
Adam Cozzette
d3d7cdbcad
Merge pull request #4439 from acozzette/remove-atomicops-stub
Removed atomicops.h stub
2018-03-27 12:47:35 -07:00