Commit Graph

31 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
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
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 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
yifeizhuang 48b194f737
release v1.40.0: build gcr images for release, fix python2.7 (#27045) 2021-08-18 08:22:11 -07:00
Alexander Polcyn c4dd07aa75 yapf code 2020-03-09 12:13:32 -07:00
Alexander Polcyn cf20b1763e run re-initialize submodules after checking out a tag in interop matrix image builder 2020-03-06 16:03:52 -08:00
Esun Kim 7be821ac47 Yapf all target python sources 2020-01-03 09:25:10 -08:00
chentanjun 4ecc1fe6a4 fix the wrong word 2019-10-01 05:13:33 +08:00
Jan Tattermusch 2a997c66ea allow creating images for non-yet-listed releases 2019-01-09 21:16:44 +01:00
Jan Tattermusch 5aa166eb2d interop_matrix: refactor LANG_RELEASE_MATRIX 2019-01-08 20:57:23 +01:00
Jan Tattermusch a13e77e14d interop_matrix: support skipping runtimes 2019-01-07 12:02:50 -05:00
Jan Tattermusch f1f456baf5 yapf code 2018-05-31 11:45:44 +02:00
Jan Tattermusch d851d827dd point out complexity in create_matrix_images.py 2018-05-30 20:16:13 +02:00
Jan Tattermusch c093a7f8a1 create_matrix_images.py usability fixes 2018-05-30 20:16:05 +02:00
Mehrdad Afshari 87cd994b04 Upgrade yapf to 0.20.0
Upgrade yapf version to 0.20.0 and reformat Python files.
2018-01-02 14:40:00 -08:00
Menghan Li caada990c7 Fix interop_matrix/create_matrix_images.py None error 2017-12-12 17:46:57 -08:00
ncteisen 173c477bd0 tools/profiling 2017-12-11 16:52:44 -08:00
ncteisen e4bef08a8c yapf tools/interop_matrix 2017-12-11 16:51:34 -08:00
Alex Polcyn 8426329120 Apply patches to ruby 101 docker image during upload script, for
compatibility tests.
2017-12-06 15:09:10 -08:00
Adele Zhou e4d63e6446 Give a command example with multiple languages. 2017-11-22 11:10:10 -08:00
Adele Zhou 4fba378edf Switch back to using template located at _IMAGE_BUILDER because the previous change will break Go, Java and Node. 2017-11-22 11:10:01 -08:00
Adele Zhou a3664680c5 Recreate the git root dir by default. 2017-11-22 11:09:01 -08:00
Adele Zhou 317641d6fc Added C# 2017-11-06 14:44:35 -08:00
Adele Zhou bcd23cdb11 Added info for Node. Also use the dockerfile from the specified release to build docker images instead of using the one master. 2017-11-06 11:28:42 -08:00
Adele Zhou 1487c9fa52 Add Python 2017-11-06 11:28:42 -08:00
murgatroid99 fbc182e125 Switch Node interop tests to use grpc-node repo 2017-10-17 11:42:12 -07:00
Yong Ni b7ea4ab4d7 Created test driver to run matrix test against different docker images in GCR and generate a Junit like test result file. 2017-06-30 09:41:31 -07:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Yong Ni b2e4bfa1ef Merge matrix feature branch into master.
Features included in this merge:
- Added script to build and upload docker image for matrix test.
- Added script to create test cases and created go__master testcases based on it.
- Created dictionary for runtimes and gRPC releases for supported languages.
- Added go 1.7 and 1.8 Dockerfile/templates.

See tools/interop_matrix/README.md for details.
2017-05-19 09:01:24 -07:00