Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from apache/thrift:master #1

Merged
merged 276 commits into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
3b68653
THRIFT-5437 Make TProtocolImpl CTOR virtual
Jens-G Jul 1, 2021
4434ee9
THRIFT-5438 Inconsistent handling of exceptions during message read v…
Jens-G Jul 1, 2021
44e8a43
Rust: Upgrade dependency integer-encoding to 3.0
dermesser Jul 6, 2021
d8c4345
fix isOpen return None, to be consistent with other transport
Jun 4, 2021
b98e06d
THRIFT-5440: Allow php8 in composer.json
blkperl Jul 8, 2021
c06ab4c
Small bug in Rust generated code for writing container types
AlephAlpha Jul 9, 2021
8bd8230
THRIFT-5421 c_glib:Fix the problem of incorrect setting of errno in s…
lm2048 May 25, 2021
fb1d50d
THRIFT-5439 Lua Generator does not support const i64
hkb1990 Jul 5, 2021
47bf0e4
THRIFT-5442 Separate client service calls into send/recv methods and …
Jens-G Jul 23, 2021
68c0272
Update README for go library
fishy Jul 26, 2021
f695535
THRIFT-5389: Fix const generation for optional fields
fishy Jul 29, 2021
273607d
THRIFT-5444 Netstd generator produces uncompileable code for enums en…
Jens-G Jul 31, 2021
c8ae621
THRIFT-5445 "cancellationToken" cannot be used as argument name
Jens-G Jul 31, 2021
2c78047
THRIFT-4797: Go import improvements
fishy Jul 31, 2021
f7e6c65
bump version number
Jens-G Aug 3, 2021
9a815fa
Version 0.15.0
Jens-G Aug 3, 2021
82a9c67
Add missing javadoc
bhalchandrap Aug 10, 2021
e14ac85
Larger whitespace cleanup of AppVeyor build files
emmenlau Aug 5, 2021
9e3ac85
Renamed Windows build files from cl-prefix to win-prefix
emmenlau Aug 5, 2021
166786e
Updated MSYS2 install for current AppVeyor and upstream MSYS2
emmenlau Aug 4, 2021
ce64880
AppVeyor: larger updates in build configuration and documentation
emmenlau Aug 5, 2021
22bb550
Removed the 'shortened' profile names in favor of descriptive profile…
emmenlau Aug 5, 2021
c371e4a
Separate the cmake 'build' and 'install' targets
emmenlau Aug 5, 2021
ffc7bb9
Merged AppVeyor scripts for 'install', 'build' and 'test' into one
emmenlau Aug 5, 2021
fcb07b1
appveyor.yml: Disabled broken Cygwin build
emmenlau Aug 11, 2021
6dfaf9c
appveyor.yml: Disabled 'fast_finish'
emmenlau Aug 11, 2021
fb539ae
THRIFT-5453: Defer DNS from NewTSocketConf to TSocket.Open
fishy Aug 9, 2021
efff4a2
THRIFT-5453: Defer DNS from NewTSocketConf to TSocket.Open
fishy Aug 9, 2021
4cf1e35
Merge pull request #2429 from BioDataAnalysis/bda_fix_win_build
emmenlau Aug 11, 2021
e664ac4
lib/cpp/test/ToStringTest.cpp: Disabled locale-based tests on Windows
emmenlau Aug 12, 2021
82504b3
Merge pull request #2436 from BioDataAnalysis/bda_disable_one_test
emmenlau Aug 13, 2021
431368a
lib/cpp/src/thrift/transport/TBufferTransports.h: Minor whitespace ch…
emmenlau Jul 4, 2021
b31377f
TSocket.cpp: Print THRIFT_EAGAIN (timed out) to global error
emmenlau May 21, 2020
654968a
build/cmake/DefineOptions.cmake: Minor improvement in logging for 'WI…
emmenlau Aug 2, 2021
b013681
lib/cpp/test/CMakeLists.txt: Added missing boost::chrono
emmenlau Aug 2, 2021
464339d
build/cmake/BoostMacros.cmake: Removed 'Boost_NO_BOOST_CMAKE' and min…
emmenlau Aug 2, 2021
04aabcb
TCompactProtocol.tcc: add missing include cstdlib
emmenlau Jul 5, 2018
29b083e
Include signal.h depending on HAVE_SIGNAL_H, not depending on __linux__
emmenlau Jul 5, 2018
a484b5c
Added new method isUnixDomainSocket() to check type of socket
emmenlau Nov 19, 2020
a142709
Merge pull request #2437 from BioDataAnalysis/bda_several_improvements
emmenlau Aug 13, 2021
a265236
THRIFT-5447: Update supported Go versions
fishy Aug 4, 2021
57b9aa0
THRIFT-5447: Update supported Go versions
fishy Aug 4, 2021
72f04b4
Change StringBuffer to StringBuilder for more efficiency
xiexq0 Aug 20, 2021
db7ad5b
fix javadoc warnings
Aug 20, 2021
77afa01
Made server optional.
jorgecarleitao Aug 8, 2021
ace8613
Fix specification to match implementation
EnigmaTriton Jul 20, 2021
db997bd
Minor whitespace cleanup in csproj files
emmenlau Aug 25, 2021
70ef984
lib/netstd/Thrift/Thrift.csproj: Generate documentation for .NET
emmenlau Aug 25, 2021
d53f056
Merge pull request #2445 from BioDataAnalysis/bda_add_dotnet_docs
emmenlau Aug 25, 2021
17373a3
go: Fix things staticcheck complains about
fishy Aug 26, 2021
5f829f1
go: Fix things staticcheck complains about
fishy Aug 26, 2021
96ed727
build/docker/*/Dockerfile: Added dotnet additional dependencies
emmenlau Aug 30, 2021
6762a90
Merge pull request #2448 from BioDataAnalysis/bda_fix_dotnet_docker
emmenlau Aug 30, 2021
ee65215
TNonblockingServer.cpp: Replace deprecated bzero with memset (more po…
emmenlau Aug 29, 2021
5a64c71
Use the cmake-generated thrift config also on MSVC
emmenlau Sep 9, 2020
5b25b99
Merge pull request #2447 from BioDataAnalysis/bda_use_cmake_config_on…
emmenlau Aug 31, 2021
18bf591
Added support for Unix domain sockets on Windows
emmenlau Nov 19, 2020
0f5aebb
Merge pull request #2327 from BioDataAnalysis/bda_add_domain_sockets_…
emmenlau Sep 1, 2021
dd0bf89
Updated TNonblockingServerSocket to better match TServerSocket
emmenlau Sep 1, 2021
b8069cb
Merge pull request #2449 from BioDataAnalysis/bda_unify_nonblockingse…
emmenlau Sep 2, 2021
034c935
Reduce the usage of Windows.h, and add macros to slim Windows.h
emmenlau May 21, 2020
bdb54bc
Use modern OpenSSL cmake syntax (if available), and larger cmake cleanup
emmenlau Aug 31, 2021
e66814e
Merge pull request #2450 from BioDataAnalysis/bda_slim_windows_h
emmenlau Sep 2, 2021
f83ebea
Merge pull request #2451 from BioDataAnalysis/bda_cmake_cleanup
emmenlau Sep 2, 2021
cdbcff9
THRIFT-5459: Fix breaking issue when adding a new exception
fishy Sep 1, 2021
67bf304
THRIFT-5459: Fix breaking issue when adding a new exception
fishy Sep 1, 2021
8317ec4
Branch 0.15.0
Jens-G Sep 4, 2021
0cc0650
Remove redundant `format!(..)` macro calls (#2443)
Sep 9, 2021
38bd636
THRIFT-4868: Golang: Fix compilation for optional set<binary> with de…
vernor1 Sep 8, 2021
7e07267
THRIFT-5457 Pin bitflags to 1.2 to maintain MSRV (#2454)
allengeorge Sep 11, 2021
e3be321
Merge branch '0.15.0' into upstream
Jens-G Sep 11, 2021
ab2f23a
Modified build tags to allow js/wasm target
balazsgrill Sep 19, 2021
7ecc9ef
minor changes to make pypi distribution look better (long desc)
jeking3 Sep 25, 2021
cb808fc
fix perl packaging issue
jeking3 Sep 26, 2021
91be87a
fix javadoc warnings
Aug 25, 2021
e394cb4
THRIFT-5471 Introduce delimiter and app_prefix options to erl generator
kpy3 Sep 15, 2021
e5c636d
THRIFT-5448: map binary to typescript Buffer
OpportunityLiu Aug 3, 2021
353e810
THRIFT-5470 Error: Constraint check failure for haxe.ds.ObjectMap.K
Jens-G Oct 14, 2021
2b691ee
Fix Rust formatting error
allengeorge Oct 15, 2021
152dab9
THRIFT-5237: FOLLOWUP: Add a new constructor for TSocket
wangyum Oct 18, 2021
2145741
FIX for "error: malformed HTML" broken by 91be87a76f747b9069bb0735748…
Jens-G Oct 18, 2021
50dd262
THRIFT-5416: Allow UDP Sockets
bforbis May 17, 2021
6a7278b
Fix `processing` typo in TSocketServer.swift
kainjow Oct 6, 2021
0f76053
skip map value with depth limit
buptubuntu Oct 9, 2021
839a1da
THRIFT-5456 Disable SIGPIPE on TSocketServer
kainjow Aug 16, 2021
2b8be51
ran `npm audit fix` to fix several reported issues
Jens-G Oct 22, 2021
007b99b
THRIFT-5408 Support for deprecated methods - follow_up fix
Jens-G Oct 27, 2021
3f1fd59
- Fixed a few XML comments and ArgumentException arguments
Jens-G Oct 28, 2021
591575a
THRIFT-5476 Deprecate Common Lisp support
Jens-G Oct 29, 2021
ea39a14
THRIFT-5480 TThreadPoolAsyncServer using TFramedTransport mistakenly …
Jens-G Nov 13, 2021
da1e19b
THRIFT-5454: add __setState__ function to TProcessPoolServer to enabl…
frankiechang123 Aug 13, 2021
7156940
Refactoring test server/client to use async/await more consistently
Jens-G Nov 13, 2021
ea1e8ff
THRIFT-5481 consolidate netstd server implementation details into one…
Jens-G Nov 13, 2021
50f9713
FIX Python code style TTransport.py:400:5: E301 expected 1 blank line…
Jens-G Nov 14, 2021
443a03c
FIX: Python code style / flake8: TProcessPoolServer.py:46:14: E225 mi…
Jens-G Nov 15, 2021
2c09278
*.local deleted
Jens-G Nov 15, 2021
5a9d139
THRIFT-5443: add support for partial Thrift deserialization
Nov 19, 2021
4637f6d
[skip ci] updated README.md to reflect final merged changes (THRIFT-5…
Nov 23, 2021
4c7b9fd
THRIFT-5479 Add net 6 support
Jens-G Dec 4, 2021
2853af2
Compile TWebSocketServer with CMake only when OpenSSL is found
kainjow Oct 21, 2021
98be76f
THRIFT-5482: Fix memory leak during SSL handshake in C++ library
anshulmgupta Dec 1, 2021
b597043
Pin clap to 2.33 as 2.34 results in build failures
alisaifee Dec 12, 2021
c6c5a05
THRIFT-5486 : fix issues found by spotbugs
Dec 2, 2021
b724787
Define PY_SSIZE_T_CLEAN to use PyObject_CallFunction
alisaifee Dec 11, 2021
d582a86
THRIFT-5490: Use pooled buffer for THeaderTransport
fishy Dec 16, 2021
999e6e3
THRIFT-5490: Use pooled buffer for TFramedTransport
fishy Dec 17, 2021
e12fbe8
Use iotest.OneByteReader instead of self implemented one
fishy Jan 6, 2022
9d7d627
Remove excess assertions
alisaifee Jan 7, 2022
39d7278
go: Make socketConn.Close thread-safe
fishy Jan 8, 2022
98a2325
THRIFT-5479 Add net 6 support
Jens-G Jan 9, 2022
bbc7c5f
Bump the versions of Go used in Travis
fishy Jan 10, 2022
e07cdcc
lib/java/build.gradle: Removed jcenter() after repeated errors
emmenlau Jan 12, 2022
16b490c
Merge pull request #2506 from BioDataAnalysis/bda_remove_jcenter
emmenlau Jan 17, 2022
b3cf198
Fix warning C4515: 'protocol': namespace uses itself
dsandbrink Jan 17, 2022
d3f13f0
THRIFT-5418: Fix missing implementation for enum functions
dsandbrink Jan 17, 2022
11dc245
Merge pull request #2504 from dsandbrink/bugfix/thrift_5418
emmenlau Jan 18, 2022
b1dc2ae
Merge pull request #2505 from dsandbrink/patch-1
emmenlau Jan 18, 2022
7a68295
2022 we have
Jens-G Jan 20, 2022
6868ebb
Release 0.16.0
Jens-G Jan 20, 2022
86763a1
Fixes #5500, uncompilable code when a .thirft struct named 'System' i…
Jan 20, 2022
fa5c37a
Fixes #5500, uncompilable code when a .thirft struct named 'System' i…
Jan 20, 2022
febc512
Updated changes.md for 0.16.0
Jens-G Jan 21, 2022
fb87b44
Updated changes.md for 0.16.0
Jens-G Jan 21, 2022
5f16344
fix wrong thrift strict header comparing
ihciah Jul 1, 2021
bf09675
Fixed proxy related bugs
kurages Jul 25, 2021
561bc9a
THRIFT-5504 CA2254 Message template should be compile time constant
Jens-G Jan 26, 2022
1ef362c
THRIFT-5504 CA2254 Message template should be compile time constant
Jens-G Jan 26, 2022
d68f03c
Updated changes.md for 0.16.0
Jens-G Jan 24, 2022
c4f2ba1
Fix the travis issue
fishy Jan 26, 2022
eadbd9c
Fix travis issue caused by 5f16344311
fishy Jan 27, 2022
a0cd3cf
THRIFT-5505 error: 'close_generator' overrides a member function but …
Jens-G Jan 29, 2022
69b66a5
THRIFT-5506 C26495 variable "t_field::req_" not initialized, t_field.…
Jens-G Jan 29, 2022
9a16c75
THRIFT-5504 CA2254 Message template should be compile time constant
Jens-G Jan 31, 2022
f99375e
THRIFT-5504 CA2254 Message template should be compile time constant
Jens-G Jan 31, 2022
af453f3
minor indent fixes
Jens-G Jan 31, 2022
a10d401
FIX: missing EXTRA_DIST entries
Jens-G Feb 2, 2022
48d1a70
FIX: missing EXTRA_DIST entries
Jens-G Feb 2, 2022
f087ec4
FIX: missing EXTRA_DIST entries
Jens-G Feb 2, 2022
b9fe9c2
FIX: test left too early on false premise
Jens-G Feb 3, 2022
6f33b04
THRIFT-5509: Close connection in IsOpen
fishy Feb 3, 2022
56a840a
THRIFT-5509: Close connection in IsOpen
fishy Feb 3, 2022
cbb6530
[THRIFT-5510] On Windows NOMINMAX and WIN32_LEAN_AND_MEAN are unset e…
dsandbrink Feb 4, 2022
6b5b6c4
Merge pull request #2515 from dsandbrink/patch-1
emmenlau Feb 4, 2022
f18a8f3
Update changelog for 0.16.0
Jens-G Feb 4, 2022
2d667f3
FIX: test left too early on false premise
Jens-G Feb 3, 2022
3cac320
THRIFT-5511 Full support for the new net6 "nullability" semantics
Jens-G Jan 31, 2022
50819ce
Fix winsock capitalization for case sensitive cross-compilation
jeremiahpslewis Feb 8, 2022
acd19a8
THRIFT-5509: Suppress noisy log from go's TSimpleServer
fishy Feb 8, 2022
3031394
THRIFT-5509: Suppress noisy log from go's TSimpleServer
fishy Feb 8, 2022
0b29261
THRIFT-5512: Update java dependencies
fishy Feb 8, 2022
a8e3b75
THRIFT-5512: Update java dependencies
fishy Feb 8, 2022
2a93df8
Update changelog for 0.16.0
Jens-G Feb 9, 2022
52d263e
THRIFT-5499: Use blocking Read/Write calls to make sure the Receive/S…
TeinRnD Feb 8, 2022
d2c28b3
THRIFT-5514 netstd test client slow in multithread mode
Jens-G Feb 10, 2022
d8ed398
Merge branch '0.16.0' into master
Jens-G Feb 15, 2022
f0563a5
Updated website update info, the ASF CMS is not longer used anymore.
Jens-G Feb 16, 2022
6266dc0
Updated website update info, the ASF CMS is not longer used anymore.
Jens-G Feb 16, 2022
2fa907e
THRIFT-5495: close client when shutdown server in go lib
buptubuntu Jan 4, 2022
ff74696
FIX: incorrect URL in documentation
Jens-G Feb 17, 2022
103a11c
THRIFT-5467 Python: fix CannotSendHeader exception
csordasmarton Dec 16, 2021
9bee877
THRIFT-5527: Don't swallow idl exceptions in Process function
fishy Feb 23, 2022
8fea4ea
THRIFT-5528 Incorrect HTML link for referenced typedefs
Jens-G Feb 23, 2022
fa44e90
Fixes #5529 missing space in between "<" and "::" in c++ generator
Feb 26, 2022
79f89e0
FIX: remove duplicate constant decls
Jens-G Feb 26, 2022
8ab86c3
Fix headers bug in Thrift/HttpClient.pm
finncolman Mar 1, 2022
c9b7bd7
THRIFT-5519 Java async client loses exceptions in void methods
alex-kormukhin Feb 18, 2022
4bd1fd8
THRIFT-5526 to use "private_members" instead of "private-members" as …
Feb 22, 2022
5a44db8
THRIFT-5525 use "reuse_objects" instead of "reuse-objects" as a consi…
Feb 22, 2022
7ce2216
Support for Python and enums
constd Apr 24, 2019
a0ccc7e
init gen_enum_ to false
kainjow Dec 12, 2021
b89f079
clean up formatting
kainjow Jan 23, 2022
411df3a
fix broken syntax for old style enum
kainjow Jan 23, 2022
c4e5dba
match existing style for setting default value of gen_enum_
kainjow Jan 23, 2022
8d6694d
don't output empty import line if old style enums are used
kainjow Jan 23, 2022
d0e49f0
add tests
kainjow Jan 23, 2022
b8920b0
update makefile
kainjow Mar 4, 2022
66ac7b4
THRIFT-5494 fix cpu full caused by infinite select() when frameSize <…
Feb 24, 2022
d88d4f9
THRIFT-5501 Remove Common Lisp support
Jens-G Mar 5, 2022
7594da8
THRIFT-5536 Fix cross language tests
nsuke Mar 7, 2022
aa27cda
add support for converting to java optional
Feb 21, 2022
20e2ceb
lib/rs/Cargo.toml: Update ordered-float
mcronce Mar 9, 2022
649dcfd
update to gradle 6.9, jdk 15, update findbugs
jimexist Feb 21, 2022
8ef4ed1
workaround MSVC compiler bug
srnwk Mar 10, 2022
bbea728
feat: support creating connection on OpenHarmonyOS
konpeki622 Mar 11, 2022
b941b11
THRIFT-5515: TConnection::workSocket reads all pending oneway requests.
tkovacs-2 Feb 11, 2022
6433994
THRIFT-5539: Decouple TDuplicateToProtocol out of TDebugProtocol
fishy Mar 15, 2022
37f26bb
FIX: error C4244: conversion from "int64_t" to "int", possible data loss
Jens-G Mar 16, 2022
19f60f2
THRIFT-5540 Can't use a typedef for a container type containing enums…
Jens-G Mar 16, 2022
cd810bb
Pass cancellation token to AcceptTcpClientAsync() in net6
Jens-G Mar 18, 2022
56ec69e
Revert SHA-1: 52d263e77c48bbf7cbabd03161107557d1e410b1
Jens-G Mar 19, 2022
f033641
THRIFT-5283: add support for Unix Domain Sockets in lib/rs (#2545)
tokcum Mar 30, 2022
e165fa3
THRIFT-5541: Clarify on THeader key/value format in the spec
fishy Mar 30, 2022
15cc0c4
fix binary protocol's first byte value.
liyan-ah Apr 1, 2022
b3b3dc2
json gen should indent while printing include strings
Apr 6, 2022
2f6ddc9
THRIFT-5552 apply clang-format to java generator
jimexist Apr 12, 2022
aa82214
add interface generation
Apr 12, 2022
9f81161
Bump async from 3.2.1 to 3.2.3 in /lib/js
dependabot[bot] Apr 13, 2022
07061b8
THRIFT-5551: java generator to add @Override where possible
Apr 12, 2022
8d9b9c9
Bump cached-path-relative from 1.0.2 to 1.1.0 in /lib/ts
dependabot[bot] Apr 13, 2022
3fe7180
Bump ansi-regex from 3.0.0 to 3.0.1
dependabot[bot] Apr 13, 2022
8d69216
Bump ajv from 6.5.4 to 6.12.6
dependabot[bot] Apr 13, 2022
272c2a9
Bump minimist from 1.2.5 to 1.2.6 in /lib/js
dependabot[bot] Apr 13, 2022
2e0a805
THRIFT-4100: Extract Rust read/write struct methods into a trait
zachary-kuhn Apr 10, 2022
1eb361a
THRIFT-5521: [java gen] use jdk8 option type in java generator code
jimexist Feb 21, 2022
1a5d6b6
Bump minimist from 1.2.5 to 1.2.6 in /lib/ts
dependabot[bot] Apr 14, 2022
90ea2e8
Bump ajv from 6.7.0 to 6.12.6 in /lib/ts
dependabot[bot] Apr 14, 2022
6bdefc4
THRIFT-5563: fix deprecation and enable xlint for java library (#2575)
jimexist Apr 18, 2022
ceffb5a
Bump cached-path-relative from 1.0.2 to 1.1.0 in /lib/js
dependabot[bot] Apr 14, 2022
35d22c5
change the java gen @SuppressWarnings location
Apr 14, 2022
a8fded4
travis ci to use xenial as base image
Apr 19, 2022
5d220eb
THRIFT-5562: remove gradle wrapper and use installed gradle 6.9
Apr 19, 2022
edcad98
THRIFT-5093: lib: cpp: test: clarify effect of MemoryPolicy on TMemor…
cfriedt Jun 19, 2020
8987820
THRIFT-5569: add negative size checks in Go generator when reading ma…
akrennmair Apr 20, 2022
eac5103
THRIFT-5545: use gradle convention in organizing java project
Mar 11, 2022
49b2d6b
THRIFT-5548: add kotlin code gen
Apr 6, 2022
625367f
(typescript): Fix invalid optional members and argument generation
pprice Oct 10, 2021
0dc5298
Buffer.concat has performance issue
wujjpp Dec 2, 2021
b664cfe
fix Out Of Memory when use TNonblockingServer
blueturbo-shangxu Nov 13, 2020
88a45ac
THRIFT-5449: Use poll instead of select in Python TNonblockingServer …
frankiechang123 Aug 4, 2021
8045d82
Update Go versions used in travis and LANGUAGES.md
fishy Apr 19, 2022
4302aa0
add travis_wait for rebuidling docker image
Apr 22, 2022
9042cc2
wait for 45 minutes
jimexist Apr 22, 2022
40496a7
use 45 min timeout
jimexist Apr 22, 2022
684ee07
use 40 min not 45 min
jimexist Apr 22, 2022
6a61c4e
THRIFT-5564: create a basic github action (#2592)
jimexist Apr 28, 2022
c77d91a
THRIFT-5564: setup java and kotlin lib building (#2593)
jimexist May 3, 2022
7fb21eb
THRIFT-5578 #nullable disable collides with C# lang versions < 8
Jens-G May 5, 2022
ada0865
THRIFT-5544: annotations_as_metadata java code gen param (#2553)
jimexist May 5, 2022
0c9c9df
THRIFT-5560: use JUnit 5 for all Java lib tests (#2574)
jimexist May 5, 2022
3df6a03
[CI] Appveyor - refresh pacman database on upgrade
ctubbsii May 5, 2022
bf5c6dd
Fix merge bug (unconverted JUnit test)
ctubbsii May 6, 2022
45471de
THRIFT-5567: remove cl namespace references (#2580)
jimexist May 6, 2022
23b8636
THRIFT-5570: update java lib document about gradle usage (#2583)
jimexist May 6, 2022
53ec082
THRIFT-5568: enforce consistent Java formatting (#2581)
jimexist May 6, 2022
6c002b6
THRIFT-5571: add metadata map building to kotlin generator (#2584)
jimexist May 6, 2022
bcac978
THRIFT-5568: Add CI formatting/test checks for Java and Kotlin (#2599)
jimexist May 7, 2022
eb62fa8
THRIFT-5553: use newer gradle API (#2561)
jimexist May 8, 2022
891c521
THRIFT-5543: add type parameter to java lib field metadata (#2552)
jimexist May 8, 2022
5fdfd0c
THRIFT-5580: refactor kotlin cross tests (#2600)
jimexist May 9, 2022
ab83ffc
THRIFT-5564: setup cross test in GitHub action (#2602)
jimexist May 9, 2022
a24bcd3
THRIFT-5582: Improve TProtocol.java for Kotlin generator (#2603)
jimexist May 10, 2022
dae1437
THRIFT-5583: Add skip_remote arg to go compiler
fishy May 9, 2022
5b15838
THRIFT-5581: use gradle 7 for java/kotlin (#2601)
jimexist May 11, 2022
71ba05b
THRIFT-5569: Fix size check in TCompactProtocol.ReadListBegin
fishy May 10, 2022
8e217dc
Revert "THRIFT-5569: add negative size checks in Go generator when re…
fishy May 10, 2022
c4e96c7
THRIFT-5584: use gradle toolchain to specify Java 11 with --release 8…
jimexist May 18, 2022
162cbb4
Minor tweak to ErrAbandonRequest in go library
fishy May 19, 2022
c6f18a5
THRIFT-5575: add a github workflow to invoke cmake (#2595)
jimexist May 21, 2022
b90f2bc
Trivial: Add missing AC_CHECK_HEADERS (#2610)
ctubbsii May 23, 2022
4646a35
Remove execute bit from plain text files in git (#2611)
ctubbsii May 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file modified .editorconfig
100755 → 100644
Empty file.
235 changes: 235 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
name: "Build"

on:
push:
branches: ["*"]
pull_request:
branches: ["*"]

env:
BUILD_DEPS: automake bison flex git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config

jobs:
# TODO windows and macos
compiler:
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -y --no-install-recommends g++ $BUILD_DEPS

- name: Run bootstrap
run: ./bootstrap.sh

- name: Run configure
run: ./configure --disable-debug --disable-tests --disable-libs

- name: Run make
run: make -j$(nproc)

- name: Run install
run: make install

- name: Run thrift version
run: /usr/local/bin/thrift -version

# only upload while building ubuntu-20.04
- name: Archive built thrift compiler
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3
with:
name: thrift-compiler
path: compiler/cpp/thrift
retention-days: 3

lib-java-kotlin:
needs: compiler
runs-on: ubuntu-20.04
env:
GRADLE_VERSION: 7.4.2
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
cache: "gradle"

- name: Install dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -y --no-install-recommends $BUILD_DEPS
sudo apt-get install -y wget unzip ant maven

- name: Setup gradle
run: |
wget https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip -q -O /tmp/gradle-$GRADLE_VERSION-bin.zip
(echo "29e49b10984e585d8118b7d0bc452f944e386458df27371b49b4ac1dec4b7fda /tmp/gradle-$GRADLE_VERSION-bin.zip" | sha256sum -c -)
unzip -d /tmp /tmp/gradle-$GRADLE_VERSION-bin.zip
sudo mv /tmp/gradle-$GRADLE_VERSION /usr/local/gradle
sudo ln -s /usr/local/gradle/bin/gradle /usr/local/bin
gradle --version

- name: Run spotlessCheck for Java
run: |
cd lib/java
gradle spotlessCheck

- name: Run ktfmtCheck for Kotlin
run: |
cd lib/kotlin
gradle ktfmtCheck

- name: Run bootstrap
run: ./bootstrap.sh

- name: Run configure
run: |
./configure \
--disable-debug \
--disable-tests \
--disable-dependency-tracking \
--without-cpp \
--without-c_glib \
--with-java \
--with-kotlin \
--without-python \
--without-py3 \
--without-ruby \
--without-haxe \
--without-netstd \
--without-perl \
--without-php \
--without-php_extension \
--without-dart \
--without-erlang \
--without-go \
--without-d \
--without-nodejs \
--without-nodets \
--without-lua \
--without-rs \
--without-swift

- uses: actions/download-artifact@v3
with:
name: thrift-compiler
path: compiler/cpp

- name: Run thrift-compiler
run: |
chmod a+x compiler/cpp/thrift
compiler/cpp/thrift -version

- name: Run make for java
run: make -C lib/java

# this will invoke publishToMavenLocal and install locally
- name: Run make install for java
run: make -C lib/java install

- name: Upload java libthrift artifacts
uses: actions/upload-artifact@v3
with:
name: libthrift
if-no-files-found: error
path: ~/.m2/repository/org/apache/thrift

- name: Run make check for java
run: make -C lib/java check

- name: Run make precross for java
run: make -C lib/java precross

- name: Upload java precross artifacts
uses: actions/upload-artifact@v3
with:
name: java-precross
if-no-files-found: error
path: |
lib/java/build/functionalTestJar/
lib/java/build/runclient
lib/java/build/runnonblockingserver
lib/java/build/runserver
lib/java/build/runservletserver
retention-days: 3

- name: Run make for kotlin
run: make -C lib/kotlin

- name: Run make check for kotlin
run: make -C lib/kotlin check

- name: Run make precross for kotlin
run: make -C lib/kotlin precross

- name: Upload kotlin precross artifacts
uses: actions/upload-artifact@v3
with:
name: kotlin-precross
if-no-files-found: error
path: |
lib/kotlin/cross-test-client/build/install/TestClient/
lib/kotlin/cross-test-server/build/install/TestServer/
retention-days: 3

cross-test:
needs:
- lib-java-kotlin
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.x"
- uses: actions/setup-java@v3
with:
distribution: temurin
# here we intentionally use java 8 so that we also verify java 11 compiles to version 8
java-version: 8
cache: "gradle"

- name: Download java precross artifacts
uses: actions/download-artifact@v3
with:
name: java-precross
path: lib/java/build

- name: Download kotlin precross artifacts
uses: actions/download-artifact@v3
with:
name: kotlin-precross
path: lib/kotlin

- name: Set back executable flags
run: |
chmod a+x \
lib/java/build/run* \
lib/kotlin/cross-test-client/build/install/TestClient/bin/* \
lib/kotlin/cross-test-server/build/install/TestServer/bin/*

- name: Run cross test
env:
THRIFT_CROSSTEST_CONCURRENCY: 4
PRECROSS_LANGS: java,kotlin
run: |
python test/test.py \
--retry-count 5 \
--skip-known-failures \
--server $PRECROSS_LANGS \
--client $PRECROSS_LANGS

- name: Upload log files from failed cross test runs
uses: actions/upload-artifact@v3
if: failure()
with:
name: cross-test-log
path: test/log/
retention-days: 3
37 changes: 37 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'Build with CMake'

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

env:
BUILD_DEPS: bison flex g++ libboost-all-dev libevent-dev libssl-dev make cmake

jobs:
compiler:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -y --no-install-recommends $BUILD_DEPS

- name: Generate makefile using CMake
run: |
mkdir cmake_build
cd cmake_build
cmake .. -DBUILD_LIBRARIES=OFF

- name: Run make
run: |
cd cmake_build
cmake --build .

- name: Run test
run: |
cd cmake_build
ctest -j$(nproc)
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ project.lock.json
/lib/dart/**/packages
/lib/dart/**/.pub/
/lib/dart/**/pubspec.lock
/lib/delphi/*.local
/lib/delphi/*.identcache
/lib/delphi/test/skip/bin
/lib/delphi/test/serializer/*.dat
/lib/delphi/**/*.identcache
Expand Down Expand Up @@ -227,6 +229,13 @@ project.lock.json
/lib/js/dist
/lib/js/doc
/lib/js/test/build
/lib/kotlin/cross-test-client/build/
/lib/kotlin/cross-test-server/build/
/lib/kotlin/build/
/lib/kotlin/.gradle/
/lib/kotlin/gradle/
/lib/kotlin/gradlew
/lib/kotlin/gradlew.bat
/lib/netstd/**/bin
/lib/netstd/**/obj
/lib/nodejs/coverage
Expand Down Expand Up @@ -272,6 +281,7 @@ project.lock.json
/lib/erl/logs/
/lib/go/pkg
/lib/go/src
/lib/go/test/fuzz/gopathfuzz
/lib/go/test/gopath/
/lib/go/test/ThriftTest.thrift
/lib/nodets/test-compiled/
Expand Down
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,21 @@
#
# Docker Integration
# see: build/docker/README.md
#
#

