Skip to content

Commit 63a3d40

Browse files
committed
Fix unit tests and add documents for release
Change-Id: I9fc6996b63f179bba6b78b8f0f0f404b29df2a3c Co-developed-by: Cursor <noreply@cursor.com>
1 parent b9bd6ad commit 63a3d40

File tree

11 files changed

+706
-446
lines changed

11 files changed

+706
-446
lines changed

.github/scripts/sync-upstream-with-rebase.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env bash
22
#
33
# Sync upstream changes into a local branch via "git merge" (not rebase).
44
#
@@ -200,15 +200,15 @@ create_pr() {
200200
return
201201
fi
202202
require_command gh
203-
local title body upstream_desc
203+
local title upstream_desc
204204
upstream_desc="${UPSTREAM_REMOTE}/${UPSTREAM_BRANCH}"
205205
if [[ -n "$UPSTREAM_COMMIT" ]]; then
206206
upstream_desc="commit $(git rev-parse --short "$UPSTREAM_COMMIT") (from ${UPSTREAM_REMOTE}/${UPSTREAM_BRANCH})"
207207
fi
208208
title="chore: sync ${upstream_desc} into ${BASE_BRANCH}"
209209
local body_file
210210
body_file=$(mktemp)
211-
trap "rm -f '$body_file'" EXIT
211+
trap 'rm -f "$body_file"' EXIT
212212
cat <<EOF >"$body_file"
213213
## Summary
214214
- Merge upstream \`${upstream_desc}\` into \`${BASE_BRANCH}\`

.github/workflows/loongsuite_lint_0.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,22 @@ jobs:
127127
- name: Run tests
128128
run: tox -c tox-loongsuite.ini -e lint-loongsuite-instrumentation-mem0
129129

130+
lint-loongsuite-processor-baggage:
131+
name: LoongSuite loongsuite-processor-baggage
132+
runs-on: ubuntu-latest
133+
timeout-minutes: 30
134+
steps:
135+
- name: Checkout repo @ SHA - ${{ github.sha }}
136+
uses: actions/checkout@v4
137+
138+
- name: Set up Python 3.13
139+
uses: actions/setup-python@v5
140+
with:
141+
python-version: "3.13"
142+
143+
- name: Install tox
144+
run: pip install tox-uv
145+
146+
- name: Run tests
147+
run: tox -c tox-loongsuite.ini -e lint-loongsuite-processor-baggage
148+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Do not edit this file.
2+
# This file is generated automatically by executing tox -e generate-workflows
3+
4+
name: LoongSuite Misc 0
5+
6+
on:
7+
push:
8+
branches-ignore:
9+
- 'release/*'
10+
- 'otelbot/*'
11+
pull_request:
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
env:
21+
# Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
22+
# For PRs you can change the inner fallback ('main')
23+
# For pushes you change the outer fallback ('main')
24+
# The logic below is used during releases and depends on having an equivalent branch name in the core repo.
25+
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
26+
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
27+
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28+
'main'
29+
) || 'main' }}
30+
CONTRIB_REPO_SHA: main
31+
PIP_EXISTS_ACTION: w
32+
33+
jobs:
34+
35+
generate-loongsuite:
36+
name: LoongSuite generate-loongsuite
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 generate-loongsuite
53+

.github/workflows/loongsuite_test_0.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,3 +868,98 @@ jobs:
868868
- name: Run tests
869869
run: tox -c tox-loongsuite.ini -e py313-test-loongsuite-instrumentation-mem0-latest -- -ra
870870

871+
py39-test-loongsuite-processor-baggage_ubuntu-latest:
872+
name: LoongSuite loongsuite-processor-baggage 3.9 Ubuntu
873+
runs-on: ubuntu-latest
874+
timeout-minutes: 30
875+
steps:
876+
- name: Checkout repo @ SHA - ${{ github.sha }}
877+
uses: actions/checkout@v4
878+
879+
- name: Set up Python 3.9
880+
uses: actions/setup-python@v5
881+
with:
882+
python-version: "3.9"
883+
884+
- name: Install tox
885+
run: pip install tox-uv
886+
887+
- name: Run tests
888+
run: tox -c tox-loongsuite.ini -e py39-test-loongsuite-processor-baggage -- -ra
889+
890+
py310-test-loongsuite-processor-baggage_ubuntu-latest:
891+
name: LoongSuite loongsuite-processor-baggage 3.10 Ubuntu
892+
runs-on: ubuntu-latest
893+
timeout-minutes: 30
894+
steps:
895+
- name: Checkout repo @ SHA - ${{ github.sha }}
896+
uses: actions/checkout@v4
897+
898+
- name: Set up Python 3.10
899+
uses: actions/setup-python@v5
900+
with:
901+
python-version: "3.10"
902+
903+
- name: Install tox
904+
run: pip install tox-uv
905+
906+
- name: Run tests
907+
run: tox -c tox-loongsuite.ini -e py310-test-loongsuite-processor-baggage -- -ra
908+
909+
py311-test-loongsuite-processor-baggage_ubuntu-latest:
910+
name: LoongSuite loongsuite-processor-baggage 3.11 Ubuntu
911+
runs-on: ubuntu-latest
912+
timeout-minutes: 30
913+
steps:
914+
- name: Checkout repo @ SHA - ${{ github.sha }}
915+
uses: actions/checkout@v4
916+
917+
- name: Set up Python 3.11
918+
uses: actions/setup-python@v5
919+
with:
920+
python-version: "3.11"
921+
922+
- name: Install tox
923+
run: pip install tox-uv
924+
925+
- name: Run tests
926+
run: tox -c tox-loongsuite.ini -e py311-test-loongsuite-processor-baggage -- -ra
927+
928+
py312-test-loongsuite-processor-baggage_ubuntu-latest:
929+
name: LoongSuite loongsuite-processor-baggage 3.12 Ubuntu
930+
runs-on: ubuntu-latest
931+
timeout-minutes: 30
932+
steps:
933+
- name: Checkout repo @ SHA - ${{ github.sha }}
934+
uses: actions/checkout@v4
935+
936+
- name: Set up Python 3.12
937+
uses: actions/setup-python@v5
938+
with:
939+
python-version: "3.12"
940+
941+
- name: Install tox
942+
run: pip install tox-uv
943+
944+
- name: Run tests
945+
run: tox -c tox-loongsuite.ini -e py312-test-loongsuite-processor-baggage -- -ra
946+
947+
py313-test-loongsuite-processor-baggage_ubuntu-latest:
948+
name: LoongSuite loongsuite-processor-baggage 3.13 Ubuntu
949+
runs-on: ubuntu-latest
950+
timeout-minutes: 30
951+
steps:
952+
- name: Checkout repo @ SHA - ${{ github.sha }}
953+
uses: actions/checkout@v4
954+
955+
- name: Set up Python 3.13
956+
uses: actions/setup-python@v5
957+
with:
958+
python-version: "3.13"
959+
960+
- name: Install tox
961+
run: pip install tox-uv
962+
963+
- name: Run tests
964+
run: tox -c tox-loongsuite.ini -e py313-test-loongsuite-processor-baggage -- -ra
965+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ pyrightconfig.json
6767

6868
# LoongSuite Extension
6969
.cursor/
70-
dist-*
70+
dist-*/
7171
upload/
7272
upload_*_test/
-16.9 KB
Binary file not shown.
-45.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)