-
Notifications
You must be signed in to change notification settings - Fork 714
require dependency for api/sdk to match major version #1933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
codeboten
merged 6 commits into
open-telemetry:main
from
codeboten:codeboten/unpin-api-sdk
Jul 12, 2021
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5ae76a8
require dependency for api/sdk to match major version
3007a2f
update changelog
100fbd4
keep dependency pinned for sdk in distro
fd5bba4
update version to ~= 1.3
84d603e
remove unnecessary file
350605c
Merge branch 'main' into codeboten/unpin-api-sdk
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
# | ||
# Regenerate python code from Jaeger protos in | ||
# https://github.com/jaegertracing/jaeger-idl | ||
# | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this file for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Submitted by accident. It's a script to regenerate jaeger protos. not needed for this PR. |
||
|
||
set +e | ||
|
||
PROTO_REPO_DIR=${PROTO_REPO_DIR:-"/tmp/proto_codegen_jaeger"} | ||
# root of opentelemetry-python repo | ||
repo_root="$(git rev-parse --show-toplevel)" | ||
venv_dir="/tmp/proto_codegen_jaeger_venv" | ||
|
||
# run on exit even if crash | ||
cleanup() { | ||
echo "Deleting $venv_dir" | ||
rm -rf $venv_dir | ||
} | ||
trap cleanup EXIT | ||
|
||
echo "Creating temporary virtualenv at $venv_dir using $(python3 --version)" | ||
python3 -m venv $venv_dir | ||
source $venv_dir/bin/activate | ||
python -m pip install \ | ||
-c $repo_root/dev-requirements.txt \ | ||
grpcio-tools mypy-protobuf | ||
|
||
# Clone the proto repo if it doesn't exist | ||
if [ ! -d "$PROTO_REPO_DIR" ]; then | ||
git clone https://github.com/jaegertracing/jaeger-idl.git ${PROTO_REPO_DIR}/jaeger-idl | ||
git clone https://github.com/grpc-ecosystem/grpc-gateway ${PROTO_REPO_DIR}/grpc-gateway | ||
git clone https://github.com/gogo/googleapis ${PROTO_REPO_DIR}/googleapis | ||
git clone https://github.com/gogo/protobuf ${PROTO_REPO_DIR}/protobuf | ||
fi | ||
|
||
DEST="exporter/opentelemetry-exporter-jaeger-proto-grpc/src/opentelemetry/exporter/jaeger/proto/grpc/gen" | ||
|
||
mkdir -p ${DEST} | ||
|
||
# protoc ${PROTO_INCLUDES} --grpc_python_out=./python_out --python_out=./python_out ${DIR}/model.proto | ||
python -m grpc_tools.protoc \ | ||
-I ${PROTO_REPO_DIR}/jaeger-idl/proto/api_v2 \ | ||
-I ${PROTO_REPO_DIR}/grpc-gateway \ | ||
-I ${PROTO_REPO_DIR}/googleapis \ | ||
-I ${PROTO_REPO_DIR}/protobuf/protobuf \ | ||
-I ${PROTO_REPO_DIR}/protobuf \ | ||
--grpc_python_out=./${DEST} \ | ||
--mypy_out=./${DEST} \ | ||
--python_out=./${DEST} \ | ||
${PROTO_REPO_DIR}/jaeger-idl/proto/api_v2/model.proto ${PROTO_REPO_DIR}/jaeger-idl/proto/api_v2/collector.proto |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change only for packages upon release? Packages in development will still pin exact versions right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plan is to unpin packages in development as well. If a dev package needs a new version of the api, then the dependency will need to be updated for that package at that time.