-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove dependency on contrib repo to run tox (#2108)
- Loading branch information
alrex
authored
Sep 14, 2021
1 parent
9020b0b
commit c40f10d
Showing
8 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,9 +50,6 @@ ships with this project. First create a virtualenv and activate it. | |
Then run `python scripts/eachdist.py develop` to install all required packages | ||
as well as the project's packages themselves (in `--editable` mode). | ||
|
||
Further, you'll want to clone the Contrib repo locally to resolve paths needed | ||
to run tests. `git clone [email protected]:open-telemetry/opentelemetry-python-contrib.git opentelemetry-python-contrib`. | ||
|
||
You can then run `scripts/eachdist.py test` to test everything or | ||
`scripts/eachdist.py lint` to lint everything (fixing anything that is auto-fixable). | ||
|
||
|
@@ -81,6 +78,19 @@ See | |
[`tox.ini`](https://github.com/open-telemetry/opentelemetry-python/blob/main/tox.ini) | ||
for more detail on available tox commands. | ||
|
||
#### Contrib repo | ||
|
||
Some of the `tox` targets install packages from the [OpenTelemetry Python Contrib Repository](https://github.com/open-telemetry/opentelemetry-python.git) via | ||
pip. The version of the packages installed defaults to the `main` branch in that repository when `tox` is run locally. It is possible to install packages tagged | ||
with a specific git commit hash by setting an environment variable before running tox as per the following example: | ||
|
||
``` | ||
CONTRIB_REPO_SHA=dde62cebffe519c35875af6d06fae053b3be65ec tox | ||
``` | ||
|
||
The continuation integration overrides that environment variable with as per the configuration | ||
[here](https://github.com/open-telemetry/opentelemetry-python/blob/9020b0baaeb41b7137badca988bb5c2d562cddee/.github/workflows/test.yml#L13). | ||
|
||
### Benchmarks | ||
|
||
Performance progression of benchmarks for packages distributed by OpenTelemetry Python can be viewed as a [graph of throughput vs commit history](https://opentelemetry-python.readthedocs.io/en/latest/performance/benchmarks.html). From the linked page, you can download a JSON file with the performance results. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters