Skip to content

Commit ebedcb1

Browse files
authored
chore: Polish release process (#129)
1 parent aa20245 commit ebedcb1

File tree

166 files changed

+2488
-666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+2488
-666
lines changed

.github/workflows/loongsuite-release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
run: |
195195
VERSION="${{ needs.build.outputs.loongsuite_version }}"
196196
gh release create "v${VERSION}" \
197-
--title "LoongSuite Python Agent v${VERSION}" \
197+
--title "loongsuite-python-agent ${VERSION}" \
198198
--notes-file dist/release-notes.md \
199199
dist/loongsuite-python-agent-${VERSION}.tar.gz
200200
@@ -225,7 +225,7 @@ jobs:
225225
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
226226
run: |
227227
VERSION="${{ needs.build.outputs.loongsuite_version }}"
228-
BRANCH="post-release/v${VERSION}"
228+
BRANCH="post-release/${VERSION}"
229229
TODAY=$(date -u +%Y-%m-%d)
230230
231231
git checkout -b "$BRANCH"
@@ -239,6 +239,9 @@ jobs:
239239
--bump-dev \
240240
--version "$VERSION"
241241
242+
pip install tox
243+
tox -e precommit || echo "WARN: precommit had issues, please review"
244+
242245
git add -A
243246
git commit -m "chore: post-release v${VERSION} - archive changelogs & bump dev versions
244247
@@ -250,10 +253,12 @@ jobs:
250253
gh pr create \
251254
--base main \
252255
--head "$BRANCH" \
253-
--title "chore: post-release v${VERSION}" \
254-
--body "## Post-release updates for v${VERSION}
256+
--title "chore: post-release ${VERSION} — archive changelogs & bump dev versions" \
257+
--body "## Post-release updates for loongsuite-python-agent ${VERSION}
258+
259+
Automated housekeeping after the \`${VERSION}\` release:
255260
256-
- Archive \`Unreleased\` changelog sections as \`Version ${VERSION} (${TODAY})\`
257-
- Bump \`instrumentation-loongsuite\` module versions to next \`.dev\`
261+
- **Archive changelogs**: move \`Unreleased\` sections to \`Version ${VERSION} (${TODAY})\` in all \`CHANGELOG\` files
262+
- **Bump dev versions**: update \`instrumentation-loongsuite/*/version.py\` to the next \`.dev\` iteration
258263
259-
This PR was auto-generated by the release workflow."
264+
> This PR was auto-generated by the \`loongsuite-release\` workflow."

.github/workflows/loongsuite_misc_0.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,25 @@ env:
3232

3333
jobs:
3434

35+
check-license-header:
36+
name: LoongSuite check-license-header
37+
runs-on: ubuntu-latest
38+
timeout-minutes: 30
39+
steps:
40+
- name: Checkout repo @ SHA - ${{ github.sha }}
41+
uses: actions/checkout@v4
42+
43+
- name: Set up Python 3.11
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: "3.11"
47+
48+
- name: Install tox
49+
run: pip install tox-uv
50+
51+
- name: Run tests
52+
run: tox -c tox-loongsuite.ini -e check-license-header
53+
3554
generate-loongsuite:
3655
name: LoongSuite generate-loongsuite
3756
runs-on: ubuntu-latest

instrumentation-loongsuite/loongsuite-instrumentation-agentscope/LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

instrumentation-loongsuite/loongsuite-instrumentation-agentscope/src/opentelemetry/instrumentation/agentscope/package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
# limitations under the License.
1414

1515
_instruments = ("agentscope >= 1.0.0",)
16-
_supports_metrics = True
16+
17+
_supports_metrics = False

instrumentation-loongsuite/loongsuite-instrumentation-agentscope/src/opentelemetry/instrumentation/agentscope/utils.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright The OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# -*- coding: utf-8 -*-
216
"""Attributes processor for span attributes."""
317

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
__version__ = "1.0.0"
1+
# Copyright The OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
__version__ = "0.1.0.dev"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1+
# Copyright The OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# -*- coding: utf-8 -*-
216
"""Tests package for loongsuite-instrumentation-agentscope"""

instrumentation-loongsuite/loongsuite-instrumentation-agentscope/tests/_test_helpers.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright The OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# -*- coding: utf-8 -*-
216
"""Test Utility Functions"""
317

instrumentation-loongsuite/loongsuite-instrumentation-agentscope/tests/conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright The OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# -*- coding: utf-8 -*-
216
"""Test Configuration"""
317

instrumentation-loongsuite/loongsuite-instrumentation-agentscope/tests/test_agent.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright The OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# -*- coding: utf-8 -*-
216
"""Agent Tests"""
317

0 commit comments

Comments
 (0)