Jiayu Liu
5fdfd0cae0
THRIFT-5580: refactor kotlin cross tests ( #2600 )
...
refactor kotlin cross test to:
* use proper cli framework,
* add more transport/protocol cases
2022-05-08 22:52:26 -04:00
Jiayu Liu
891c521528
THRIFT-5543: add type parameter to java lib field metadata ( #2552 )
...
* add type parameter to java lib field metadata
* reduce number of exceptions
2022-05-08 01:31:21 -04:00
Jiayu Liu
eb62fa8d13
THRIFT-5553: use newer gradle API ( #2561 )
...
Prepare for moving to Gradle 7 by removing use of older Gradle directives
(except the use of maven; the transition to maven-publish is not included here)
2022-05-08 01:01:41 -04:00
Jiayu Liu
bcac978ce9
THRIFT-5568: Add CI formatting/test checks for Java and Kotlin ( #2599 )
...
Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
2022-05-06 20:35:09 -04:00
Jiayu Liu
6c002b61e5
THRIFT-5571: add metadata map building to kotlin generator ( #2584 )
2022-05-06 12:40:03 -04:00
Jiayu Liu
53ec08228a
THRIFT-5568: enforce consistent Java formatting ( #2581 )
...
* use spotless plugin and google-java-format to enforce a consistent code format
* add a step of spotless check before building
* only run spotless on the src/ directory
Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
2022-05-06 00:56:42 -04:00
Jiayu Liu
23b86364ef
THRIFT-5570: update java lib document about gradle usage ( #2583 )
...
* update java doc about gradle usage
* update .gitignore
2022-05-06 00:42:18 -04:00
Jiayu Liu
45471decdf
THRIFT-5567: remove cl namespace references ( #2580 )
...
Fix warnings in the tutorial code by removing the Common Lisp namespace references,
since support for that was removed in THRIFT-5476
2022-05-06 00:40:45 -04:00
Christopher Tubbs
bf5c6dd77c
Fix merge bug (unconverted JUnit test)
...
Convert TestAnnotationMetadata to JUnit5 API. This class was not
included in THRIFT-5560 (PR #2574 ) when the conversion was done because
this was a new class added in THRIFT-5544 (PR #2553 ), which was merged
first.
2022-05-05 23:51:18 -04:00
Christopher Tubbs
3df6a03a2f
[CI] Appveyor - refresh pacman database on upgrade
...
Add -y (--refresh) flag to pacman when also doing a system upgrade with
-u (--sysupgrade). This ensures that its database is refreshed in the
case where pacman core is upgraded after the previous refresh.
2022-05-05 16:57:30 -04:00
Jiayu Liu
0c9c9df763
THRIFT-5560: use JUnit 5 for all Java lib tests ( #2574 )
2022-05-05 15:30:52 -04:00
Jiayu Liu
ada0865297
THRIFT-5544: annotations_as_metadata java code gen param ( #2553 )
...
Add a java code generation parameter called "annotations_as_metadata" to
optionally include Thrift field annotations as metadata in the generated code.
2022-05-05 15:19:57 -04:00
Jens Geyer
7fb21ebff7
THRIFT-5578 #nullable disable collides with C# lang versions < 8
...
Client: netstd
Patch: Jens Geyer
2022-05-05 10:02:34 +02:00
Jiayu Liu
c77d91a65b
THRIFT-5564: setup java and kotlin lib building ( #2593 )
...
* add java build workflow
* add kotlin as well
* run full make with ant and maven
* shorten names
Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
2022-05-03 08:55:50 -04:00
Jiayu Liu
6a61c4ee99
THRIFT-5564: create a basic github action ( #2592 )
...
Partially addresses THRIFT-5564
2022-04-28 13:25:39 -04:00
Jiayu Liu
684ee07174
use 40 min not 45 min
2022-04-27 12:49:55 +02:00
Jiayu Liu
40496a7c43
use 45 min timeout
2022-04-27 12:49:55 +02:00
Jiayu Liu
9042cc298c
wait for 45 minutes
2022-04-27 12:49:55 +02:00
Jiayu Liu
4302aa07b0
add travis_wait for rebuidling docker image
...
because building image requires kerl to build erlang, which requires >10
min to build and meanwhile not printing to stdout, failing the travis
build
2022-04-27 12:49:55 +02:00
Yuxuan 'fishy' Wang
8045d82f0d
Update Go versions used in travis and LANGUAGES.md
...
Per our support policy, drop support of go 1.16 and add support of go
1.18.
Also enable go vet in make check, and fix issues reported by go vet.
2022-04-25 16:00:53 -07:00
Yiyang Zhou
88a45ac775
THRIFT-5449: Use poll instead of select in Python TNonblockingServer if available
...
Client: Python
2022-04-23 10:30:46 +02:00
shangxu
b664cfe253
fix Out Of Memory when use TNonblockingServer
2022-04-21 09:13:52 +02:00
Wu Jian Ping
0dc52985ca
Buffer.concat has performance issue
2022-04-21 09:08:22 +02:00
Phil Price
625367f216
(typescript): Fix invalid optional members and argument generation
...
Fixes two cases where the optional flag `?` is generated incorrectly for typescript, leading to invalid build:
- Non-optional function arguments after optional arguments
- Exception types with optional message
2022-04-21 09:07:23 +02:00
Jiayu Liu
49b2d6b888
THRIFT-5548: add kotlin code gen
...
Client: kotlin
Patch: Jiayu Liu
This closes #2556
2022-04-20 23:49:33 +02:00
Jiayu Liu
eac5103f82
THRIFT-5545: use gradle convention in organizing java project
...
Client: java
Patch: Jiayu Liu
This closes #2546
2022-04-20 23:37:58 +02:00
Andreas Krennmair
8987820e84
THRIFT-5569: add negative size checks in Go generator when reading maps, sets and lists
...
Client: go
2022-04-20 23:28:55 +02:00
Christopher Friedt
edcad983d9
THRIFT-5093: lib: cpp: test: clarify effect of MemoryPolicy on TMemoryBuffer
...
Client: cpp
Tests to clarify the effect of each MemoryPolicy on TMemoryBuffer.
Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
2022-04-19 18:51:18 +02:00
Jiayu Liu
5d220eb332
THRIFT-5562: remove gradle wrapper and use installed gradle 6.9
...
Client: java
Patch: Jiayu Liu
This closes #2576
2022-04-19 18:40:52 +02:00
Jiayu Liu
a8fded4976
travis ci to use xenial as base image
2022-04-19 18:27:41 +02:00
Jiayu Liu
35d22c526e
change the java gen @SuppressWarnings location
2022-04-19 11:43:23 +02:00
dependabot[bot]
ceffb5a934
Bump cached-path-relative from 1.0.2 to 1.1.0 in /lib/js
...
Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative ) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/ashaffer/cached-path-relative/releases )
- [Commits](https://github.com/ashaffer/cached-path-relative/commits )
---
updated-dependencies:
- dependency-name: cached-path-relative
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 11:42:16 +02:00
Jiayu Liu
6bdefc47c3
THRIFT-5563: fix deprecation and enable xlint for java library ( #2575 )
2022-04-18 12:50:35 -04:00
dependabot[bot]
90ea2e8398
Bump ajv from 6.7.0 to 6.12.6 in /lib/ts
...
Bumps [ajv](https://github.com/ajv-validator/ajv ) from 6.7.0 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases )
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.7.0...v6.12.6 )
---
updated-dependencies:
- dependency-name: ajv
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-16 10:01:44 +02:00
dependabot[bot]
1a5d6b6f07
Bump minimist from 1.2.5 to 1.2.6 in /lib/ts
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-16 10:01:35 +02:00
Jiayu Liu
1eb361a893
THRIFT-5521: [java gen] use jdk8 option type in java generator code
...
Client: Java
Patch: Jiayu Liu
This closes #2525
2022-04-16 09:58:32 +02:00
Zachary Kuhn
2e0a805998
THRIFT-4100: Extract Rust read/write struct methods into a trait
...
Client: rs
2022-04-14 19:20:30 +02:00
dependabot[bot]
272c2a9631
Bump minimist from 1.2.5 to 1.2.6 in /lib/js
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 19:14:11 +02:00
dependabot[bot]
8d69216e81
Bump ajv from 6.5.4 to 6.12.6
...
Bumps [ajv](https://github.com/ajv-validator/ajv ) from 6.5.4 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases )
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.5.4...v6.12.6 )
---
updated-dependencies:
- dependency-name: ajv
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 19:13:58 +02:00
dependabot[bot]
3fe71800de
Bump ansi-regex from 3.0.0 to 3.0.1
...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex ) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases )
- [Commits](https://github.com/chalk/ansi-regex/compare/v3.0.0...v3.0.1 )
---
updated-dependencies:
- dependency-name: ansi-regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 19:13:53 +02:00
dependabot[bot]
8d9b9c97c6
Bump cached-path-relative from 1.0.2 to 1.1.0 in /lib/ts
...
Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative ) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/ashaffer/cached-path-relative/releases )
- [Commits](https://github.com/ashaffer/cached-path-relative/commits )
---
updated-dependencies:
- dependency-name: cached-path-relative
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 19:13:32 +02:00
Jiayu Liu
07061b83ec
THRIFT-5551: java generator to add @Override where possible
...
Client: java
Patch: Jiayu Liu
Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
This closes #2559
2022-04-13 21:59:36 +02:00
dependabot[bot]
9f81161a9c
Bump async from 3.2.1 to 3.2.3 in /lib/js
...
Bumps [async](https://github.com/caolan/async ) from 3.2.1 to 3.2.3.
- [Release notes](https://github.com/caolan/async/releases )
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md )
- [Commits](https://github.com/caolan/async/compare/v3.2.1...v3.2.3 )
---
updated-dependencies:
- dependency-name: async
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 21:50:32 +02:00
Jiayu Liu
aa82214dbc
add interface generation
2022-04-13 21:49:21 +02:00
Jiayu Liu
2f6ddc9145
THRIFT-5552 apply clang-format to java generator
...
Format only: `clang-format -i compiler/cpp/src/thrift/generate/t_java_generator.cc`
This is a subset of `make style` for this one file only
This closes PR #2560
2022-04-11 23:58:27 -04:00
Jiayu Liu
b3b3dc2ab8
json gen should indent while printing include strings
2022-04-11 21:48:43 +02:00
Blacker1230
15cc0c4da2
fix binary protocol's first byte value.
2022-04-01 18:53:15 +02:00
Yuxuan 'fishy' Wang
e165fa3c85
THRIFT-5541: Clarify on THeader key/value format in the spec
...
[skip ci]
2022-03-31 14:48:55 -07:00
tokcum
f0336417ca
THRIFT-5283: add support for Unix Domain Sockets in lib/rs ( #2545 )
...
Client: rs
2022-03-30 05:39:08 -04:00
Jens Geyer
56ec69e9f8
Revert SHA-1: 52d263e77c
...
Using sync calls breaks web scenarios.
THRIFT-5499: Use blocking Read/Write calls to make sure the Receive/SendTimeout is checked.
Client: netstd
2022-03-19 13:30:16 +01:00