Commit Graph

6896 Commits

Author SHA1 Message Date
Mario Emmenlauer
35b319baa8
Merge pull request #2866 from BioDataAnalysis/emmenlau_minor_test_improvement
Very minor code cleanup (whitespace changes only)
2023-10-12 14:39:39 +02:00
Mario Emmenlauer
d327636dad lib/cpp/test/concurrency/Tests.cpp: Very minor code cleanup (whitespace changes only) 2023-10-12 14:39:20 +02:00
Mario Emmenlauer
2810fd207e
Merge pull request #2862 from BioDataAnalysis/emmenlau_fix_windows_header_include
TProtocol.h: Be extra careful when including MSVC Windows-related headers
2023-10-12 14:37:54 +02:00
Mario Emmenlauer
49c6ec702d TProtocol.h: Be extra careful when including MSVC Windows-related headers to not pollute the c++ namespace 2023-10-12 09:30:59 +02:00
Mario Emmenlauer
ffa4f541a5
Merge pull request #2864 from BioDataAnalysis/emmenlau_fix_openssl_version_macros
lib/cpp/test/Security*Test.cpp: Fix the check for OpenSSL version macro
2023-10-12 09:29:24 +02:00
Ilya Urvachev
8aa22a42fa fix(php): exclude most part of the repo for php package 2023-10-11 22:10:07 +02:00
Mario Emmenlauer
006bc89370
Merge pull request #2865 from BioDataAnalysis/emmenlau_minor_clangcl_improvement
Separated MSVC and clang-cl settings for Windows
2023-10-11 16:48:02 +02:00
Mario Emmenlauer
c5a5f79d7a build/cmake/DefinePlatformSpecifc.cmake: Separated MSVC and Clang-Cl settings for Windows 2023-10-11 16:46:19 +02:00
Mario Emmenlauer
5f87b836a5 lib/cpp/test/Security*Test.cpp: Fix the check for OpenSSL version 2023-10-11 16:43:35 +02:00
Biswapriyo Nath
7b8c04273f Fix building with gcc 13
This fixes the following compiler error.

t_js_generator.cc:48:14: error: 'int64_t' does not name a type
   48 | static const int64_t max_safe_integer = 0x1fffffffffffff;
      |              ^~~~~~~
t_js_generator.cc:50:14: error: 'int64_t' does not name a type
   50 | static const int64_t min_safe_integer = -max_safe_integer;
      |              ^~~~~~~
