Skip to content

Commit 157bb4b

Browse files
lmolkovaarminruAlexanderWertjsuerethjoaopgrassi
authored
Merge code generation changes to main (#295)
Co-authored-by: Armin Ruech <[email protected]> Co-authored-by: Alexander Wert <[email protected]> Co-authored-by: Josh Suereth <[email protected]> Co-authored-by: Joao Grassi <[email protected]>
1 parent 472bedb commit 157bb4b

37 files changed

+1481
-80
lines changed

.github/workflows/semconvgen.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Semantic Convention Generator
22
on:
33
push:
44
tags: [ '**' ]
5-
branches: [ main ]
5+
branches:
6+
- main
7+
- 'feature/**'
68
pull_request:
7-
branches: [ main ]
9+
branches:
10+
- main
11+
- 'feature/**'
812
paths:
913
- .github/workflows/semconvgen.yml
1014
- 'semantic-conventions/**'
@@ -13,7 +17,7 @@ jobs:
1317
tests:
1418
runs-on: ubuntu-latest
1519
defaults:
16-
run:
20+
run:
1721
working-directory: semantic-conventions/
1822
steps:
1923
- uses: actions/checkout@v4
@@ -69,3 +73,13 @@ jobs:
6973
else
7074
tag_and_push "${GITHUB_REF#"refs/tags/"}"
7175
fi
76+
- name: Push the Dev Docker image
77+
if: startsWith(github.ref, 'refs/heads/feature/')
78+
run: |
79+
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
80+
function tag_and_push {
81+
docker tag semconvgen "otel/semconvgen:${1}" && docker push "otel/semconvgen:${1}"
82+
}
83+
TAG="${GITHUB_REF#"refs/heads/"}"
84+
TAG="${TAG/"/"/"-"}"
85+
tag_and_push "${TAG}"

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@
1717

1818
# Vim
1919
.swp
20+
21+
# Python
22+
*.whl

semantic-conventions/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ Please update the changelog as part of any significant pull request.
1818
([#271](https://github.com/open-telemetry/build-tools/pull/271))
1919
- Add link to requirement levels definition from Markdown table title.
2020
([#222](https://github.com/open-telemetry/build-tools/pull/222))
21+
- Added code-generation mode that groups attributes by the root namespace and ability to write each group into individual file.
22+
[BREAKING] The `--file-per-group <pattern>` that used to create multiple directories (like `output/<pattern>/file`) now generates
23+
multiple files (`output/<pattern>file`) instead.
24+
([#243](https://github.com/open-telemetry/build-tools/pull/243))
25+
- Update `semconvgen.yml` workflow to run on feature/* branches.
26+
([#256](https://github.com/open-telemetry/build-tools/pull/256))
27+
- Allow --output to be templatized when generating multiple files.
28+
([#263](https://github.com/open-telemetry/build-tools/pull/263))
29+
- Add `metrics` to the context of non-scoped code generation
30+
([#270](https://github.com/open-telemetry/build-tools/pull/270))
31+
- Add `enum_attributes` to the context, adds `print_member_value` helper
32+
([#266](https://github.com/open-telemetry/build-tools/pull/266))
2133
- Sort attribute tables by requirement level and attribute name
2234
([#260](https://github.com/open-telemetry/build-tools/pull/260))
2335

0 commit comments

Comments
 (0)