Commit Graph

24 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 a3be072605
Switch .py shebang to python3 (#28963)
* switch shebang to python3

* prepare_build_macos: install latest available patch for each python
2022-03-14 10:41:30 +01:00
Richard Belleville 2c889a9921
Fix stdout handling in jobset.py (#27493)
* Fix stdout handling in jobset.py

* Apparently ascii was a bad assumption

* Or how about this

* Just ignore non-utf8 characters
2021-10-04 16:00:40 -07:00
Jan Tattermusch c1bf4e1a2a
Revert "Enable Alpine portability test to run under Python 3. (#27464)" (#27485)
This reverts commit 54d4e8f68b.
2021-09-27 10:53:34 -07:00
Richard Belleville 54d4e8f68b
Enable Alpine portability test to run under Python 3. (#27464)
* Enable Alpine portability test to run under Python 3.

* Fix other scripts
2021-09-24 10:12:19 -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
Jan Tattermusch 375b8551f7 update bigquery partition expiration 2020-07-13 15:04:53 +02:00
Esun Kim 7be821ac47 Yapf all target python sources 2020-01-03 09:25:10 -08:00
Jan Tattermusch af1966aa03 fixes to run_tests.py bq uploading 2018-08-30 22:26:56 +02:00
Jan Tattermusch cc3780eb50 refactor upload_to_bq functions 2018-08-26 20:30:28 +02:00
Jan Tattermusch 52e17d7d0b correctly set performance job metadata on kokoro 2018-08-14 10:37:13 +02:00
Jan Tattermusch 5212dba112 really upload bq test results in batches 2018-06-13 09:34:35 +02:00
Jan Tattermusch cc42e6dba8 upload bq test results in batches 2018-06-11 11:53:49 -04:00
Jan Tattermusch f75ca1ac8a use ResultStore URL instead of Sponge for bigquery test results 2018-04-05 09:29:11 +02:00
Matt Kwong 827c6e90e2 Pass KOKORO_BUILD_ID to Docker 2017-12-20 16:05:35 -08:00
ncteisen 05687c3da9 yapf tools/run_tests/python_utils 2017-12-11 16:54:47 -08:00
Matt Kwong a9712ba7ff Add uploading interop result to BQ 2017-10-06 15:00:48 -07:00
Jan Tattermusch ac3d765041 retry when uploading results to bigquery 2017-10-05 15:27:01 +02:00
Matt Kwong c87cbba379 Add return code as a field in BQ results uplaod 2017-07-05 13:09:00 -07:00
Matt Kwong c1e1e1b720 Merge pull request #11248 from matt-kwong/part_tables
Upload Jenkins tests results to a partitioned BQ table
2017-06-14 16:25:47 -07:00
Matt Kwong ea1fa277f0 Add Kokoro metadata to BQ upload 2017-06-09 14:17:35 -07:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Matt Kwong d14c0ea1f5 Upload Jenkins tests results to a partitioned BQ table 2017-05-24 13:42:54 -07:00
Matt Kwong 52ff986f94 Add option to upload Jenkins test result to BQ 2017-05-08 13:52:45 -07:00