Commit Graph

267 Commits

Author SHA1 Message Date
Sergii Tkachenko de6ed9ba9f
[Python] Migrate from yapf to black (#33138)
- Switched  from yapf to black
- Reconfigure isort for black
- Resolve black/pylint idiosyncrasies 

Note: I used `--experimental-string-processing` because black was
producing "implicit string concatenation", similar to what described
here: https://github.com/psf/black/issues/1837. While currently this
feature is experimental, it will be enabled by default:
https://github.com/psf/black/issues/2188. After running black with the
new string processing so that the generated code merges these `"hello" "
world"` strings concatenations, then I removed
`--experimental-string-processing` for stability, and regenerated the
code again.

To the reviewer: don't even try to open "Files Changed" tab 😄 It's
better to review commit-by-commit, and ignore `run black and isort`.
2023-06-09 15:08:55 -07:00
Doug Fawley b346737290
[interop] enable Go ORCA tests (#33082) 2023-05-11 14:33:14 -07:00
Eugene Ostroukhov 312300d3c2
[Interop] Enable Orca test cases for C++ (#32684) (#32707) 2023-03-24 12:14:07 -07:00
Eugene Ostroukhov 64e96c093d
Revert "[Interop] Enable Orca test cases for C++ (#32684)" (#32693)
This reverts commit e4825a5aa2.
2023-03-23 15:20:23 -07:00
Eugene Ostroukhov e4825a5aa2
[Interop] Enable Orca test cases for C++ (#32684) 2023-03-22 12:33:51 -07:00
Xuan Wang 000c1fc18d
Fix Python AIO interop test (#31663)
* Fix Python Asyncio Interop tests server issue

* Add --use-asyncio flag
2022-11-16 10:01:44 -08:00
yifeizhuang e026f5759c
interop-test: add internal ci for orca_oob and orca_per_request (#29985) 2022-06-22 09:13:33 -07:00
Jan Tattermusch e8404698d5
Remove C# implementation (individual packages will continue to be maintained through v2.46.x patches or moved to grpc-dotnet) (#29225)
* remove examples/csharp

* remove reference to examples/csharp

* remove C# references from doc/

* remove src/csharp

* update test_creds locations

* remove C# distribtests

* remove buildgen templates for files under src/csharp

* remove grpc_csharp_ext C build target

* regenerate projects

* update tools/run_tests/README.md

* change many C# test/build scripts to noop

* unbreak run_tests.py -l csharp

* unbreak C# build_package targets

* unbreak C# distribtests

* remove C# pre-build steps from prepare_build_windows.bat

* remove src/csharp from clang_format

* remove csharp and csharpcoreclr from run_interop_tests.py

* remove C# interop test docker images

* Revert "remove src/csharp"

This reverts commit 97f2b6d707.

* remove src/csharp, but keep Grpc.Tools

* add back templates/src/csharp/build/dependencies.props.template

* remove everything but Grpc.Tools and Grpc.Tools.Tests from sln

* Revert "unbreak run_tests.py -l csharp"

This reverts commit 529b5e2ec1.

* revive Grpc.Tools.Tests through run_tests.py

* Revert "unbreak C# build_package targets"

This reverts commit 79d8d83c8b.

* experiment with build_nuget.sh fixes

* simplify create_fake_native_artifacts.sh

* building of Grpc.Tools in package_targets.py

* move shared files from Grpc.Core to Grpc.Tools

* yapf format: distribtest_targets.py

* Revert "remove C# pre-build steps from prepare_build_windows.bat"

This reverts commit bd38956a2b.

* update C# README.md

* disable C# in gke OSS benchmarks
2022-04-28 12:00:34 +02:00
Michael Lumish 28f1453ad5
Use a non-root user in Node interop docker images (#29062)
* Use a non-root user in Node interop docker images

* Make node interop scripts without being root

* Update cwd in Node interop tests

* Update cwd in other Node interop tests

* Update cwd in Node interop tests relative to hardcoded path

* Fix updated Node interop test cwd

* Make service account file location more generic

* Use service account creds directly from mounted directory

* Fixing source path is recursive local submodule clone.

* Move creds file to /root, make /root accessible

Co-authored-by: Nicolas "Pixel" Noble <pixel@nobis-crew.org>
2022-03-15 14:41:21 -07:00
Jan Tattermusch a32c22f2a9
Add v1.43.0 and v1.44.0 releases to interop_matrix (#28885)
* add v1.43.0 and v1.44.0 releases, fix C#

* fix problem introduced by #28124

* regenerate testcases for csharp*__master

* fixup C# 1.42.0 interop matrix

* python interop image build is broken at 1.43.0

* fix python testcases for 1.44.0
2022-02-18 09:58:34 +01:00
Lidi Zheng 7069770ee0
Merge the 3 repeating Python binary compilations (Attempt 2) (#28543)
* Revert "Revert "Merge the 3 repeating Python binary compilations (#28500)" (#28539)"

This reverts commit 0554cbee9c.

* Update hardcoded Python path

* Repect existing images and only use new path for newer releases

* fix interop_matrix testcases

Co-authored-by: Jan Tattermusch <jtattermusch@google.com>
2022-01-14 09:25:33 -08:00
Jan Tattermusch 240557a55c
run_tests family scripts: autodetect TTY when running docker (#28124)
* autodetect terminal when running docker, add helptext for --travis run_tests arg

* address a TODO

* remove --travis from task_runner.py
2021-12-10 06:52:50 +01:00
Jan Tattermusch 79b58431ed
Update csharp SDK to LTS versions (#27966)
* update C# SDK

* regenerate dockerfiles

* install .NET6 and .NET Core 3.1

* regenerate dockerfiles

* change netcoreapp2.1 targets to netcoreapp3.1

* update installed SDKs in aarch64 C# job

* update run_tests scripts to use netcoreapp3.1 for C#
2021-11-17 10:41:02 +01:00
Richard Belleville 59693b7e72
Migrate Infrastructure Scripts to Python 3 (#27135)
* Run 2to3 on tools directory

* Delete github_stats_tracking

* Re-run 2to3

* Remove unused script

* Remove unused script

* Remove unused line count utility

* Yapf. Isort

* Remove accidentally included file

* Migrate tools/distrib directory to python 3

* Remove unnecessary shebang

* Restore line_count directory

* Immediately convert subprocess.check_output output to string

* Take care of Python 2 shebangs

* Invoke scripts using a Python 3 interpreter

* Yapf. Isort

* Try installing Python 3 first

* See if we have any Python 3 versions installed

* Add Python 3.7 to Windows path

* Try adding a symlink

* Try to symlink differently

* Install six for Python 3

* Run run_interop_tests with python 3

* Try installing six in python3.7 explicitly

* Revert "Try installing six in python3.7 explicitly"

This reverts commit 2cf60d72f3.

* And debug some more

* Fix issue with jobset.py

* Add debug for CI failure

* Revert microbenchmark changes
2021-11-08 08:55:25 -08:00
Richard Belleville cb95e9f3ee
Attempt to Fix #27614 (#27904)
* commit after sync

* Moving to v1.41.1

* Attempt to fix interop test

* Increase test timeout

* Regenerate testcases. Fix old Python images to 3.7

Co-authored-by: Donna Dionne <donnadionne@google.com>
2021-11-03 13:56:54 -07:00
Richard Belleville 179a7c7459
Fix Python Interop (#27620) (#27703) (#27749)
* WIP. Attempt to fix interop

* Yapf
2021-10-15 18:22:29 -07:00
Richard Belleville b6cc72f129
Revert "Run 2to3 on tools directory (#26002)" (#27183)
This reverts commit a388361c3d.
2021-08-30 12:29:20 -07:00
Richard Belleville a388361c3d
Run 2to3 on tools directory (#26002)
* Run 2to3 on tools directory

* Delete github_stats_tracking

* Re-run 2to3

* Remove unused script

* Remove unused script

* Remove unused line count utility

* Yapf. Isort

* Remove accidentally included file

* Restore line_count directory
2021-08-30 09:25:21 -07:00
Lidi Zheng 2231c2ba77
Introduce Python import sorting to our sanity test suite (#26768)
* Add isort_code.sh to sanity tests

* Run tools/distrib/isort_code.sh

* Fine tune the import order for relative imports

* Make pylint and project generation happy

* Fix a few corner cases

* Use --check instead of --diff

* The import order impacts test result somehow

* Make isort print diff and check output at the same time

* Let tools/run_tests/python_utils be firstparty library

* Run isort against latest HEAD
2021-07-26 12:31:21 -07:00
Hannah Shi 7197ce64ee
PHP: php server commit 6/n, add php server interop test (#26202)
* add php server interop test

* fix CI failure
2021-07-01 10:55:52 -07:00
Easwar Swaminathan 3208a98787 try setting GO111MODULE in interop test runner 2020-11-30 17:20:53 -08:00
root 12d36782cf add special status msg interop test 2020-10-07 17:58:51 +00:00
root 867f579e54 del php5 from basic Linux test and interop test 2020-09-30 22:11:40 +00:00
Jan Tattermusch d4f3e05fef switch C++ interop tests to cmake 2020-07-31 10:33:10 +02:00
James Newton-King 21e855592a
Output grpc-dotnet interop apps to specific directories 2020-07-22 09:02:13 +12:00
Hannah Shi db4f82e9b9 enable php client compression tests 2020-05-08 08:31:53 +00:00
Taras Galkovskyi 309c8e65f4 declare alts support for python interop client/server 2020-04-09 21:39:08 +00:00
Lidi Zheng ef3e6da5ba s/use_asyncio/use-asyncio/g 2020-01-31 13:19:09 -08:00
Lidi Zheng 4842e23e9c Make YAPF happy 2020-01-31 13:19:09 -08:00
Lidi Zheng 3e2d5da7a2 Use as much template as possible & fix some wording 2020-01-31 13:19:09 -08:00
Lidi Zheng dc202bdf1f Adding gRPC Python AsyncIO interop client and server 2020-01-31 13:19:09 -08:00
Esun Kim 7be821ac47 Yapf all target python sources 2020-01-03 09:25:10 -08:00
Eric Anderson dcafa22cd3 Enable Java interop tests for compression and status 2019-11-04 15:58:28 -08:00
chentanjun 05b3eeff77 fix-up some spelling mistakes 2019-09-25 23:29:47 +08:00
Jan Tattermusch ce9e637614 enable server compression tests for grpc.aspnetcore.server 2019-09-04 02:55:22 -04:00
Jan Tattermusch 7d0dc91a9b
Merge branch 'master' into grpcdotnet_client_compression 2019-08-29 11:49:29 +02:00
Jan Tattermusch 1ee329187f enable compute_enging_creds and jwt_token_creds interop tests for managed dotnet client 2019-08-28 08:34:39 -04:00
Jan Tattermusch 64b8ce5ef2 enable grpc-dotnet client compression interop tests 2019-08-26 10:46:47 -04:00
Jan Tattermusch c556a02024 add per-rpc interop tests to managed grpc-dotnet client 2019-07-15 11:22:02 -04:00
Jan Tattermusch ed045828b9 make default service account email configurable 2019-06-06 14:12:55 -04:00
Jan Tattermusch a9a576c6c4
Merge pull request #19238 from JamesNK/jamesnk/duplex-interop-tests
Enable duplex streaming and special status message interop tests
2019-06-05 21:52:25 +02:00
Jan Tattermusch cd807e4ecd
Merge pull request #18770 from jtattermusch/interop_refresh_key
Use different service_account_key for interop tests
2019-06-05 19:47:10 +02:00
Jan Tattermusch a7e3e76aed use different service_account_key for interop tests 2019-06-05 18:05:07 +02:00
Jan Tattermusch 4686f6d518 enable special_status_message interop for grpc-dotnet server 2019-06-05 10:45:54 -04:00
Jan Tattermusch de0e9d1026 enable special_status_message interop for C# 2019-06-05 10:45:51 -04:00
James Newton-King 206ca33dd5
Enable duplex streaming and special status message interop tests 2019-06-05 15:19:55 +12:00
Jan Tattermusch 05e26ff4cf introduce --custom_credentials_type to run_interop_tests.py 2019-06-04 23:33:07 +02:00
Jan Tattermusch 97921f5d77 add comments to interop scripts 2019-06-03 11:57:42 -04:00
James Newton-King 57e090989a
Add managed .NET gRPC client to interop tests 2019-05-14 21:20:31 +12:00
Alexander Polcyn ecb3dec651 Enable go compute engine channel creds interop test 2019-03-25 14:54:29 -07:00