2023-10-07 18:32:33 +02:00
dependabot[bot]
a14231c698
Bump actions/checkout from 3 to 4 (#2858)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 18:33:29 -04:00
dependabot[bot]
94abea1b2e
Bump com.diffplug.spotless from 6.21.0 to 6.22.0 in /lib/kotlin (#2859)
Bumps com.diffplug.spotless from 6.21.0 to 6.22.0.

---
updated-dependencies:
- dependency-name: com.diffplug.spotless
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 18:32:45 -04:00
Jeff Alder
bc9c04d804 THRIFT-5738: Remove unused variable 2023-09-26 00:10:12 +02:00
bwangelme
407630f280 fix: fix NewTSocketConf comment error
Client: ["go"]

[skip ci]
2023-09-20 09:24:31 -07:00
Jens Geyer
0ca6e888fc Release Management: added the missing EXTRA_DIST validation step 2023-09-12 22:22:28 +02:00
Jens Geyer
50787cc0b0 THRIFT-5734 generated code may lack required capitalization at class names
CLient: haxe
Patch: Jens Geyer
2023-09-03 10:56:26 +02:00
Jens Geyer
346aa81899 THRIFT-5733 Building code with circular includes crashes Thrift compiler
Patch: Jens Geyer

This closes #2851
2023-09-03 10:53:47 +02:00
Jens Geyer
54bdf8d71c Merge branch '0.19.0' into upstream 2023-09-02 13:39:06 +02:00
dependabot[bot]
09820df910
Bump com.diffplug.spotless from 6.20.0 to 6.21.0 in /lib/java (#2847)
Bumps com.diffplug.spotless from 6.20.0 to 6.21.0.

---
updated-dependencies:
- dependency-name: com.diffplug.spotless
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-01 03:13:27 -04:00
dependabot[bot]
c340e0bad1
Bump com.github.spotbugs from 5.1.0 to 5.1.3 in /lib/java (#2848)
Bumps com.github.spotbugs from 5.1.0 to 5.1.3.

---
updated-dependencies:
- dependency-name: com.github.spotbugs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-01 02:41:47 -04:00
Jens Geyer
5656208a20 release 0.19.0 2023-08-27 15:45:30 +02:00
Yuxuan 'fishy' Wang
291b560c36 THRIFT-5653: Fix Java UUID typeid
It should be 16 not 17 according to the spec.

Currently ENUM holds 16, it's not in TBinaryProtocol spec and seems to
be a Java implementation detail somehow got mixed inside TType, move
that to -1 for now. Someone more familiar with Java can probably remove
it from TType completely in the future.

client: java
2023-08-20 17:28:52 -07:00
Yuxuan 'fishy' Wang
ee1a7ea35b THRIFT-5731: Handle ErrAbandonRequest automatically
Also add a test to verify the behavior.

The test helped me to found a bug in TSimpleServer that didn't handle
the ErrAbandonRequest case correctly, so fix the bug as well.

client: go
2023-08-20 17:28:52 -07:00
Jiayu Liu
4ca47e0362 fix kotlin cross test by downgrading to java 8 (#2840) 2023-08-20 17:28:52 -07:00
Yuxuan 'fishy' Wang
79c56026fc Update supported go versions to 1.20 and 1.21 2023-08-20 17:28:52 -07:00
Jiayu Liu
628023c273 fix gradle format 2023-08-20 17:28:52 -07:00
Jiayu Liu
fd60a9a3a1 reformat kotlin files 2023-08-20 17:28:52 -07:00
Yuxuan 'fishy' Wang
4e4461a946 THRIFT-5653: Fix Java UUID typeid
It should be 16 not 17 according to the spec.

Currently ENUM holds 16, it's not in TBinaryProtocol spec and seems to
be a Java implementation detail somehow got mixed inside TType, move
that to -1 for now. Someone more familiar with Java can probably remove
it from TType completely in the future.

client: java
2023-08-14 13:31:22 -07:00
Yuxuan 'fishy' Wang
0e872c84aa THRIFT-5731: Handle ErrAbandonRequest automatically
Also add a test to verify the behavior.

The test helped me to found a bug in TSimpleServer that didn't handle
the ErrAbandonRequest case correctly, so fix the bug as well.

client: go
2023-08-09 16:03:22 -07:00
Jiayu Liu
166a2136ca
fix kotlin cross test by downgrading to java 8 (#2840) 2023-08-10 06:33:43 +08:00
Yuxuan 'fishy' Wang
dc733faff4 Update supported go versions to 1.20 and 1.21 2023-08-08 11:33:22 -07:00
dependabot[bot]
055ceecebf
Bump org.jetbrains.kotlinx:kotlinx-coroutines-jdk8 in /lib/kotlin (#2834)
Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-jdk8](https://github.com/Kotlin/kotlinx.coroutines) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.7.2...1.7.3)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-jdk8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 22:39:55 -04:00
dependabot[bot]
cc4d99d93d
Bump com.diffplug.spotless from 6.19.0 to 6.20.0 in /lib/java (#2839)
Bumps com.diffplug.spotless from 6.19.0 to 6.20.0.

---
updated-dependencies:
- dependency-name: com.diffplug.spotless
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 22:32:38 -04:00
dependabot[bot]
c500eabf4b
Bump com.github.spotbugs from 5.0.14 to 5.1.0 in /lib/java (#2838)
Bumps com.github.spotbugs from 5.0.14 to 5.1.0.

---
updated-dependencies:
- dependency-name: com.github.spotbugs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 22:30:59 -04:00
Sergei Elin
4576409657 THRIFT-5635 Update erlang client for Erlang 23-25
Client: erl
Patch: Sergey Yelin

This closes #2677

Summary of changes:
 - Add useful compiler options
 - Format sources using erlfmt
 - Switch to modern callbacks in thrift_* modules
 - Add static analysis (dialyzer), disabled by default
 - Add/fix types for API calls

NOTE: Enabling static analysis requires additional tweaks in multiplexer module.
2023-07-22 13:16:08 +02:00
Jens Geyer
8e89abee17 THRIFT-5726 package upgrades and consolidation/improvement of build targets checks
Client: netstd
Patch: Jens Geyer
2023-07-21 22:32:03 +02:00
tsxiaofang
cfb4a80cfc
Setting TCP_ NODELAY option for rust server (#2832)
Resolve TFramedWriteTransport write message size 4 bytes causing approximately 40 milliseconds delay
2023-07-17 06:16:32 -04:00
dependabot[bot]
2cfde6b440 Bump org.jetbrains.kotlinx:kotlinx-coroutines-jdk8 in /lib/kotlin
Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-jdk8](https://github.com/Kotlin/kotlinx.coroutines) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.7.1...1.7.2)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-jdk8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-16 10:56:01 +02:00
Jiayu Liu
a4e1136541 fix gradle format 2023-07-16 10:55:25 +02:00
Jiayu Liu
8a5a440b71 reformat kotlin files 2023-07-16 10:55:25 +02:00
Jens Geyer
30b31aaecb Release 0.19.0 2023-07-15 11:48:39 +02:00
Jens Geyer
f5a67528d8 Release 0.19.0 2023-07-15 11:32:12 +02:00
Jens Geyer
0d5b4f9fa1 created reöease branch 0.19.0 2023-07-08 12:49:11 +02:00
Prasenjit Sarkar
bccca9301d THRIFT-5725: Fix the comparison check for bio_get_fd
Client: cpp
Patch: Prasenjit Sarkar

This closes #2831
2023-07-08 10:18:33 +02:00
Katie Atkinson
ff9850eda6 THRIFT-5715 Python Exceptions mutable with slots
In Python 3.11 exceptions generated by the compiler can't be used with a
context manager because they are immutable. As of Python 3.11
`contextlib.contextmanager` sets `exc.__traceback__` in the event that
the code in the context manager errors.

As of Thrift v0.18.1 exceptions are generated as immutable by default.
See [PR#1835](https://github.com/apache/thrift/pull/1835) for more
information about why exceptions were made immutable by default.

This change makes all non-Thrift fields mutable when slots is used
without dynamic. This will allow exceptions to be re-raised properly by
the contextmanager in Python 3.11.
2023-07-07 16:26:00 -07:00
vladimir.panivko
3abf7ecbda THRIFT-5723
Php8.1 fix warnings
2023-07-07 21:34:31 +02:00
Roshan Rajan
284e6b30b8 Use Enum not Enum.name in Struct serialization/deserialization 2023-07-06 08:20:35 -07:00
Artemy
774b824ef3
THRIFT-5671: return dependencies to POM (#2782)
Client: ["java"]
2023-07-05 15:43:57 +08:00
Roshan Rajan
b2c5805b40 Fix typename for value in map for python gen code 2023-06-29 09:51:19 -07:00
Yuxuan 'fishy' Wang
e497030b49 Remove py2 from github actions
Although we haven't removed py2 support yet, it's no longer available in
github actions so it's been consistently failing in recent github action
runs.

Also add `fail-fast: false` to all matrices in github actions.
2023-06-27 12:47:44 -07:00