sudo: required
dist: trusty
# https://docs.travis-ci.com/user/reference/linux
dist: xenial
language: cpp

services:
- docker

install:
- if [[ `uname` == "Linux" ]]; then build/docker/refresh.sh; fi
# https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
# adding `travis_wait` because kerl building in the docker file takes >10 min for building erlang
# without printing to stdout, resulting in build failures
- if [[ `uname` == "Linux" ]]; then travis_wait 40 build/docker/refresh.sh; fi

stages:
- docker # docker images
Expand Down
8 changes: 4 additions & 4 deletions ApacheThrift.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
the "Thrift" project.
2. nuget setApiKey <your-api-key>
3. nuget pack ApacheThrift.nuspec -Symbols -SymbolPackageFormat snupkg
4. nuget push ApacheThrift.0.15.0.nupkg -Source https://api.nuget.org/v3/index.json
4. nuget push ApacheThrift.0.17.0.nupkg -Source https://api.nuget.org/v3/index.json
-->

<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>ApacheThrift</id>
<version>0.15.0</version>
<title>Apache Thrift 0.15.0</title>
<version>0.17.0</version>
<title>Apache Thrift 0.17.0</title>
<authors>Apache Thrift Developers</authors>
<owners>Apache Software Foundation</owners>
<license type="expression">Apache-2.0</license>
Expand All @@ -36,7 +36,7 @@
<description>
Contains runtime libraries from lib/netstd for netstandard2.0 framework development.
</description>
<repository type="GitHub" url="https://github.com/apache/thrift" branch="release/0.15.0" />
<repository type="GitHub" url="https://github.com/apache/thrift" branch="release/0.17.0" />
<tags>Apache Thrift RPC</tags>
</metadata>
<files>
Expand Down
Loading