Commit Graph

52 Commits

Author SHA1 Message Date
Volodymyr Panivko
99130046c4 [THRIFT-5757] Unit tests for php lib 2024-03-12 19:02:50 +01:00
Volodymyr Panivko
14fc2be20c [THRIFT-5757] Unit tests for php lib 2024-02-25 22:21:42 +01:00
Volodymyr Panivko
ac52d8dac1 [THRIFT-5758] PHP 8.2 Deprecate dynamic properties 2024-02-25 12:22:46 +01:00
vladimir.panivko
f6927020dd [THRIFT-5760] Update minimal version of php 2024-02-25 12:21:04 +01:00
Yuxuan 'fishy' Wang
3b1c30c5a7 Add license header to pypi workflow file 2024-02-21 23:36:04 +01:00
Volodymyr Panivko
8e828c03d4 THRIFT-5756 Run php tests in github actions 2024-02-21 09:10:28 +01:00
Yuxuan 'fishy' Wang
84b35ff828 THRIFT-5688: Add PyPI publishing github actions
This is tested with https://github.com/apache/thrift/pull/2927, which
published to https://test.pypi.org/project/thrift-test/. I tested
locally with:

    (venv) fishy@penguin:~/work/test$ pip install -i https://test.pypi.org/simple/ thrift-test
    Looking in indexes: https://test.pypi.org/simple/
    Collecting thrift-test
      Downloading 5885ea1406/thrift-test-0.21.0.tar.gz (62 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.3/62.3 kB 1.4 MB/s eta 0:00:00
      Preparing metadata (setup.py) ... done
    Collecting six>=1.7.2 (from thrift-test)
      Downloading 238e259082/six-1.10.0.tar.gz (29 kB)
      Preparing metadata (setup.py) ... done
    Building wheels for collected packages: thrift-test, six
      Building wheel for thrift-test (setup.py) ... done
      Created wheel for thrift-test: filename=thrift_test-0.21.0-cp311-cp311-linux_x86_64.whl size=416914 sha256=3a972bc562be7ed19cb37399e444ed0d373cde5319023974080b625e550901d4
      Stored in directory: /home/fishy/.cache/pip/wheels/45/20/1f/d3e1b869ac068d63ca2b2c13a2f4e33a80b360fae7091c8a9b
      Building wheel for six (setup.py) ... done
      Created wheel for six: filename=six-1.10.0-py2.py3-none-any.whl size=9942 sha256=74014380446ccf331366316cec0b1aaf40e0162e70307622b493e38e8451115f
      Stored in directory: /home/fishy/.cache/pip/wheels/e4/18/d0/e02474c90dcf14c511c0f52145d7e72e41ff3fb80b330ba58e
    Successfully built thrift-test six
    Installing collected packages: six, thrift-test
    Successfully installed six-1.10.0 thrift-test-0.21.0
    (venv) fishy@penguin:~/work/test$ python3
    Python 3.11.7 (main, Dec  8 2023, 14:22:46) [GCC 13.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from thrift.transport import TSocket
    >>> transport = TSocket.TSocket('localhost', 9090)
    >>> transport
    <thrift.transport.TSocket.TSocket object at 0x785b18d83690>
    >>> transport.open()
    Could not connect to any of [('::1', 9090, 0, 0), ('127.0.0.1', 9090)]
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/fishy/work/test/venv/lib/python3.11/site-packages/thrift/transport/TSocket.py", line 149, in open
        raise TTransportException(type=TTransportException.NOT_OPEN, message=msg)
    thrift.transport.TTransport.TTransportException: Could not connect to any of [('::1', 9090, 0, 0), ('127.0.0.1', 9090)]
    >>> from thrift.protocol import fastbinary
    >>> fastbinary
    <module 'thrift.protocol.fastbinary' from '/home/fishy/work/test/venv/lib/python3.11/site-packages/thrift/protocol/fastbinary.cpython-311-x86_64-linux-gnu.so'>
    >>> fastbinary.decode_compact
    <built-in function decode_compact>
    >>>

If we want to merge this version, I'll enable pending publishing with
`pypi.yml` from this repo on pypi [1].

[1]: https://pypi.org/manage/account/publishing/
2024-02-19 09:26:06 -08:00
Yuxuan 'fishy' Wang
875178c0ab THRIFT-5744: Switch to slog for go library
Client: go
2024-02-06 15:46:57 -08:00
Yuxuan 'fishy' Wang
3dcc0cdeb9 Revert "Bump upload/download-artifacts from v3 to v4"
This reverts commit 8540066800.

https://github.com/actions/upload-artifact/issues/478 will impact us.
2024-01-09 12:58:47 -08:00
Yuxuan 'fishy' Wang
8540066800 Bump upload/download-artifacts from v3 to v4
This is the combination of https://github.com/apache/thrift/pull/2910 &
https://github.com/apache/thrift/pull/2912. It looks like these 2
changes need to be done together, doing them individually will break CI.
2024-01-03 10:24:06 -08:00
dependabot[bot]
30c2845fdc Bump actions/setup-python from 4 to 5
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-03 09:31:55 -08:00
dependabot[bot]
1ebfcf8e0b Bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-03 09:20:40 -08:00
Yuxuan 'fishy' Wang
022d0278eb Github Actions: Remove --disable-tests
With --disable-tests, for example for Go the `make check` under `lib/go`
would only run unit tests under `lib/go/thrift` but not the unit tests
under `lib/go/test`.

Also some changes in lib/go/test/fuzz/Makefile.am so it works in both go
1.20 and 1.21 (The current state breaks in 1.21 but because of
`--disable-tests` we never noticed that).
2023-12-04 06:57:25 -08:00
dependabot[bot]
f4b6d96008 Bump actions/setup-java from 3 to 4
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-03 22:00:40 +01:00
Jiayu Liu
fbfa52cd04 THRIFT-5741: use rust 1.65 (#2870)
* use rust 1.65

* fix clippy

* fix alert

* fix protocol

* fix one more dereference

* fix more lint

* fix over-fix

* fix match &*server_type {
2023-11-07 13:47:24 +08:00
Jiayu Liu
d40dd7203e use gradle 8.4 (#2869) 2023-10-19 08:37:49 +08: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
Yuxuan 'fishy' Wang
dc733faff4 Update supported go versions to 1.20 and 1.21 2023-08-08 11:33:22 -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
Fokko Driesprong
0b14a1bb01 THRIFT-5702 Support Java 8
Client: Java
Patch: Fokko Driesprong

This closes #2785
2023-06-21 22:25:13 +02:00
Jiayu Liu
790d4cb86c THRIFT-5564: [CI] use GitHub workflow matrix to parallel cross tests (#2801)
* use github to parallel cross tests

* fix syntax

* correct syntax

* split more

* update fail-fast

* fix swift'
2023-04-27 11:35:17 +08:00
dependabot[bot]
ccfb91e260 Bump actions/setup-go from 3 to 4 (#2795)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  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-04-27 08:46:40 +08:00
dependabot[bot]
9141c0c999 Bump actions/setup-python from 3 to 4 (#2792)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  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-04-27 08:45:46 +08:00
Fokko Driesprong
67de2f5542 THRIFT-5701: Add dependabot (#2784)
* THRIFT-5701: Add dependabot

To keep up to date with the latest dependencies

* Update dependabot.yml

* Change to monthly

* Add `/lib/kotlin`
2023-04-27 08:44:33 +08:00
Jiayu Liu
6f339004e6 THRIFT-5564: add GitHub action for python 2.x and 3.x (#2787)
* update .github workflow to consolidate config

* add lib python

* Update build.yml

update

* rust => rs

* Update build.yml

update

* update

install openssl

remove 3.6

setup daemon

try 3.6

fix lib path

add backports of py

Update build.yml

use sudo

add install-exec-hook

* add ssl test skip
2023-04-20 07:39:35 +08:00
Jiayu Liu
1e3d90d8fd update .github workflow to consolidate config (#2786)
* update .github workflow to consolidate config

* rust => rs
2023-04-14 23:57:33 +08:00
Jiayu Liu
be73a570e2 THRIFT-5699: java lib and build tool chain: gradle 8.0.2 (#2779) 2023-04-14 11:02:43 +08:00
Jiayu Liu
79a4b1e9a3 update gradle to version 7.6 (#2744)
* update gradle to version 7.6

* update hash
2023-04-09 15:39:20 +08:00
Duru Can Celasun
074a9342d8 Add Jira account instructions to the PR template 2023-03-02 00:27:49 +00:00
Yuxuan 'fishy' Wang
b94eac7ca0 Update supported go versions
Following our policy regarding supported go releases, change the
supported go versions to 1.19.* and 1.20.* with the release of go 1.20.
2023-02-02 12:59:53 -08:00
Yuxuan 'fishy' Wang
e8353cb46e Use multi-module to cleanup top level go.mod
Client: go

The go library itself does not have any third-party dependencies. We
have one third party dependency from the test code, which kind of
polluted from top-level go.mod file to the users of thrift go library.

We previous tried to clean that up by creating go.mod file at
lib/go/thrift, which caused issues to the release process and thus
reverted.

Use multi-module to separate tests requiring mock to their own modules
so that we can keep the top-level go.mod file clean.

Also some minor fixes on the github actions go workflow.
2022-11-02 15:44:07 -07:00
Yuxuan 'fishy' Wang
19c13b4cc6 THRIFT-5650: Implement UUID in Go library
Client: go

This is only the library part of THRIFT-5650. I still have some open
questions for the compiler part so that will be done later.

While I'm here, also made some changes to go CI process:

* Update ubuntu-bionic to use go 1.18 for travis
* Update ubuntu-jammy to use the latest go 1.19.x for travis
* Run both go 1.18 and 1.19 for github actions
* Also run test/go tests for github actions
2022-10-21 10:36:06 -07:00
Jiayu Liu
92b007fa88 java to use jdk 17 (#2686) 2022-10-14 13:16:18 +08:00
Jiayu Liu
564b287404 add ubuntu jammy in build infra (#2684) 2022-10-12 11:42:38 +08:00
Jiayu Liu
d21e95a88f THRIFT-5649: add github action for go (#2697) 2022-10-09 08:49:29 +08:00
Kino Roy
a9da9eb059 THRIFT-4547: Swift crosstests (#2670)
Co-authored-by: Jiayu Liu <Jimexist@users.noreply.github.com>
2022-10-08 14:13:01 +08:00
Jiayu Liu
0aad2aeb55 add lib rust building in github action (#2632)
fix path for rust
2022-10-08 13:22:24 +08:00
Varun Sharma
bd1e5db7f4 add minimum GitHub token permissions for workflows (#2664)
Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>

Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>
2022-09-14 22:31:30 +08:00
Jiayu Liu
8a32156dd2 update gradle version to 7.5.1 and update hashes 2022-09-07 00:33:09 +02:00
Jiayu Liu
c6f18a596e THRIFT-5575: add a github workflow to invoke cmake (#2595) 2022-05-21 16:01:43 -04:00
Jiayu Liu
5b158389b0 THRIFT-5581: use gradle 7 for java/kotlin (#2601)
* upgrade gradle version to 7.4
* migrate from `maven` plugin to `maven-publish` plugin as required for Gradle 7
* add guard to ktfmt, since it can't run with JDK 8

Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
2022-05-11 12:20:37 -04:00
Jiayu Liu
ab83ffc894 THRIFT-5564: setup cross test in GitHub action (#2602)
* include java and kotlin into precross
2022-05-09 13:56:30 -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
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
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
Duru Can Celasun
48730688fb Update PR template
Clarify that [skip ci] needs to be in the commit message, not the PR text.
2020-04-30 17:00:24 +01:00
Jens Geyer
44fcfabc37 Pull-Request template not clear enough at step 2 2019-08-23 09:00:02 +02:00
James E. King III
d886ab291d Add a PR checklist item for skipping CI [skip ci] 2019-06-23 08:40:36 -04:00
James E. King III
b000bc02df Update the pull request template [ci skip] 2019-02-14 17:58:04 -05:00