Commit Graph

15 Commits

Author SHA1 Message Date
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
Paulo Castello da Costa 41d2db8cb0
Name driver when generating load test configs. (#26501)
This change ensures that a valid driver configuration is always included in generated load test configurations, and that the driver pod is named with an index (`0`, since there is only one driver), in the same way as client and server pods.

Generated examples can be found in https://github.com/grpc/test-infra/pull/189.

With this change, it is no longer necessary to specify a driver image in order to specify a driver name and pool, so that is removed from the kokoro jobs.
2021-06-22 09:15:00 -07:00
Paulo Castello da Costa 8c9f3c2b30
Update tools in preparation for load test timeouts. (#26505)
- Support multiline strings in template generation (as already supported in config generation, supporting roundtrip).
- Ignore substitution of variables that are set by the controller at runtime (`DRIVER_PORT`, `KILL_AFTER`, `POD_TIMEOUT`).
2021-06-21 12:06:30 -07:00
Paulo Castello da Costa 22cbc3a388
Ensure valid formatting of LoadTest names. (#26477)
Names must consist of lowercase alphanumeric characters and dashes, start with an alphabetical character, and not end with a dash.
2021-06-14 16:39:11 -07:00
Donghao Qiu 2d8546a3c4
Generate tests with the real names (#26427)
Generates performance tests with real names instead of uuids. This allows test names to be up to 253 characters long, which is now supported by the framework.
2021-06-14 12:58:11 -07:00
Paulo Castello da Costa e76afe5457
Update load test template and config generation. (#26398)
* Update load test template and config generation.

This change includes the following features and fixes:

* Add a script to generate load test examples.
* Update template generation logic to support round trip from configs to templates (handling of repeated clients and servers for the same language and of named clients and servers in source configs).
* Integrate safe language names from scenario config.
* Update template and config formatting (now that we generate in round trip).
* Fix shellcheck lint warnings.
* Update README.md.
2021-06-02 12:57:32 -07:00
Paulo Castello da Costa 8bdbb74425
Fix driver configuration in loadtest templates. (#26372)
This change fixes the format and location of the images in the driver configuration, so tests run with the proper driver configuration instead of a default.
2021-05-26 05:02:20 -07:00
Paulo Castello da Costa 28e73716c7
Support for multiple clients and other improvements in load test config generation. (#26350)
This change adds the following features and improvements to load test generation:

* Multiple client instances are supported by setting the option `--instances_per_client`.
* `python_asyncio` is supported as a separate language.
* `php` is renamed to `php7` to match the scenario language names.
* Client and server names are shortened by the introduction of an index (`0`, `1`, ... with an optional prefix). This index replaces the uuid added to pod names when no component name is specified.
* Driver pool and image substitution are added to template generation.
* Empty entries are removed from the final configuration.

NOTE: Controller is currently not respecting driver settings from configuration, so driver is still named with a uuid. This will be addressed separately.
2021-05-25 10:13:33 -07:00
Paulo Castello da Costa 1c49176a24
Add load test that measures QPS for dashboard display. (#26153)
This changes adds a test that measures QPS. The tests currently running measure latency, which is more variable.
2021-05-04 10:46:29 +02:00
Paulo Castello da Costa 44a4a2ea62
Fix typos and format of LoadTest generator output. (#26149)
This change fixes typos and makes minor changes to the format of the generated yaml files for LoadTest configuration (embedded scenarios end in newline, and element lists are indented). The templates generated earlier are also updated.
2021-05-03 00:07:20 -07:00
Paulo Castello da Costa 2fc80c234b
Do not use flow style when dumping LoadTest configurations. (#26071) 2021-04-23 08:01:37 -07:00
Paulo Castello da Costa bb418da2b5
Run example benchmarks v2 test in continuous build. (#25976)
This commit includes the following changes:

1. A new load test template generator (loadtest_template.py) is added. The template generator combines existing configurations or templates for several languages into a single template that can be used to generate configurations for different languages or combinations of languages.

2. A basic template generated from the example tests in grpc/test-infra (loadtest_template_basic_all_languages.yaml) is added.

3. The load test config generator is updated to use the combined template.

4. An example run consisting of a single test (generated from the combined template) is added and set up to run continuously.
2021-04-20 21:50:35 -07:00
Paulo Castello da Costa 3ad2e3185f
LoadTest generator for OSS benchmarks framework. (#25781)
* LoadTest generator for OSS benchmarks framework.

This change adds a LoadTest configuration generator for the OSS
benchmarks framework. The output of the generator is a multipart
YAML file that specifies uniquely named LoadTest resources that
can be applied to a kubernetes cluster.

For the benchmarks framework, see  https://github.com/github/test-infra.
2021-04-06 15:19:17 -07:00