Commit Graph

35 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
Craig Tiller 1f1f923a72
[benchmarks] Remove stats integration (#30900)
* remove old stats cruft

* remove

* remove

* fix

* fix
2022-09-09 04:15:12 -07:00
Jan Tattermusch eb79b6b178
More run_microbenchmark.py cleanup (#28893)
* cleanup

* update TODOs

* fixup
2022-02-17 19:14:08 +01:00
Jan Tattermusch d1db000f62
small cleanup in microbenchmark scripts (#28886) 2022-02-15 18:02:20 +01:00
Craig Tiller 77ef40bba5
update specs file for benchmark (#27581) 2021-10-04 17:29:41 -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
AJ Heller 5139a012e7
Migrate the bm_diff benchmarks to python3 (#25619)
* Migrate the bm_diff benchmarks to python3

Includes a requirements.txt pinned at ~2017 versions, when this script
was first written.

* Replace p2 with p3 scipy/numpy dependencies.

* py2->3 for benchmark setup scripts

* upgrade pip to resolve python3 cryptography/setuptools-rust problem

* re-add jobset import (accidentally removed)

* re-add six's urllib import. This file is still used in py2 tests

* force py3 in run_if_c_cpp_modified.sh

* Fix another instance of subprocess.check_output binary mode

* Use the requirements.txt for CI perf environment setup

* Try to upgrade PyJWT. (v2.0.0 was problematic, #25053)

v2.x makes encode return strs from jwt.encode in both py2 and py3.
Previously, py3 would return bytes, and py2 a str.

* upgate cryptography lib version requirements for jwt.

* Wrap pip requirements specifier in quotes '>=x,<y'

* Decode subprocess output once instead of for every line

* Revert "Decode subprocess output once instead of for every line"

This reverts commit 28d14026431622ac7afd3535a8d7118e5be96628.

py2 doesn't support the `text` argument to subprocess.check_output.

* Address reviewer requests

* Pin a valid scipy version

* Remove scipy and tabulate dependencies from macos tests
2021-03-09 15:44:00 +01:00
Sergii Tkachenko 8db79e2e71 Python style: reformat code using updated yapf 0.30.0 2021-01-13 14:00:12 -05:00
Jan Tattermusch 746479ad80 fix performance profile jobs 2018-04-11 21:59:09 +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
ncteisen 173c477bd0 tools/profiling 2017-12-11 16:52:44 -08:00
ncteisen 4c9fa854f6 Add debugging prints 2017-10-24 08:59:05 -07:00
ncteisen 6bf4bcef04 Fix bm_diff 2017-10-23 22:19:01 -07:00
ncteisen 06795cb442 Address github comments 2017-06-20 08:58:43 -07:00
ncteisen 3345e1ccf7 Actually enable trickle diff 2017-06-19 09:47:58 -07:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
ncteisen 28b0828243 bm trickly bugfix 2017-05-26 11:06:33 -04:00
ncteisen df31960992 Add unary fullstack trickle to bm json 2017-05-17 16:48:26 -07:00
Craig Tiller dc3806c672 Fix a noise creating bug in bm_json (for bm_diff) 2017-04-12 09:08:31 -07:00
Craig Tiller c78c9158c0 Fix merge error 2017-03-30 13:29:02 -07:00
Craig Tiller 03bab0af2e Fix merge error 2017-03-30 13:24:59 -07:00
Craig Tiller 9a212df417 Add debug 2017-03-30 13:19:45 -07:00
Craig Tiller 6ceda3b715 Merge branch 'base16' into bmdiff2.1.1 2017-03-30 10:55:31 -07:00
Craig Tiller b88399932e Add new benchmark 2017-03-30 10:54:14 -07:00
Craig Tiller 123724f0a1 Add new benchmark 2017-03-29 16:16:59 -07:00
Craig Tiller 06ac1c7086 Merge github.com:grpc/grpc into bmdiff2.1.1 2017-03-28 08:25:35 -07:00
Craig Tiller f0e7739acc Bugfix10 2017-03-27 22:11:57 -07:00
Craig Tiller 9fb3131dba Enroll bm_chttp2_transport into bigquery pipeline 2017-03-22 09:09:16 -07:00
Craig Tiller 6a4c1a37cc Add benchmark to list 2017-03-10 14:18:00 -08:00
Craig Tiller 3488780949 Handle floats in bm_json 2017-03-10 13:39:01 -08:00
Craig Tiller e736b705cc Add Zalloc to bq conversion table 2017-03-10 09:52:25 -08:00
Craig Tiller 77bcd5a58a Merge github.com:grpc/grpc into nudiff 2017-03-06 16:15:10 -08:00
Craig Tiller adade61028 Merge branch 'diff_perf' into nudiff 2017-03-06 16:13:04 -08:00
Craig Tiller b699640a77 Factor out benchmark parsing code to enable diffs more easily 2017-03-06 16:10:20 -08:00