-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add otel proto codegen using forward serialization (#42)
- Loading branch information
1 parent
aa6f8da
commit faf52d4
Showing
18 changed files
with
4,230 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This workflow will delete and regenerate the opentelemetry marshaling code using scripts/proto_codegen.sh. | ||
# If generating the code produces any changes from what is currently checked in, the workflow will fail and prompt the user to regenerate the code. | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Check Codegen | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
paths: | ||
- "scripts/**" | ||
- "src/snowflake/telemetry/_internal/opentelemetry/proto/**" | ||
- ".github/workflows/check-codegen.yml" | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- "scripts/**" | ||
- "src/snowflake/telemetry/_internal/opentelemetry/proto/**" | ||
- ".github/workflows/check-codegen.yml" | ||
|
||
jobs: | ||
check-codegen: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.11" | ||
- name: Run codegen script | ||
run: | | ||
rm -rf src/snowflake/telemetry/_internal/opentelemetry/proto/ | ||
./scripts/proto_codegen.sh | ||
- name: Check for changes | ||
run: | | ||
git diff --exit-code || { echo "Code generation produced changes! Regenerate the code using ./scripts/proto_codegen.sh"; exit 1; } |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Jinja2==3.1.4 | ||
grpcio-tools==1.62.3 | ||
protobuf==4.25.5 | ||
black==24.10.0 | ||
isort==5.13.2 |
Oops, something went wrong.